Skip to content

Instantly share code, notes, and snippets.

@grahamharrison68
Created March 28, 2021 07:51
Show Gist options
  • Save grahamharrison68/00f7736077fe01abff73b1cbbdcdfafc to your computer and use it in GitHub Desktop.
Save grahamharrison68/00f7736077fe01abff73b1cbbdcdfafc to your computer and use it in GitHub Desktop.
df_binom_ci['pop_min'] = df_binom_ci.apply(lambda row: binomial_distribution_ci_pop_min(row['confidence'], row['p_hat'], row['n']), axis=1)
df_binom_ci['pop_max'] = df_binom_ci.apply(lambda row: binomial_distribution_ci_pop_max(row['confidence'], row['p_hat'], row['n']), axis=1)
df_binom_ci['confidence_interval'] = df_binom_ci.apply(lambda row: binomial_distribution_ci_text(row['confidence'], row['p_hat'], row['n']), axis=1)
df_binom_ci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment