Hypothesis Tests.Goodness Of Fit Test Method
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Goodness | Returns a ChiSquareGoodnessOfFitTest object to test if the distribution follows the specified distribution. |
Goodness | Returns a ChiSquareGoodnessOfFitTest object to test if the distribution follows the specified distribution. |
Goodness | Returns a ChiSquareGoodnessOfFitTest object to test if the distribution follows the specified distribution specified as a histogram. |
GoodnessOfFitTest<T>(Histogram<T>, Histogram<T>)
public static ChiSquareGoodnessOfFitTest GoodnessOfFitTest<T>(
this Histogram<T> actual,
Histogram<T> expected
)
Parameters
- actual Histogram<T>
- The histogram for which to return the goodness-of-fit test.
- expected Histogram<T>
- A Histogram<T> that specifies the expected distribution.
Type Parameters
- T
Return Value
ChiSquareGoodnessOfFitTestA ChiSquareGoodnessOfFitTest object.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Histogram<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).Remarks
Use this method to construct a test for how well the histogram fits another histogram. expected must have the same boundaries as the current instance. The method returns a ChiSquareGoodnessOfFitTest object.
GoodnessOfFitTest(Histogram<Double>, ContinuousDistribution, Int32)
public static ChiSquareGoodnessOfFitTest GoodnessOfFitTest(
this Histogram<double> histogram,
ContinuousDistribution distribution,
int numberOfEstimatedParameters
)
Parameters
- histogram Histogram<Double>
- The histogram for which to return the goodness-of-fit test.
- distribution ContinuousDistribution
- A Distribution object that represents the distribution that is to be compared.
- numberOfEstimatedParameters Int32
- The number of parameters of distribution that were estimated from the sample.
Return Value
ChiSquareGoodnessOfFitTestA ChiSquareGoodnessOfFitTest object.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Histogram<Double>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).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.
GoodnessOfFitTest(Histogram<Int32>, DiscreteDistribution, Int32)
public static ChiSquareGoodnessOfFitTest GoodnessOfFitTest(
this Histogram<int> histogram,
DiscreteDistribution distribution,
int numberOfEstimatedParameters
)
Parameters
- histogram Histogram<Int32>
- The histogram for which to return the goodness-of-fit test.
- distribution DiscreteDistribution
- A Distribution object that represents the distribution that is to be compared.
- numberOfEstimatedParameters Int32
- The number of parameters of distribution that were estimated from the sample.
Return Value
ChiSquareGoodnessOfFitTestA ChiSquareGoodnessOfFitTest object.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Histogram<Int32>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).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.