Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello! I am needing assistance with this by sunday please. I am not sure what or where i am going wrong. Here is the step

image text in transcribedimage text in transcribedimage text in transcribed

Hello! I am needing assistance with this by sunday please. I am not sure what or where i am going wrong.

Here is the step i am needing assistance on.

image text in transcribedimage text in transcribedimage text in transcribed
In [38]: Write your code in this code block section rint ("Confidence Interval for Average Relative Skill in the years 1996 to 1998") rint(" Mean relative skill for all teams from the years 1996-1998 ean = assigned_years_league_df[ 'elo_n' ]. mean() Standard deviation for the relative skill of all teams from the years 2013-2015 tdev = assigned_years_league_df['elo_n' ]. std( ) = len(assigned_years_league_df ) Confidence interval tderr = stdev/(n ** 0.5) onf_int_95 = st. norm. interval(0.95, mean, stderr) rint ("95% confidence interval (unrounded) for Average Relative Skill (ELO) in the years 1996 to 1998 =", conf_int_95) rint("95% confidence interval (rounded) for Average Relative Skill (ELO) in the years 1996 to 1998 = (", round(conf_int_95[0], 2) rint (" \ ") rint("Probability a team has Average Relative Skill LESS than the Average Relative Skill (ELO) of Bulls in the years 1996 to 1998 rint (" - - ean_elo_assigned_team = assigned_years_df[ 'elo_n' ]. mean() hoicel = st. norm. cdf(mean_elo_assigned_years, mean, stdev) hoice2 = st. norm. cdf(mean_elo_assigned_years, mean, stdev) # Pick the correct answer. rint ("choice1 =", round(choice1, 4) ) rint ("choice2 =", round(choice2, 4) )Confidence Interval for Average Relative Skill in the years 1996 to 1998 Name Error Traceback (most recent call last) in 5 6 # Mean relative skill for all teams from the years 1996-1998 - - - -> 7 mean = assigned_years_league_df [ 'elo_n' ]. mean() 8 9 # Standard deviation for the relative skill of all teams from the years 2013-2015 NameError: name 'assigned_years_league_of' is not definedStep 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. The dataframe forthe years 1996-1998 is called assigned_years_league_dl 2. The 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 assignediteamidf. The variable 'eloin' 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. Write your code in the code block section below. After you are done, click this block of code and hit the Run button above. Reach out to your instructor if you need more help with this step

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

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

Step: 2

blur-text-image

Step: 3

blur-text-image

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

Statistics For Engineers And Scientists

Authors: William Navidi

3rd Edition

73376345, 978-0077417581, 77417585, 73376337, 978-0073376332

Students also viewed these Mathematics questions

Question

Case : Karl and June Monroe

Answered: 1 week ago