HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulestatistics-0.16.3.0Haskell2010

Statistics.Test.ChiSquared

Pearson's chi squared test.

  • 2 values
valuechi2test
  1. :: (Vector v (Int, Double), Vector v Double)
  2. => Int

    Number of additional degrees of freedom. One degree of freedom is due to the fact that the are N observation in total and accounted for automatically.

  3. -> v (Int, Double)

    Observation and expectation.

  4. -> Maybe (Test ChiSquared)
#

Generic form of Pearson chi squared tests for binned data. Data sample is supplied in form of tuples (observed quantity, expected number of events). Both must be positive.

This test should be used only if all bins have expected values of at least 5.