Skip to content

"Re-creating" distributions

1 message · R. Michael Weylandt

#
I wouldn't go quite so far as to say there's absolutely nothing else
-- one could, e.g., also fit lognormal, gamma, beta or most any other
two parameters distributions from the supplied data [assuming the
support matches].

What I did say is that you need domain specific knowledge to pick a
distribution to which to fit: then, if the moments are known in closed
form from the parameters, moment matching comes down to simultaneous
non-linear equations. I'm not aware of a unified infrastructure for
this in R [so I'm cc'ing the list in case someone else is], but it's
not a terribly difficult problem for the low dimensions we're talking
about.

E.g.,

If you know your data has a gamma distribution with mean 10 and
variance 20, you look at the Wikipedia gamma distribution page to find

Mean = k * theta
Variance = k * theta * theta

So Variance / Mean = theta --> Theta = 2 for your problem. Then k = 5.
Similarly, the all-great Wikipedians provide closed form solutions to
get the lognormal parameters back from observed sample moments:
http://en.wikipedia.org/wiki/Lognormal_distribution#Arithmetic_moments

As Bert rightly cautions, this is far outside the realm of good
practice and your energies would be better served if you could get a
better picture of the underlying data.

Best,
Michael
On Fri, Jun 8, 2012 at 9:13 AM, Bert Gunter <gunter.berton at gene.com> wrote: