IMSL C# Numerical Library

NormalityTest.ChiSquaredTest Method 

Performs the chi-squared goodness-of-fit test.

public double ChiSquaredTest(
   int n
);

Parameters

n
A int scalar containing the number of cells into which the observations are to be tallied.

Return Value

A double scalar containing the p-value for the chi-squared goodness-of-fit test.

Exceptions

Exception Type Condition
NoVariationInputException is thrown if there is no variation in the input data
DidNotConvergeException is thrown if the iteration did not converge

See Also

NormalityTest Class | Imsl.Stat Namespace | ChiSquaredTest