MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Finding distribution parameters for a mixture of product distributions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg122244] Finding distribution parameters for a mixture of product distributions
  • From: Koslicki <koslicki at math.psu.edu>
  • Date: Sat, 22 Oct 2011 06:06:42 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

I am trying to estimate parameters for a mixture of product
distributions, and Mathematica does not like my inclusion of product
distributions.

Ignoring the stupidity of the following choice of distributions,
consider the following:

In[142]:= data=RandomVariate[MixtureDistribution[{.1,.9},
{BernoulliDistribution[0],BernoulliDistribution[1]}],100];

In[140]:= dist1=MixtureDistribution[{p,1-p},
{BernoulliDistribution[a1],BernoulliDistribution[a2]}];

In[141]:= FindDistributionParameters[data,dist1]

Out[141]= {p->0.261107,a1->0.919502,a2->0.960777}

So everything works just fine.


Yet if I want to look at a *product* of Bernoulli distribution
instead, I get the following:

In[143]:= data=RandomVariate[MixtureDistribution[{.1,.9},
{ProductDistribution[BernoulliDistribution[0],BernoulliDistribution[0]],ProductDistribution[BernoulliDistribution[1],BernoulliDistribution[1]]}],
100];

In[144]:= dist1=MixtureDistribution[{p,1-p},
{ProductDistribution[BernoulliDistribution[a1],BernoulliDistribution[a2]],ProductDistribution[BernoulliDistribution[a3],BernoulliDistribution[a4]]}];

In[145]:= FindDistributionParameters[data,dist1]

During evaluation of In[145]:= FindDistributionParameters::ntsprt: One
or more data points are not in support of the distribution ...


How can it be that one of the data points is not in the support of the
distribution when I chose the data points from the distribution
itself?

This problem seems to arise whenever I am trying to find parameters
for a mixture of product distributions...

Any thoughts?

Thanks,

~David



  • Prev by Date: Re: R: Ticks without labels
  • Next by Date: Re: Split Plot Graph in Mathematica
  • Previous by thread: problem while solving equations
  • Next by thread: Re: Finding distribution parameters for a mixture of product distributions