Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'DistributionFitTest for MultinomialDistribution' topicStudent Support Forum > General > Archives > "DistributionFitTest for MultinomialDistribution"

Next Comment >Help | Reply To Topic
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: ,

Subject (listing for 'DistributionFitTest for MultinomialDistribution')
Author Date Posted
DistributionFitTest for MultinomialDistribution Brian Rogers 06/11/12 11:00am
Re: DistributionFitTest for MultinomialDistribu... Michael 06/18/12 09:40am
Re: Re: DistributionFitTest for MultinomialDist... Brian 06/18/12 12:16pm
Re: Re: Re: DistributionFitTest for Multinomial... Michael 06/18/12 1:06pm
Re: Re: Re: Re: DistributionFitTest for Multino... Brian 06/18/12 8:09pm
Next Comment >Help | Reply To Topic