Re: Question about multimodal parameter estimation



"Robert Dodier" <robert.dodier@xxxxxxxxx> wrote in
news:1148789059.171313.130550@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:

nelson wrote:

i have some data and looking at them i suppose are generated by a
gamma
distribution plus a normal distribution, in fact the look like this
figure:

*
**
**
***
***
**** ****
******* ********
******************************

(i hope you can read it :) )

How can i estimate the parameter of the distribution of my data? I
read about MLE, but i can't find example that uses multimodal
ditributions...

What you want is to estimate a mixture density, in this case a density
p (x) = a_1 p_1 (x) + a_2 p_2 (x) where p_1 and p_2 and gamma and
normal
density functions, respectively, and a_1 and a_2 are positive factors
(the so-called mixing weights) such that a_1 + a_2 = 1.

You can do direct MLE on p, the free parameters being a_1 and a_2
in addition to the parameters for the gamma and normal densities.
There is also the so-called expectation-maximization algorithm,
which is very simply to implement if you already have MLE implemented
for each mixture component.

Check and see if the R project (http://www.r-project.org)
already has something for this problem. Try asking on the r-help
mailing list.

That looks promising. The r-help mailing list encourages submitters to
first search the available resources.
Here is a transcript of an R session which also illustrates, by way of an
error, the need to use the library function after installing an R package:
help.search("mixtures") #which returned info pointing to flexmix package
chooseCRANmirror()
utils:::menuInstallPkgs()
<snipped info specific to the chosen mirror and a success message

help(flexmix)
No documentation for 'flexmix' in specified packages and libraries:
you could try 'help.search("flexmix")'
library(flexmix)
help(flexmix)
help(FLXglm)
-----end session transcript----------
This is the beginning of the FLXglm documentation:
FLXglm package:flexmix R Documentation

FlexMix Interface to Generalized Linear Models

Description:

This is the main driver for FlexMix interfacing the 'glm' family
of models.

Usage:

FLXglm(formula = . ~ .,
family = c("gaussian", "binomial", "poisson", "Gamma"),
offset = NULL)

<rest of FLXglm help file elided>

At the end of the flexmix help file there was an example:
-----
## now we fit a model with one Gaussian response and one Poisson
## response. Note that the formulas inside the call to FLXglm are
## relative to the overall model formula.
ex2 <- flexmix(yn~x, data=NPreg, k=2,
model=list(FLXglm(yn~.+I(x^2)),
FLXglm(yp~., family="poisson")))
-----
If those data were count data, the Poisson model might be reasonable as
well.
--
David Winsemius
.



Relevant Pages

  • Re: Predicting using SAS-Survival analysis
    ... The problem with simply using the highest likelihood is that those ... one parameter, Weibull, logistic, log-normal, normal, and log-logistic ... are two-parameter distributions, and gamma has three. ... chi-square distribution with 1 degree of freedom, ...
    (sci.stat.math)
  • Re: Predicting using SAS-Survival analysis
    ... The problem with simply using the highest likelihood is that those ... one parameter, Weibull, logistic, log-normal, normal, and log-logistic ... are two-parameter distributions, and gamma has three. ... chi-square distribution with 1 degree of freedom, ...
    (sci.stat.edu)
  • Re: Bimodal Gamma Distribution
    ... Is it true that Gamma distributions "cannot" model ... It has two peaks in the density. ... The red line is normal curve and green line is gamma curve. ... The red line in yourfigure is NOT a Normal distribution. ...
    (sci.stat.math)
  • Re: Game Theory Nobel Prize Again and Beyond With PI
    ... mutations based on the Levy probability distribution," by Chang- ... the same distribution under sums goes to the "+" side of the ledger ... Readers who recall that the gamma distribution is ...
    (sci.stat.math)

Loading