<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263627</link>
    <title>MATLAB Central Newsreader - Problem with chi2pdf command</title>
    <description>Feed for thread: Problem with chi2pdf command</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>Tue, 20 Oct 2009 13:56:10 -0400</pubDate>
      <title>Problem with chi2pdf command</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263627#688396</link>
      <author>Mehdi</author>
      <description>Hello everyone:&lt;br&gt;
I am using the command below to find the probability of chi-square&lt;br&gt;
larger than 0.0052 with 1 degree of freedom: chi2pdf(0.0052,1)&lt;br&gt;
for this I am getting a probability of 5.5164 which is larger than 1&lt;br&gt;
(the probability should vary between 0 and 1). Any comment on this is&lt;br&gt;
much appreciated.&lt;br&gt;
&lt;br&gt;
Yours,&lt;br&gt;
Mehdi</description>
    </item>
    <item>
      <pubDate>Tue, 20 Oct 2009 14:09:59 -0400</pubDate>
      <title>Re: Problem with chi2pdf command</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263627#688399</link>
      <author>Brian Borchers</author>
      <description>On Oct 20, 7:56&#160;am, Mehdi &amp;lt;zeido...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; Hello everyone:&lt;br&gt;
&amp;gt; I am using the command below to find the probability of chi-square&lt;br&gt;
&amp;gt; larger than 0.0052 with 1 degree of freedom: chi2pdf(0.0052,1)&lt;br&gt;
&amp;gt; for this I am getting a probability of 5.5164 which is larger than 1&lt;br&gt;
&amp;gt; (the probability should vary between 0 and 1). Any comment on this is&lt;br&gt;
&amp;gt; much appreciated.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Yours,&lt;br&gt;
&amp;gt; Mehdi&lt;br&gt;
&lt;br&gt;
You want the CDF, not the pdf, of the Chi^2 distribution.  Use chi2cdf&lt;br&gt;
instead.</description>
    </item>
    <item>
      <pubDate>Tue, 20 Oct 2009 17:17:46 -0400</pubDate>
      <title>Re: Problem with chi2pdf command</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263627#688447</link>
      <author>Mehdi</author>
      <description>On Oct 20, 8:09&#160;am, Brian Borchers &amp;lt;borchers.br...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; On Oct 20, 7:56&#160;am, Mehdi &amp;lt;zeido...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Hello everyone:&lt;br&gt;
&amp;gt; &amp;gt; I am using the command below to find the probability of chi-square&lt;br&gt;
&amp;gt; &amp;gt; larger than 0.0052 with 1 degree of freedom: chi2pdf(0.0052,1)&lt;br&gt;
&amp;gt; &amp;gt; for this I am getting a probability of 5.5164 which is larger than 1&lt;br&gt;
&amp;gt; &amp;gt; (the probability should vary between 0 and 1). Any comment on this is&lt;br&gt;
&amp;gt; &amp;gt; much appreciated.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Yours,&lt;br&gt;
&amp;gt; &amp;gt; Mehdi&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; You want the CDF, not the pdf, of the Chi^2 distribution. &#160;Use chi2cdf&lt;br&gt;
&amp;gt; instead.&lt;br&gt;
&lt;br&gt;
Thanks for your answer. You're right. Actually I should have used 1-&lt;br&gt;
chi2cdf(0.0052,1).&lt;br&gt;
Mehdi</description>
    </item>
  </channel>
</rss>

