Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Step 4: Hypothesis Test for the Population Mean (II) A team averaging 110 points is likely to do very well during the regular season. The

Step 4: Hypothesis Test for the Population Mean (II)

A team averaging 110 points is likely to do very well during the regular season. The coach of your team has hypothesized that your team scored at an average of less than 110 points in the years 2013-2015. Test this claim at a 1% level of significance. For this test, assume that the population standard deviation for relative skill level is unknown.

You are to write this code block yourself.

Use Step 3 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 for your team is called your_team_df.
  2. The variable 'pts' represents the points scored by your team.
  3. Calculate and print the mean points scored by your team during the years you picked.
  4. Identify the mean score under the null hypothesis. You only have to identify this value and do not have to print it. (Hint: this is given in the problem statement)
  5. Assuming that the population standard deviation is unknown, use Python methods to carry out the hypothesis test.
  6. Calculate and print the test statistic rounded to two decimal places.
  7. Calculate and print the P-value rounded to four decimal 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 3 code block is as follows:

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.

In[8]:

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(your_team_df['elo_n'], 1342) print("Hypothesis Test for the Population Mean") print("Test Statistic =", round(test_statistic,2)) print("P-value =", round(p_value,4))

Mean Relative Skill of your team in the years 2013 to 2015 = 1456.01 Hypothesis Test for the Population Mean Test Statistic = 45.27 P-value = 0.0

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

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

Discrete Structures, Logic, And Computability

Authors: James L Hein

3rd Edition

1449615279, 9781449615277

More Books

Students also viewed these Mathematics questions

Question

The fear of making a fool of oneself

Answered: 1 week ago

Question

Annoyance about a statement that has been made by somebody

Answered: 1 week ago