Returns a test to verify that the residuals follow a normal distribution.
Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Function GetNormalityOfResidualsTest ( _ test As TestOfNormality _ ) As OneSampleTest |
| C# |
|---|
public OneSampleTest GetNormalityOfResidualsTest ( TestOfNormality test ) |
| C++ |
|---|
public: OneSampleTest^ GetNormalityOfResidualsTest ( TestOfNormality test ) |
Parameters
- test (Extreme.Statistics.TestOfNormality)
- A TestOfNormality value that specifies the test to use.
Return Value
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 Compute() method before this method is called.
Exceptions
| Exception | Condition |
|---|---|
| InvalidOperationException | The model has not been computed. |