Returns a ChiSquareGoodnessOfFitTest object to test if the
distribution follows the specified distribution.
Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Function GetGoodnessOfFitTest ( _ distribution As Distribution, _ numberOfEstimatedParameters As Integer _ ) As ChiSquareGoodnessOfFitTest |
| C# |
|---|
public ChiSquareGoodnessOfFitTest GetGoodnessOfFitTest ( Distribution distribution, int numberOfEstimatedParameters ) |
| C++ |
|---|
public: ChiSquareGoodnessOfFitTest^ GetGoodnessOfFitTest ( Distribution^ distribution, int numberOfEstimatedParameters ) |
Parameters
- distribution (Extreme.Statistics.Distributions.Distribution)
- A Distribution object that represents the distribution that is to be compared.
- numberOfEstimatedParameters (System.Int32)
- The number of parameters of distribution that were estimated from the sample sample.
Return Value
A ChiSquareGoodnessOfFitTest object.
Remarks
Use this method to construct a test for how well the histogram fits a given distribution.
The method returns a ChiSquareGoodnessOfFitTest object.
The distribution can be discrete or continuous. A histogram with the same boundaries as the original is automatically created to perform the test.
The numberOfEstimatedParameters specifies how many distribution parameters were estimated from the data. The degrees of freedom of the data is decreased accordingly.