import scipy.stats as st # Mean relative skilLL Level of your team mean_elo_your_team = your_team_df['elo_n'].mean() print("Mean Relative Skill of your team in the years 2013 to 2015 =", round(mean_elo_your_team, 2)) # Hypothesis Test # ---- TODO: make your edits here ---- test_statistic, p_value = st.ttest_1samp(??DATAFRAME_YOUR_TEAM??[??RELATIVE_SKILL??], ??NULL_HYPOT print("Hypothesis Test for the Population Mean") print("Test Statistic =", round(test_statistic, 2)) print("P-value =", round(p_value,4))
import scipy.stats as st # Mean relative skilLL Level of your team mean_elo_your_team = your_team_df['elo_n'].mean() print("Mean Relative Skill of your team in the years 2013 to 2015 =", round(mean_elo_your_team, 2)) # Hypothesis Test # ---- TODO: make your edits here ---- test_statistic, p_value = st.ttest_1samp(??DATAFRAME_YOUR_TEAM??[??RELATIVE_SKILL??], ??NULL_HYPOT print("Hypothesis Test for the Population Mean") print("Test Statistic =", round(test_statistic, 2)) print("P-value =", round(p_value,4))
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
My team that I choose was the Lakers
![import scipy.stats as st
# Mean relative skilL level of your team
mean_elo_your_team = your_team_df['elo_n'].mean()
print("Mean Relative Skill of your team in the years 2013 to 2015 =", round(mean_elo_your_team,2))
# Hypothesis Test
# ---- TODO: make your edits here
test_statistic, p_value = st.ttest_1samp (??DATAFRAME_YOUR_TEAM??[??RELATIVE_SKILL??],
??NULL_HYPO1
print("Hypothesis Test for the Population Mean")
print("Test Statistic =", round (test_statistic, 2))
print("P-value =", round(p_value, 4))](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fd6b9bc56-dad2-423a-bbe6-4820f32dcbba%2F530de735-4a86-47ba-91d9-423c50f82d64%2F4rjvptg_processed.png&w=3840&q=75)
Transcribed Image Text:import scipy.stats as st
# Mean relative skilL level of your team
mean_elo_your_team = your_team_df['elo_n'].mean()
print("Mean Relative Skill of your team in the years 2013 to 2015 =", round(mean_elo_your_team,2))
# Hypothesis Test
# ---- TODO: make your edits here
test_statistic, p_value = st.ttest_1samp (??DATAFRAME_YOUR_TEAM??[??RELATIVE_SKILL??],
??NULL_HYPO1
print("Hypothesis Test for the Population Mean")
print("Test Statistic =", round (test_statistic, 2))
print("P-value =", round(p_value, 4))
![Step 3: Hypothesis Test for the Population Mean (I)
A relative skill level of 1342 represents a critically low skill level in the league. The management of your team has
hypothesized that the average relative skill level of your team in the years 2013-2015 is greater than 1342. Test this claim
using a 5% level of significance. For this test, assume that the population standard deviation for relative skill level is unknown.
Make the following edits to the code block below:
1. Replace ??DATAFRAME_YOUR_TEAM?? with the name of your team's dataframe. See Step 2 for the name of your
team's dataframe.
2. Replace ??RELATIVE_SKILL?? with the name of the variable for relative skill. See the table included in the Project Two
instructions above to pick the variable name. Enclose this variable in single quotes. For example, if the variable name is
var2 then replace ??RELATIVE_SKILL?? with 'var2'.
3. Replace ??NULL_HYPOTHESIS_VALUE?? with the mean value of the relative skill under the null hypothesis.
After you are done with your edits, click the block of code below and hit the Run button above.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fd6b9bc56-dad2-423a-bbe6-4820f32dcbba%2F530de735-4a86-47ba-91d9-423c50f82d64%2Fo07ad0pl_processed.png&w=3840&q=75)
Transcribed Image Text:Step 3: Hypothesis Test for the Population Mean (I)
A relative skill level of 1342 represents a critically low skill level in the league. The management of your team has
hypothesized that the average relative skill level of your team in the years 2013-2015 is greater than 1342. Test this claim
using a 5% level of significance. For this test, assume that the population standard deviation for relative skill level is unknown.
Make the following edits to the code block below:
1. Replace ??DATAFRAME_YOUR_TEAM?? with the name of your team's dataframe. See Step 2 for the name of your
team's dataframe.
2. Replace ??RELATIVE_SKILL?? with the name of the variable for relative skill. See the table included in the Project Two
instructions above to pick the variable name. Enclose this variable in single quotes. For example, if the variable name is
var2 then replace ??RELATIVE_SKILL?? with 'var2'.
3. Replace ??NULL_HYPOTHESIS_VALUE?? with the mean value of the relative skill under the null hypothesis.
After you are done with your edits, click the block of code below and hit the Run button above.
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education