Skip to content

Instantly share code, notes, and snippets.

@panicpotatoe
Created March 12, 2019 03:08
Show Gist options
  • Select an option

  • Save panicpotatoe/41afd3fb0b5910b3c401a0cebf1ce4ad to your computer and use it in GitHub Desktop.

Select an option

Save panicpotatoe/41afd3fb0b5910b3c401a0cebf1ce4ad to your computer and use it in GitHub Desktop.
""" METHODOLOGY 02: CALCULATE USING SCIPY.STATS LIBRARY"""
stats = stats.chi2_contingency(observed=observed)
# You can check the returned data by calling it
# The returned data includes: chi_squared_stat, p_value, df, expected_crosstab
stats
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment