HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulestatistics-0.16.3.0Haskell2010

Statistics.Test.StudentT

Student's T-test is for assessing whether two samples have different mean. This module contain several variations of T-test. It's a parametric tests and assumes that samples are normally distributed.

  • 3 values
valuewelchTTest
  1. :: Vector v Double
  2. => PositionTest

    one- or two-tailed test

  3. -> v Double

    Sample A

  4. -> v Double

    Sample B

  5. -> Maybe (Test StudentT)
#

Two-sample Welch's t-test. It assumes that both samples are normally distributed but doesn't assume that they have same variance. Returns Nothing if sample sizes are not sufficient.