Skip to content

Instantly share code, notes, and snippets.

@HeenaR17
Created March 23, 2021 09:21
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 HeenaR17/e4b89070252385b90740627ae1aeb03a to your computer and use it in GitHub Desktop.
Save HeenaR17/e4b89070252385b90740627ae1aeb03a to your computer and use it in GitHub Desktop.
#Two sample ttest
classB=stats.poisson.rvs(loc=18,mu=33,size=60)
ttest,p_value=stats.ttest_ind(a=classA, b=classB)
if p_value >= 0.5:
print("Accept null hypothesis")
else:
print("Reject null hypothesis")
#Reject null hypothesis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment