LinearRegressionModel.GetNormalityOfResidualsTest Method

Definition

Namespace: Numerics.NET.Statistics
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

GetNormalityOfResidualsTest() Returns a test to verify that the residuals follow a normal distribution.
GetNormalityOfResidualsTest(TestOfNormality) Returns a test to verify that the residuals follow a normal distribution.

GetNormalityOfResidualsTest

Returns a test to verify that the residuals follow a normal distribution.
C#
public OneSampleTest<double> GetNormalityOfResidualsTest()

Return Value

OneSampleTest<Double>
A OneSampleTest object.

Remarks

Linear regression assumes that the residuals follow a normal distribution. Use this method to obtain a statistical test object that can be used to verify this assumption.

By default, the Anderson-Darling test is used.

The model must have been computed using the Fit() method before this method is called.

Exceptions

InvalidOperationException

The model has not been fitted.

GetNormalityOfResidualsTest(TestOfNormality)

Returns a test to verify that the residuals follow a normal distribution.
C#
public OneSampleTest<double> GetNormalityOfResidualsTest(
	TestOfNormality test
)

Parameters

test  TestOfNormality
A TestOfNormality value that specifies the test to use.

Return Value

OneSampleTest<Double>
A OneSampleTest object.

Remarks

Linear regression assumes that the residuals follow a normal distribution. Use this method to obtain a statistical test object that can be used to verify this assumption.

The model must have been computed using the Fit() method before this method is called.

Exceptions

InvalidOperationException

The model has not been fitted.

See Also