title: P-value from Chi sq test statistic in Python
body: <p>I have computed a test statistic that is distributed as a chi square with 1 degree of freedom, and want to find out what P-value this corresponds to using python. </p>
  
  <p>I'm a python and maths/stats newbie so I think what I want here is the probability denisty function for the chi2 distribution from SciPy. However, when I use this like so:</p>
  
  <pre><code>from scipy import stats
  stats.chi2.pdf(3.84 , 1)
  0.029846
  </code></pre>
  
  <p>However some googling and talking to some colleagues who know maths but not python have said it should be 0.05.</p>
  
  <p>Any ideas?
  Cheers,
  Davy</p>