Created
July 22, 2018 17:42
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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