Header menu logo FSharp.Stats

ChiSquareTest Type

Two-Sample (Goodness-of-fit) Chi-Square Test (Upper Tail)

A chi-square test (also chi-squared or χ2 test) is any statistical hypothesis test in which the sampling distribution of the test statistic is a ChiSquareDistribution when the null hypothesis is true, or any in which this is asymptotically true, meaning that the sampling distribution (if the null hypothesis is true) can be made to approximate a chi-square distribution as closely as desired by making the sample size large enough.

The chi-square test is used whenever one would like to test whether the actual data differs from a random distribution.

References:

Static members

Static member Description

ChiSquareTest.compute degreesOfFreedom expected observed

Full Usage: ChiSquareTest.compute degreesOfFreedom expected observed

Parameters:
    degreesOfFreedom : int
    expected : float seq
    observed : float seq

Returns: ChiSquareStatistics<float>

Computes the Chi-Square test n data points -> degrees of freedom = n - 1

degreesOfFreedom : int
expected : float seq
observed : float seq
Returns: ChiSquareStatistics<float>

ChiSquareTest.pearsonChiSquared table

Full Usage: ChiSquareTest.pearsonChiSquared table

Parameters:
Returns: ChiSquareStatistics<float>
table : Contingency2x2<'a, 'b>
Returns: ChiSquareStatistics<float>

ChiSquareTest.pearsonChiSquared table

Full Usage: ChiSquareTest.pearsonChiSquared table

Parameters:
Returns: float
table : ContingencyTable<'a, 'b>
Returns: float

ChiSquareTest.pearsonChiSquaredWithYates table

Full Usage: ChiSquareTest.pearsonChiSquaredWithYates table

Parameters:
Returns: ChiSquareStatistics<float>

Pearson χ² test with **Yates’s continuity correction** (only for 2×2).

table : Contingency2x2<'a, 'b>
Returns: ChiSquareStatistics<float>

Type something to start searching.