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

Safe Haskell | None
Language | Haskell98

Statistics.Test.ChiSquared

Description

Pearson's chi squared test.

Synopsis

- chi2test :: (Vector v (Int, Double), Vector v Double) => Int -> v (Int, Double) -> Maybe (Test ChiSquared)
- chi2testCont :: (Vector v (Estimate NormalErr Double, Double), Vector v Double) => Int -> v (Estimate NormalErr Double, Double) -> Maybe (Test ChiSquared)
- module Statistics.Test.Types

# Documentation

chi2test Source #

Arguments

:: (Vector v (Int, Double), Vector v Double) |
=> 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.
-> v (Int, Double) | Observation and expectation.
-> 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.

chi2testCont Source #

Arguments

:: (Vector v (Estimate NormalErr Double, Double), Vector v Double) |
=> Int | Number of additional degrees of freedom.
-> v (Estimate NormalErr Double, Double) | Observation and expectation.
-> Maybe (Test ChiSquared) |

Chi squared test for data with normal errors. Data is supplied in form of pair (observation with error, and expectation).

module Statistics.Test.Types