title: Python Proportion test similar to prop.test in R
body: <p>I am looking for a test in Python that does this:</p>
  
  <pre><code>&gt; survivors &lt;- matrix(c(1781,1443,135,47), ncol=2)
  &gt; colnames(survivors) &lt;- c('survived','died')
  &gt; rownames(survivors) &lt;- c('no seat belt','seat belt')
  &gt; survivors
               survived died
  no seat belt     1781  135
  seat belt        1443   47
  &gt; prop.test(survivors)
  
      2-sample test for equality of proportions with continuity correction
  
  data:  survivors
  X-squared = 24.3328, df = 1, p-value = 8.105e-07
  alternative hypothesis: two.sided
  95 percent confidence interval:
   -0.05400606 -0.02382527
  sample estimates:
     prop 1    prop 2 
  0.9295407 0.9684564 
  </code></pre>
  
  <p>I am mostly interested in <code>p-value</code> calculation. </p>
  
  <p>The example is taken form <a href="http://www.dummies.com/how-to/content/how-to-test-data-proportions-with-r.html" rel="noreferrer">here</a></p>