Constructs a PearsonsChiSquareTest 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.Stats
Assembly:
NMathStats (in NMathStats.dll) Version: 3.4.0.0
Syntax
| Visual C++ |
|---|
public:
PearsonsChiSquareTest(
array<int>^ outcomes,
DoubleVector^ probabilities,
double alpha
) |
Parameters
- outcomes
- Type: array<
System..::.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
- Type: CenterSpace.NMath.Core..::.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
- Type: System..::.Double
Statistical significance threshold
See Also