Linear Regression Model.Get Normality Of Residuals Test Method
Definition
Namespace: Numerics.NET.Statistics
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Get | Returns a test to verify that the residuals follow a normal distribution. |
Get | 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.
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
Invalid | The model has not been fitted. |
GetNormalityOfResidualsTest(TestOfNormality)
Returns a test to verify that the residuals follow a normal distribution.
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
Invalid | The model has not been fitted. |