Skip to content

Instantly share code, notes, and snippets.

@marknagelberg
Created July 22, 2018 17:42
Show Gist options
  • Save marknagelberg/0c1845bf835da661851c948d837a0e95 to your computer and use it in GitHub Desktop.
Save marknagelberg/0c1845bf835da661851c948d837a0e95 to your computer and use it in GitHub Desktop.
Code to support post on significance levels required for two sample z test of proportions.
from matplotlib import pyplot
fig, ax = pyplot.subplots(figsize=(10, 10))
sns.set(style='darkgrid')
plot = sns.pointplot(x='Probability Difference',
y='Sample Size to Detect Difference',
hue='Confidence Level', ax = ax,
data=df)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment