LogisticRegressionModel.GetPearsonGoodnessOfFitTest Method

Returns the Pearson goodness-of-fit diagnostic over the stored observations.

Definition

Namespace: Numerics.NET.Statistics
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.9.0
C#
public SimpleHypothesisTest GetPearsonGoodnessOfFitTest()

Return Value

SimpleHypothesisTest
A SimpleHypothesisTest object.

Remarks

This diagnostic treats each stored row as one multinomial trial, without aggregating repeated feature profiles or applying case weights. Degrees of freedom equal the number of rows times the number of nonreference categories, less the fitted coefficient count. The chi-square calibration requires adequate expected cell counts.

Exceptions

InvalidOperationException

The model has not been fitted.

-or-

The model is deployed.

See Also