| PearsonsChiSquareTest(Int32, DoubleVector, Double) Constructor |
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.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public PearsonsChiSquareTest(
int[] outcomes,
DoubleVector probabilities,
double alpha
)
Public Sub New (
outcomes As Integer(),
probabilities As DoubleVector,
alpha As Double
)
public:
PearsonsChiSquareTest(
array<int>^ outcomes,
DoubleVector^ probabilities,
double alpha
)
new :
outcomes : int[] *
probabilities : DoubleVector *
alpha : float -> PearsonsChiSquareTest
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