| Author |
Comment/Response |
Brian Rogers
|
06/11/12 11:00am
Hi Folks,
I want to test (using Pearson's Chi-Squared statistic) whether a given random sample comes from a specified multinomial distribution. I copy my code below, which generates an error that I have been unable to fix. Any help is greatly appreciated.
Brian
data = {5, 6, 10};
model = MultinomialDistribution[21, {.2, .2, .6}];
h = DistributionFitTest[data, model, "HypothesisTestData"];
h["TestDataTable", All]
During evaluation of In[4256]:= DistributionFitTest::dmtch: Arguments {5,6,10} and MultinomialDistribution[21,{0.2,0.2,0.6}] at positions 1 and 2 are of unequal dimensionality. >>
Out[4259]=
DistributionFitTest[{5, 6, 10},
MultinomialDistribution[21, {0.2, 0.2, 0.6}],
"HypothesisTestData"]["TestDataTable", All]
URL: , |
|