<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237372</link>
    <title>MATLAB Central Newsreader - cdf of mixture distributions?</title>
    <description>Feed for thread: cdf of mixture distributions?</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sat, 11 Oct 2008 17:07:24 -0400</pubDate>
      <title>cdf of mixture distributions?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237372#604774</link>
      <author>perfreem@gmail.com</author>
      <description>hello all,&lt;br&gt;
&lt;br&gt;
is there a generic way to compute the cdf of bimodal distributions,&lt;br&gt;
say, a mixture of gaussians in matlab? example: p*normpdf(10, 5) + (1-&lt;br&gt;
p)*normpdf(10, 6). how can i get the cdf of this result, aside from&lt;br&gt;
brute force binning and summing?&lt;br&gt;
&lt;br&gt;
thank yous.</description>
    </item>
    <item>
      <pubDate>Sun, 12 Oct 2008 12:49:01 -0400</pubDate>
      <title>Re: cdf of mixture distributions?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237372#604838</link>
      <author>Matt </author>
      <description>perfreem@gmail.com wrote in message &amp;lt;6d5ff2bf-cf4a-4163-a293-5dcad79478ed@v56g2000hsf.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; hello all,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; is there a generic way to compute the cdf of bimodal distributions,&lt;br&gt;
&amp;gt; say, a mixture of gaussians in matlab? example: p*normpdf(10, 5) + (1-&lt;br&gt;
&amp;gt; p)*normpdf(10, 6). how can i get the cdf of this result, aside from&lt;br&gt;
&amp;gt; brute force binning and summing?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; thank yous.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
For Gaussian mixtures, you can use erf()</description>
    </item>
    <item>
      <pubDate>Mon, 13 Oct 2008 14:05:57 -0400</pubDate>
      <title>Re: cdf of mixture distributions?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237372#604984</link>
      <author>Peter Perkins</author>
      <description>perfreem@gmail.com wrote:&lt;br&gt;
&amp;gt; hello all,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; is there a generic way to compute the cdf of bimodal distributions,&lt;br&gt;
&amp;gt; say, a mixture of gaussians in matlab? example: p*normpdf(10, 5) + (1-&lt;br&gt;
&amp;gt; p)*normpdf(10, 6). how can i get the cdf of this result, aside from&lt;br&gt;
&amp;gt; brute force binning and summing?&lt;br&gt;
&lt;br&gt;
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).&lt;br&gt;
&lt;br&gt;
Here's maybe a more interesting example:&lt;br&gt;
&lt;br&gt;
xx = linspace(0,10,1000);&lt;br&gt;
yy = .2*normcdf(xx,3) + (1-.2)*normcdf(xx,7);&lt;br&gt;
plot(xx,yy);&lt;br&gt;
&lt;br&gt;
Hope this helps.</description>
    </item>
    <item>
      <pubDate>Tue, 14 Oct 2008 19:23:28 -0400</pubDate>
      <title>Re: cdf of mixture distributions?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237372#605238</link>
      <author>Ting</author>
      <description>perfreem@gmail.com wrote:&lt;br&gt;
&amp;gt; hello all,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; is there a generic way to compute the cdf of bimodal distributions,&lt;br&gt;
&amp;gt; say, a mixture of gaussians in matlab? example: p*normpdf(10, 5) + (1-&lt;br&gt;
&amp;gt; p)*normpdf(10, 6). how can i get the cdf of this result, aside from&lt;br&gt;
&amp;gt; brute force binning and summing?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; thank yous.&lt;br&gt;
&lt;br&gt;
The statistical toolbox in Matlab supports computing CDF for mixture of &lt;br&gt;
Gaussian. See GMDISTRIBUTION and GMDISTRIBUTION/CDF.&lt;br&gt;
&lt;br&gt;
-Ting Su&lt;br&gt;
Mathworks</description>
    </item>
  </channel>
</rss>

