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

Namespace: Imsl.Stat
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public double ChiSquaredTest(
	int n
)
Visual Basic (Declaration)
Public Function ChiSquaredTest ( _
	n As Integer _
) As Double
Visual C++
public:
double ChiSquaredTest(
	int n
)

Parameters

n
Type: System..::.Int32
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

ExceptionCondition
Imsl.Stat..::.NoVariationInputException is thrown if there is no variation in the input data
Imsl.Stat..::.DidNotConvergeException is thrown if the iteration did not converge

See Also

NormalityTest..::.ChiSquaredTest(Int32)