1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Nataliya [291]
2 years ago
15

The management wants to you to calculate a 95% confidence interval for the average relative skill of all teams in 2013-2015. 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: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)Replace ??CL?? with the confidence level of the confidence interval.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)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 of these Python methods. Your task is to identify the correct Python method and report the probability.print("Confidence Interval for Average Relative Skill in the years 2013 to 2015")print("------------------------------------------------------------------------------------------------------------")# Mean relative skill of all teams from the years 2013-2015mean = your_years_leagues_df['elo_n'].mean()# Standard deviation of the relative skill of all teams from the years 2013-2015stdev = your_years_leagues_df['elo_n'].std()n = len(your_years_leagues_df)#Confidence interval# ---- TODO: make your edits here ----stderr = ??SD_Variable?? (n ** 0.5)conf_int_95 = st.norm.interval(??CL??,??MEAN_VARIABLE??,??SE_VARIABLE??)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[0], 2),",", round(conf_int_95[1], 2),")")print("\n")print("Probability a team has Average Relative Skill LESS than the Average Relative Skill (ELO) of your team in the years 2013 to 2015")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))
Computers and Technology
1 answer:
MakcuM [25]2 years ago
8 0

Answer:

Explanation:

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

stderr = stdev/(n ** 0.5) # variable stdev is the calculated the standard deviation of the relative skill of all teams from the years 2013-2015

# Calculate the confidence interval

# Confidence level is 95% => 0.95

# variable mean is the calculated the mean relative skill of all teams from the years 2013-20154

# variable stderr is the calculated the standard error

conf_int_95 = st.norm.interval(0.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[0], 2),",", round(conf_int_95[1], 2),")")

print("\n")

print("Probability a team has Average Relative Skill LESS than the Average Relative Skill (ELO) of your team in the years 2013 to 2015")

print("----------------------------------------------------------------------------------------------------------------------------------------------------------")

mean_elo_your_team = your_team_df['elo_n'].mean()

# Calculates the probability a Team has Average Relative Skill GREATER than or equal to the Average Relative Skill (ELO) of your team in the years 2013 to 2015

choice1 = st.norm.sf(mean_elo_your_team, mean, stdev)

# Calculates the probability a Team has Average Relative Skill LESS than or equal to the Average Relative Skill (ELO) of your team in the years 2013 to 2015

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)) # This is correct

You might be interested in
Disney's finding nemo is an example of a series of computer-generated images played in rapid succession. this medium is called _
Lana71 [14]

This medium is called Animation. Animation is a medium where images are handled to appear as moving pictures. In traditional animation, images are drawn or painted by hand on transparent celluloid sheet, so as to be photographed and exhibited on film. Today most animations are made with computer-generated imagery (CGI).

4 0
3 years ago
As our use of the internet increases e-safety becomes essential.<br> Discuss why e-safety is needed.
nlexa [21]

Answer:

The answer is described below

Explanation:

E safety means means protection of private information and personal safety when using the internet. E safety involve the protection of private information, passwords against identity theft or property theft. A persons  private information, passwords can be gotten through the use of phishing or malwares.

Also, the use of internet has exposed people to cyber bullying(i.e abuse of an individual), stalking, engaging underage children into sexual relationships and sextortion.

E safety  help protect children from harmful content and services as those listed.

8 0
3 years ago
Differentiate between childhood socialization and adulthood socialization ​
AveGali [126]

Answer:

In adolescence, socialization is concerned with the development of overarching values and the self-image. In adulthood, socialization involves more overt and specific norms and behaviors, such as those related to the work role as well as more superficial personality features.

6 0
3 years ago
Change the screen resolution so you can view more information on your screen. Use the resolution that enables you to fit the mos
Gennadij [26K]

Answer:

If you are on Windows 10, all you need to do is to right-click on the desktop, and finally select the "Display Settings". And over there you will be able to view various attached displays, and the resolution that you require is going to be exactly here, and as an example, the best resolution for your monitor is 3840 x 2160.

Explanation:

Please check the answer section.

7 0
2 years ago
What is an Array? 20 POINTS!!!
EastWind [94]

Answer:

I'm about 99% sure it's C: a unique address or location un the collection

6 0
2 years ago
Other questions:
  • Which of the following is a list of input devices?
    13·2 answers
  • Dylan, an interior designer, has sketched out a layout for a client's living room. He wants the client's approval of the layout
    11·2 answers
  • WILL UPVOTE ALL plz
    13·1 answer
  • We are sending a 30 Mbit MP3 file from a source host to a destination host. All links in the path between source and destination
    12·1 answer
  • Your boss is trying to modify a PDF file that he made a year ago. He asks you what he can use to do this. Which of the selection
    14·2 answers
  • The ______ cloud service model provides virtual environments online that can be tailored to the needs of developers
    7·1 answer
  • What is a Network It’s a system that is used to link two or more computers and name the different types of networks.?
    11·1 answer
  • After turning on your computer ,it prompts you to type a password to continue the boot process. However ,you forgot the password
    10·1 answer
  • Heather writes an essay for language arts and receives a poor grade. To figure out why she gets a poor grade, Heather looks at t
    14·2 answers
  • In two-dimensional arrays, the _____________ is always listed second.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!