title: p value generated by scipy.stats.chi2_contingency for independence testing
body: <p>For testing if two features are independent or not,
  H0: A and B are independent
  H1: A and B are dependent</p>
  
  <p>p &lt; 0.05, then A and B are dependent</p>
  
  <p>Upon trying the following code, where it is very clear that the two arrays are dependent(they are the same arrays)</p>
  
  <pre><code>obs = np.array([[10, 10, 10], [10, 10, 10]])
  scipy.stats.chi2_contingency(obs)
  </code></pre>
  
  <p>I get the following result:</p>
  
  <pre><code>(0.0, 1.0, 2, array([[10., 10., 10.],
          [10., 10., 10.]]))
  </code></pre>
  
  <p>i.e. p value is 1.0 > 0.05, So we accept the null hypothesis that the two arrays are independent of each other.</p>
  
  <p>Is there an assumption I got wrong or is it generating 1-p values?</p>