statistics-0.14.0.2: A library of statistical types, data, and functions

Safe HaskellNone
LanguageHaskell98

Statistics.Test.StudentT

Description

Student's T-test is for assesing 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.

Synopsis

Documentation

studentTTest Source #

Arguments

:: Vector v Double 
=> PositionTest

one- or two-tailed test

-> v Double

Sample A

-> v Double

Sample B

-> Maybe (Test StudentT) 

Two-sample Student's t-test. It assumes that both samples are normally distributed and have same variance. Returns Nothing if sample sizes are not sufficient.

welchTTest Source #

Arguments

:: Vector v Double 
=> PositionTest

one- or two-tailed test

-> v Double

Sample A

-> v Double

Sample B

-> 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.

pairedTTest Source #

Arguments

:: (Vector v (Double, Double), Vector v Double) 
=> PositionTest

one- or two-tailed test

-> v (Double, Double)

paired samples

-> Maybe (Test StudentT) 

Paired two-sample t-test. Two samples are paired in a within-subject design. Returns Nothing if sample size is not sufficient.