Click or drag to resize

PearsonsChiSquareTestUpdate(Int32, DoubleVector, Double) Method

Perform a chi-square test using empirical data tracking the outcomes of a series of experiment runs along with the expected frequencies of outcomes for any one particular experiment run.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public void Update(
	int[] outcomes,
	DoubleVector probabilities,
	double alpha
)

Parameters

outcomes  Int32
Array of counts for each independent outcome possible for the experiment. For example the outcomes of rolling a fair die 100 times might yield the array {17,23,15,14,16,15}
probabilities  DoubleVector
Array of expected counts of each independent outcome for a single experiment run. The sum of this array must equal 1. For example, rolling a fair die would yeild the array {1/6,1/6,1/6,1/6,1/6,1/6}
alpha  Double
Statistical significance threshold
See Also