Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello! I am needing assistance with trying to determine and create the step 9 script. I tried a few different ones i had thought were

Hello! I am needing assistance with trying to determine and create the step 9 script. I tried a few different ones i had thought were correct but ended up not being correct. If i could receive any possible help/guidance to writing this script, that would be appreciated!

image text in transcribedimage text in transcribedimage text in transcribed
Step 9 - Condence Intervals for the Average Relative Skill of All Teams in the Assigned Team's Years The management also wants to you to calculate a 95% condence interval for the average relative skill of all teams in the years 19961998. Calculate this condence interval. You are to write this code block yourself. Use Step 8 to help you write this code block. Here is some information that will help you write this code block. Reach out to your instructor if you need help. 1. "he dataframe forthe years 19961998 is called assigned_years_league_df 2. "be variable 'elo_n' represents the relative skill of teams. 3. Start by calculating the mean and the standard deviation of relative skill (ELO) in years 1996-1998. 4. Calculate n that represents the sample size. 5. Calculate the standard errorwhich is equal to the standard deviation of Relative Skill (ELO) divided by the square root of the sample size n. 6. Assuming that the population standard deviation is known, use Python methods for the Normal distribution to calculate the condence interval. 7. Your statistics should be rounded to two decimal places. The management also wants you to calculate the probability that a team had a relative skill level less than the Bulls in years 19961993. Assuming that the relative skill of teams is Normally distributed, calculate this probability. You are to write this code block yourself. Use Step 8 to help you write this code block. Here is some information that will help you write this code block. 1. Calculate the mean relative skill of the Bulls. Note that the dataframe for the Bulls is called assigned_team_df. The variable 'elo_n' represents the relative skill. 2. Use Python methods fora Normal distribution to calculate this probability. 3. The probability value should be rounded to fourdecimal places. In [13]: print("Confidence Interval for Average Relative Skill in the years 2013 to 2015") print(" # Mean relative skill of all teams from the years 2013-2015 mean = your_years_leagues_df[ 'elo_n' ]. mean() # Standard deviation of the relative skill of all teams from the years 2013-2015 stdev = your_years_leagues_df[ 'elo_n' ]. std() n = len(your_years_leagues_df) #Confidence interval # TODO: make your edits here stderr = 89.26/ (n ** 0.5) conf_int_95 = st. norm. interval(.95, mean, stderr) print("95% confidence interval (unrounded) for Average Relative Skill (ELO) 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| print ("\ ") print("Probability a team has Average Relative Skill LESS than the Average Relative Skill (ELO) of your team in the years 201 print (" - - mean_elo_your_team = your_team_df[ 'elo_n' ] . mean() choice1 = 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 is correct?") print ("Choice 1 =", round(choice1, 4) ) print("Choice 2 =", round(choice2, 4) )lative Skill in the years 2013 to 2015") he years 2013-2015 n () L of all teams from the years 2013-2015 d () stderr) ) for Average Relative Skill (ELO) in the years 2013 to 2015 =", conf_int_95) for Average Relative Skill (ELO) in the years 2013 to 2015 = (", round(conf_int_95[0], 2), ",", round(conf_int_95[1], 2),")") ative Skill LESS than the Average Relative Skill (ELO) of your team in the years 2013 to 2015") . mean() mean, stdev) mean, stdev) t?" )

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

WebAssign For Trigonometry

Authors: James Stewart

2nd Edition

1337772313, 9781337772310

More Books

Students also viewed these Mathematics questions

Question

What is the difference between the IoT and the IoE?

Answered: 1 week ago

Question

1. Too understand personal motivation.

Answered: 1 week ago