Click or drag to resize

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
C#
public void Update(
	double[] sample,
	Vector binEdges,
	Vector hittingProbabilities,
	int parameters
)

Parameters

sample
Type: SystemDouble
Variate samples.
binEdges
Type: FinMath.LinearAlgebraVector
Edges of bins.
1binEdges
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
1binEdges
. Each element should be in [0, 1].
1hittingProbabilities[0]
is probability of hitting bin (-∞,
1binEdges[0]
].
1hittingProbabilities[i]
for i > 0 is probability of hitting bin (
1binEdges[i-1]
,
1binEdges[i]
]. Probability of hitting rightmost bin is computed as 1 - (sum of all elements of
1hittingProbabilities
).
parameters
Type: SystemInt32
The number of parameters used in fitting the distribution. Must be non-negative.
See Also