SciPy - Curve Fitting and Regression
Identify the error in this code snippet for performing a chi-square goodness of fit test:
from scipy.stats import chisquare observed = [15, 25, 35] expected = [20, 20] result = chisquare(f_obs=observed, f_exp=expected) print(result)
