Skip to content

Instantly share code, notes, and snippets.

@grahamharrison68
Created March 28, 2021 07:48
Show Gist options
  • Save grahamharrison68/c66414830e71f0f261f722c50861d019 to your computer and use it in GitHub Desktop.
Save grahamharrison68/c66414830e71f0f261f722c50861d019 to your computer and use it in GitHub Desktop.
print("Normal Distribution Confidence Interval Calculator")
@interact_manual(confidence=(0.5, 0.99,0.01), x_bar=x_bar_input, sigma=sigma_input, n=n_normal_input)
def confidence_interval_normal(confidence=0.95, x_bar=1000, sigma=1000, n=1000):
ci = normal_distribution_ci(confidence, x_bar, sigma, n)
print(f"The population mean lies between {ci[0]:.2f} and {ci[1]:.2f} with {confidence:.0%} confidence")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment