SciPy - Statistical Tests
Identify the error in this code that tries to perform a Chi-squared test:
import numpy as np from scipy.stats import chi2_contingency observed = [[15, 25], [35, 25]] chi2, p, dof, expected = chi2_contingency(observed) print(p)
