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]
3 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]3 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
Write the code for the following problem.
GaryK [48]

Answer:

no

Explanation:

3 0
3 years ago
What is the difference between business strategies and business models?
bogdanovich [222]

Answer:

A . Business strategies include long-term business plans, while business models include plans for daily business functions

7 0
3 years ago
Examine the following class definition:
strojnjashka [21]

Answer:

The answer is "Option B"

Explanation:

In the given code, a class "DateType" is declared, inside the class, four methods "Initialize, GetYear, GetMethod, and GetDay" is defined, in which the "Initialize" method does not return any value and other methods return a constant type value, which means it value can't be changed.

Inside the class three integer variable is defined, that is"year, month, and  day".  In the "GetDay" method call, it first creates the class object "day1", which is already defined in question and call the method by dot (.), that's why only choice b is correct.

7 0
3 years ago
A firewall can consist of all devices positioned on the network _____________.
ale4655 [162]

Answer:

The answer to this question is "perimeter".

Explanation:

In computer science, the firewall is used to provide a network security system that manages network traffic like incoming and outgoing signals. This traffics is based on predetermined security rules. The firewall typically installs a boundary between a trusted inner network and an untrusted outer network, such as the Internet. It is a software concept and Perimeter firewalls manage the flow of network traffic and host or organization's border the boundary that provides the first line of security against outer attacks and blocking access to inappropriate content from inside an organization.

6 0
4 years ago
You have been asked to improve on the web page you created for NewYou Personal Training. You will use the file you created for T
34kurt

Answer:

See explaination

Explanation:

<!DOCTYPE html>

<html lang="en" dir="ltr">

<head>

<meta charset="ut f-8">

<title>Tutorial Project 1</title>

<style type="text/css">

p{

font-family: Georgia, serif;

}

</style>

<link rel="stylesheet" type="text/css" href="project3style.css">

</head>

<body>

<img src="images/logo.jp g" alt="New You Personal Training Banner">

<h2>Welcome to NewYou Personal Training</h2>

<h3>Our services include:</h3>

<h3>Call today to speak to one of our fitness specialists</h3>

<section>

<p style="color: darkorange;font-weight: 900;">

<ul>

<li> Fitness evaluations with optimal 360&#176; Computerized Body Profile.</li>

<li> Complete individualized training plan with free workout schedule calendar.</li>

<li> Private workout guidance provided daily to help you meet your personal goals.</li>

<li> Complimentary diet and nutrition counseling. </li>

<li> Email and text messaging reminders to help keep you on track.</li>

<li> Workout group sessions for those who prefer to exercise in a group setting.</li>

</ul>

</p>

<p>

<b><i>All fitness and nutrition services can be provided at our brand new facility or in the privacy of your own home or office. </i></b>

</p>

</section>

<section>

<p>

<h r>

<blockquote>

I was struggling to lose weight after the birth of my second child. My friend recommended NewYou, and after the first three months I

had lost 3 0 pounds. Thanks to the personal attention from their trainers and counselors, I’ve been able to keep the weight off for two

years. I’m in the best shape of my life!

<b r>

<cite>—Justine Reynolds, Cleveland</cite>

</blockquote>

<h r/>

</p>

</section>

<section>

<address>

NewYou Personal Training, 3451 West Oxmoor Avenue, Cleveland, TN 37311. (555) 639-9681 or (555) NEW-Y OU1

</address>

</section>

</body>

</html>

project3style.css : ---------->>>>>>>>

/* your name Project 3 */

body{

margin: 50px;

font-family: sans-serif;

background-color: bisque;

}

h2{

color:darkblue;

font-size: 2em;

}

h3{

color: green;

background-color: lightblue;

}

address{

color: red;

text-align: center;

font-style: italic;

font-variant: small-caps;

font-weight: 700;

font-size: 12pt;

line-height: 24pt;

}

blockquote{

background-color: gold;

width: 600px;

padding: 20px;

}

li{

text-transform: capitalize;

line-height: 2;

color: green;

}

3 0
3 years ago
Other questions:
  • Technician A says copper has a low resistance. Technician B says the length of wire doesn't affect resistance. Who is correct?
    11·1 answer
  • What is grid computing? It is distributed computing where autonomous computers perform independent tasks. It is interconnected c
    12·1 answer
  • What menu allows you to look up a command and learn how to use it?
    14·1 answer
  • A small group of travelers is meeting inside an ancient building, and the travelers need access to the Internet using their mobi
    11·1 answer
  • Who like the videos where is clown is from :)
    6·1 answer
  • A company is deploying NAFDs in its office to improve employee productivity when dealing with paperwork. Which of the following
    11·1 answer
  • Output each floating-point value with two digits after the decimal point, which can be achieved as follows:
    7·1 answer
  • The<br>tool can lighten the part of an<br>image.*<br>Your answer​
    13·1 answer
  • What note for percussun is this??
    12·1 answer
  • Create a function called sphereVolume that determines the volume of a sphere with a given radius and prints the result to the sc
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!