observed
and expected
frequency counts. This statistic can be used to perform a Chi-Square test evaluating the null hypothesis that the observed counts follow the expected distribution.
Preconditions:
If any of the preconditions are not met, an IllegalArgumentException
is thrown.
Note: This implementation rescales the expected
array if necessary to ensure that the sum of the expected and observed counts are equal.
observed
and expected
frequency counts. This statistic can be used to perform a Chi-Square test evaluating the null hypothesis that the observed counts follow the expected distribution.
Preconditions:
If any of the preconditions are not met, an IllegalArgumentException
is thrown.
Note: This implementation rescales the expected
array if necessary to ensure that the sum of the expected and observed counts are equal.
observed
has negative entries
@throws NotStrictlyPositiveException if expected
has entries that arenot strictly positive
@throws DimensionMismatchException if the arrays length is less than 2
|
|
|
|
|
|
|
|
|
|
|
|