Created
March 28, 2021 07:48
-
-
Save grahamharrison68/c66414830e71f0f261f722c50861d019 to your computer and use it in GitHub Desktop.
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
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