@ConfidenceTestAssumptions(name="ChiSqure test", alsoKnownAs="Pearson\'s ChiSquare test", description="The chisquare test determines if the given data were generated from the same discrete distributions.", assumptions={"A large sample, typically above 30.","Typically, each bin from the discrete distribution must have at least 5 samples.","The underlying discrete distribution must obey the weak law of large numbers.","The observations are assumed to be independent."}, nullHypothesis="The frequency of events in the two datasets is consistent.", dataPaired=true, dataSameSize=true, distribution=ChiSquareDistribution.CDF.class, reference=@PublicationReference(author="Wikipedia",title="Pearson\'s chisquare test",type=WebPage,year=2009,url="http://en.wikipedia.org/wiki/Pearson%27s_chisquare_test")) public class ChiSquareConfidence extends AbstractCloneableSerializable implements NullHypothesisEvaluator<java.util.Collection<? extends java.lang.Number>>
Modifier and Type  Class and Description 

static class 
ChiSquareConfidence.Statistic
Confidence Statistic for a chisquare test

Modifier and Type  Field and Description 

static ChiSquareConfidence 
INSTANCE
Default instance variable since the class has no members.

Constructor and Description 

ChiSquareConfidence()
Creates a new instance of ChiSquareConfidence

Modifier and Type  Method and Description 

static <DomainType> 
evaluateNullHypothesis(java.util.Collection<? extends DomainType> data,
ProbabilityMassFunction<DomainType> pmf)
Computes the chisquare test between a collection of data and a
Probability Mass Function that may have create the observed data.

ChiSquareConfidence.Statistic 
evaluateNullHypothesis(java.util.Collection<? extends java.lang.Number> data1,
java.util.Collection<? extends java.lang.Number> data2)
Computes the probability that two data were generated by
the same distribution.

clone
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone
public static final ChiSquareConfidence INSTANCE
public ChiSquareConfidence()
public static <DomainType> ChiSquareConfidence.Statistic evaluateNullHypothesis(java.util.Collection<? extends DomainType> data, ProbabilityMassFunction<DomainType> pmf)
DomainType
 Domain type of the PMF.data
 Data observed from some discrete distribution.pmf
 Probability mass function that may have created the observed data.public ChiSquareConfidence.Statistic evaluateNullHypothesis(java.util.Collection<? extends java.lang.Number> data1, java.util.Collection<? extends java.lang.Number> data2)
NullHypothesisEvaluator
evaluateNullHypothesis
in interface NullHypothesisEvaluator<java.util.Collection<? extends java.lang.Number>>
data1
 First dataset to considerdata2
 Second dataset to consider