From: Barak Segal on
Hi,

I was wondering if Matlab has a way to fit data for several distributions.
I have yeast cells, some of them displaying basal gene activation which results in a very tight Gaussian distribution around zero. Other cells have genes activated in bursts and have a Gamma or exponential distribution activation. I would like to be able to fit data for two such distributions. How can I do that?

Thanks in advance,
Barak
From: Tom Lane on
> I was wondering if Matlab has a way to fit data for several distributions.
> I have yeast cells, some of them displaying basal gene activation which
> results in a very tight Gaussian distribution around zero. Other cells
> have genes activated in bursts and have a Gamma or exponential
> distribution activation. I would like to be able to fit data for two such
> distributions. How can I do that?

Barak, if you have the Statistics Toolbox there are functions like normfit,
gamfit, expfit, mle, etc. for fitting distributions. If this is not what you
want, perhaps you could offer more details.

-- Tom


From: Frederic Moisy on
Hi,
you can use the Ezyfit toolbox for this:
http://www.mathworks.com/matlabcentral/fileexchange/10176-ezyfit-2-30
There are several examples provided, including gaussian fits
and user-defined fits at:
http://www.mathworks.com/matlabcentral/fx_files/10176/3/content/ezyfit/demo/html/efdemo.html
Fred.


"Barak Segal" <barakseg(a)yahoo.com> wrote in message <hpa279$665$1(a)fred.mathworks.com>...
> Hi,
>
> I was wondering if Matlab has a way to fit data for several distributions.
> I have yeast cells, some of them displaying basal gene activation which results in a very tight Gaussian distribution around zero. Other cells have genes activated in bursts and have a Gamma or exponential distribution activation. I would like to be able to fit data for two such distributions. How can I do that?
>
> Thanks in advance,
> Barak
From: Barak Segal on
Hi,
Thanks for the help, I'll look into it. I also found the Curve Fitting toolbox to be quite useful in constructing custom fit functions.

"Frederic Moisy" <moisy(a)fast.u-psud.fr> wrote in message <hphdfi$84s$1(a)fred.mathworks.com>...
> Hi,
> you can use the Ezyfit toolbox for this:
> http://www.mathworks.com/matlabcentral/fileexchange/10176-ezyfit-2-30
> There are several examples provided, including gaussian fits
> and user-defined fits at:
> http://www.mathworks.com/matlabcentral/fx_files/10176/3/content/ezyfit/demo/html/efdemo.html
> Fred.
>
>
> "Barak Segal" <barakseg(a)yahoo.com> wrote in message <hpa279$665$1(a)fred.mathworks.com>...
> > Hi,
> >
> > I was wondering if Matlab has a way to fit data for several distributions.
> > I have yeast cells, some of them displaying basal gene activation which results in a very tight Gaussian distribution around zero. Other cells have genes activated in bursts and have a Gamma or exponential distribution activation. I would like to be able to fit data for two such distributions. How can I do that?
> >
> > Thanks in advance,
> > Barak