PearsonsChiSquaredTestUpdate Method (Double, Vector, Vector, Int32)
|
Updates test statistic using provided sample.
Namespace:
FinMath.Statistics.HypothesisTesting
Assembly:
FinMath (in FinMath.dll) Version: 2.4.7-0a995bd0ea1854c2c868ec3f8dae606c5777e170
Syntax public void Update(
double[] sample,
Vector binEdges,
Vector hittingProbabilities,
int parameters
)
Parameters
- sample
- Type: SystemDouble
Variate samples. - binEdges
- Type: FinMath.LinearAlgebraVector
Edges of bins. should be sorted in acceding order and should NOT
include left edge of the leftmost bin and right edge of the rightmost bin
(-∞ and +∞ will be assumed as this two edges correspondingly). - hittingProbabilities
- Type: FinMath.LinearAlgebraVector
Probabilities of hitting bins from left to right in supposed distribution.
Must have same size as . Each element should be in [0, 1].
is probability of hitting bin (-∞, ].
for i > 0 is probability of hitting bin (, ].
Probability of hitting rightmost bin is computed as 1 - (sum of all elements of ).
- parameters
- Type: SystemInt32
The number of parameters used in fitting the distribution. Must be non-negative.
See Also