Thread Subject: cdf of mixture distributions?

Subject: cdf of mixture distributions?

From: perfreem@gmail.com

Date: 11 Oct, 2008 17:07:24

Message: 1 of 4

hello all,

is there a generic way to compute the cdf of bimodal distributions,
say, a mixture of gaussians in matlab? example: p*normpdf(10, 5) + (1-
p)*normpdf(10, 6). how can i get the cdf of this result, aside from
brute force binning and summing?

thank yous.

Subject: cdf of mixture distributions?

From: Matt

Date: 12 Oct, 2008 12:49:01

Message: 2 of 4

perfreem@gmail.com wrote in message <6d5ff2bf-cf4a-4163-a293-5dcad79478ed@v56g2000hsf.googlegroups.com>...
> hello all,
>
> is there a generic way to compute the cdf of bimodal distributions,
> say, a mixture of gaussians in matlab? example: p*normpdf(10, 5) + (1-
> p)*normpdf(10, 6). how can i get the cdf of this result, aside from
> brute force binning and summing?
>
> thank yous.


For Gaussian mixtures, you can use erf()

Subject: cdf of mixture distributions?

From: Peter Perkins

Date: 13 Oct, 2008 14:05:57

Message: 3 of 4

perfreem@gmail.com wrote:
> hello all,
>
> is there a generic way to compute the cdf of bimodal distributions,
> say, a mixture of gaussians in matlab? example: p*normpdf(10, 5) + (1-
> p)*normpdf(10, 6). how can i get the cdf of this result, aside from
> brute force binning and summing?

It's the same idea, right? If your mixture has two components, N(5,1) and N(6,1) (your example), with mixing probs [p 1-p], then the PDF at 10 is p*normpdf(10,5) + (1-p)*normpdf(10,6) and the CDF is p*normcdf(10,5) + (1-p)*normcdf(10,6).

Here's maybe a more interesting example:

xx = linspace(0,10,1000);
yy = .2*normcdf(xx,3) + (1-.2)*normcdf(xx,7);
plot(xx,yy);

Hope this helps.

Subject: cdf of mixture distributions?

From: Ting

Date: 14 Oct, 2008 19:23:28

Message: 4 of 4

perfreem@gmail.com wrote:
> hello all,
>
> is there a generic way to compute the cdf of bimodal distributions,
> say, a mixture of gaussians in matlab? example: p*normpdf(10, 5) + (1-
> p)*normpdf(10, 6). how can i get the cdf of this result, aside from
> brute force binning and summing?
>
> thank yous.

The statistical toolbox in Matlab supports computing CDF for mixture of
Gaussian. See GMDISTRIBUTION and GMDISTRIBUTION/CDF.

-Ting Su
Mathworks

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com