IMG_5086

.jpeg

School

Southern New Hampshire University *

*We aren’t endorsed by this school

Course

210

Subject

Industrial Engineering

Date

Dec 6, 2023

Type

jpeg

Pages

1

Uploaded by DrWaterHummingbird22

Report
A [116:] § Write your code in the code block section below. After you are done, click this block of code and hil the Run button above. Reach out to your instructor if you need more help with this step. # Write your code in this code block section print("Confidence Interval for Average Relative Skill in the years 1996 tc 1998") print ("M== e #Mean Relative Skill of all teams from the years 1996-1998 mean = assigned years league df['elo n'].mean() #Standard deviation of the Relative Skill of all teams from the years 199¢ -1998 stdev = assigned_years league df['elo n'].std() n=len(assigned years league_ df) #Confidence interval stderr = stdev/(n** 0.5) conf_int 95 = st.norm.interval(0.95, mean, stderr) print("95% confidence interval (unrounded) for Average Relative Skill (EL O) in the years 2013 to 2015 =", conf_int_ 95) print("95% confidence interval (rounded) for Average Relative Skill (ELO) in the years 2013 to 2015 = (", round(conf_int 95[0], 2),",", round(conf_ int 9511): 23, 1) print("\n") print ("Python Method to calculate probability that a team has Average Relsa tive Skill LESS than the Average Relative Skill (ELO) of your team in the years 2013 to 2015") Print (M =— e e e e ———————_———— mean_elo_your team = your team df['elo n'].mean() choicel = st.norm.sf(mean_elo your team, mean, stdev) choice2 = st.norm.cdf(mean_elo your team, mean,stdev) # Pick the correct answer. print ("Which of the two choices (choice 1 or choice 2) is correct? Choice 1 or Choice 2?") print("Choice 1 =", round(choicel,4)) print("choice 2 =", round(choice2,4)) Confidence Interval for Average Relative Skill in the years 1996 to 1998 95% confidence interval (unrounded) for Average Relative Skill (ELO) in t he years 2013 to 2015 = (1487.6565859527095, 1493.6465501840999) 95% confidence interval (rounded) for Average Relative Skill (ELO) in the years 2013 to 2015 = ( 1487.66 , 1493.65 ) Python Method to calculate probability that a team has Average Relative S kill LESS than the Average Relative Skill (ELO) of your team in the years 2013 to 2015 Which of the two choices (choice 1 or choice 2) is correct? Choice 1 or Choice 2? Choice 1 choice 2 0.6512 0.3488 End of Project One Download the HTML output and submit it with your summary report for Project One. The HTML output can be downloaded by clicking File, then Download as, then HTML. Do not include the
Discover more documents: Sign up today!
Unlock a world of knowledge! Explore tailored content for a richer learning experience. Here's what you'll get:
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help