Safe Haskell | None |
---|---|

Language | Haskell98 |

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.

- studentTTest :: Vector v Double => PositionTest -> v Double -> v Double -> Maybe (Test StudentT)
- welchTTest :: Vector v Double => PositionTest -> v Double -> v Double -> Maybe (Test StudentT)
- pairedTTest :: forall v. (Vector v (Double, Double), Vector v Double) => PositionTest -> v (Double, Double) -> Maybe (Test StudentT)
- module Statistics.Test.Types

# Documentation

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

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

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

module Statistics.Test.Types