Master programming syntax, solve interactive challenges & run live code in Syntaxis Explore Arena →
menu_book Course Curriculum (Statistics) expand_more
Statistics / Hypothesis Testing

chi-square independence test

Learn chi-square independence test in Statistics with a dedicated explanation, a concept-specific example, practical cautions, and a mastery check.

12 min read • Advanced
statistics-039.py
python
from scipy.stats import chi2_contingency
observed=[[40,30],[20,50]]
print(chi2_contingency(observed)[:3])
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content