Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #5777

Finding distribution parameters for a mixture of product distributions

From Koslicki <koslicki@math.psu.edu>
Newsgroups comp.soft-sys.math.mathematica
Subject Finding distribution parameters for a mixture of product distributions
Date 2011-10-22 10:09 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j7u4pd$t4m$1@smc.vnet.net> (permalink)

Show all headers | View raw


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

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Finding distribution parameters for a mixture of product distributions Koslicki <koslicki@math.psu.edu> - 2011-10-22 10:09 +0000

csiph-web