Question: ## Step 8 : Confidence Intervals for the Average Relative Skill of All Teams in Your Team's Years print ( Confidence Interval for Average

## Step 8: Confidence Intervals for the Average Relative Skill of All Teams in Your Team's Years print("Confidence Interval for Average Relative Skill in the years 2013 to 2015")
4 Mean reLative skiLL of aLL teams from the years 2013-2015
mean = your_years_leagues_df['elo_n'].mean()
43 Standard deviation of the reLative skill of all teaws from the years 2013-2015
stdev = your_years_leagues_df["elo_n'].std()
n}=\mathrm{ len(your_years_leagues_df)
#Confidence interval
-..- TODO: make your edits here -..-
stderr = stdev/(n **0.5)
confidence_level =0.95
conf_int_95= st.norn.interval(confidence_level, mean, stderr)
print("95% confidence Interval (unrounded) for Average Relative Skil1(ELO) in the years 2013 to 2015=", conf_int_95)
print("95% confidence interval (rounded) for Average Relative Skil1(ELO) in the years 2013 to 2015=(", round(conf_int_95[8],
print(*
")
print("Python Method to calculate probability that a team has Average Relative Skill LESS than the Average Relative Skill (ELO)
print(*-
choice1= st.norm.sf
choice2= st.norm.cdf
*H Pick the correct answer.
print("Which of the two choices (choice 1 or choice 2) is correct? Choice 1 or Choice 2?")
Confidence Interval for Average Relative Skill in the years 2013 to 2015
NameError
Traceback (nost recent call last)
The management wants to you to calculate a 95% confidence interval for the average relative skill of all teams in 2013-2015. You will use the variable 'elo_n' to respresent the relative skill of the teams. To construct a confidence interval, you will need the mean and standard error of the relative skill level in these years. The code block below calculates the mean and the standard deviation. Your edits will calculate the standard error and the confidence interval. Make the following edits to the code block below:
1. Replace ??SD_VARIABLE?? with the variable name representing the standard deviation of relative skill of all teams from your years. (Hint: the *standard deviation* variable is in the code block below)
2. Replace ??CL?? with the confidence level of the confidence interval.
3. Replace ??MEAN_VARIABLE?? with the variable name representing the mean relative skill of all teams from your years. (Hint: the *mean* variable is in the code block below)
4. Replace ??SE_VARIABLE?? with the variable name representing the standard error. (Hint: the *standard error* variable is in the code block below)
The management also wants you to calculate the probability that a team in the league has a relative skill level less than that of the team that you picked. Assuming that the relative skill of teams is Normally distributed, Python methods for a Normal distribution can be used to answer this question. The code block below uses two methods from scipy.stats module in Python. Your task is to identify the correct Python method.
After you are done with your edits, click the block of code below and hit the **Run** button above.
## Step 8 : Confidence Intervals for the Average

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!