HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Modulestatistics-0.16.5.0Haskell2010

Statistics.Test.Levene

Levene's test used to check whether samples have equal variance. Null hypothesis is all samples are from distributions with same variance (homoscedacity). Test is robust to non-normality, and versatile with mean or median centering.

Example3 expressions
import qualified Data.Vector.Unboxed as VUimport Statistics.Test.Levene:{let a = VU.fromList [8.88, 9.12, 9.04, 8.98, 9.00, 9.08, 9.01, 8.85, 9.06, 8.99]    b = VU.fromList [8.88, 8.95, 9.29, 9.44, 9.15, 9.58, 8.36, 9.18, 8.67, 9.05]    c = VU.fromList [8.95, 9.12, 8.95, 8.85, 9.03, 8.84, 9.07, 8.98, 8.86, 8.98]in levenesTest Median [a, b, c]:}Right (Test {testSignificance = mkPValue 2.4315059672496814e-3, testStatistics = 7.584952754501659, testDistribution = fDistributionReal 2.0 27.0})
  • 1 type
  • 1 value
datadata Center
#

Center calculation method

Constructors

Instances2Eq, Show
  • Eq CenterDefined in statistics-0.16.5.0 · Statistics.Test.Levene
  • Show CenterDefined in statistics-0.16.5.0 · Statistics.Test.Levene