Skip to content

Instantly share code, notes, and snippets.

@letthedataconfess
Created December 28, 2021 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save letthedataconfess/05cb2064ec246064b38956d321455b44 to your computer and use it in GitHub Desktop.
Save letthedataconfess/05cb2064ec246064b38956d321455b44 to your computer and use it in GitHub Desktop.
from scipy.stats import chi2
alpha=0.05
#critical_value
critical_value=chi2.ppf(q=1-alpha,df=degree_of_freedom)
print('critical_value:',critical_value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment