Example usage for Java org.apache.commons.math3.stat.inference GTest fields, constructors, methods, implement or subclass
The text is from its open source code.
double | gDataSetsComparison(final long[] observed1, final long[] observed2) Computes a G (Log-Likelihood Ratio) two sample test statistic for independence comparing frequency counts in observed1 and observed2 . |
double | gTestDataSetsComparison(final long[] observed1, final long[] observed2) Returns the observed significance level, or p-value, associated with a G-Value (Log-Likelihood Ratio) for two sample test comparing bin frequency counts in observed1 and observed2 . The number returned is the smallest significance level at which one can reject the null hypothesis that the observed counts conform to the same distribution. |