143k views
1 vote
A relative skill level of 1420 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 1420. 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:

A relative skill level of 1420 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 1420.
Test this claim using a 5% level of significance.
For this test, assume that the population standard deviation for the 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 [19] 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
# TOD0: make your edits here
test_statistic, P_value = st. ttest_1s amp (your_team_df['elo_n', 1420)
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 = 1471.29
Hypothesis Test for the Population Mean
Test Statistic = 7.26
P-value = 0.358

1 Answer

6 votes

Answer:

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

# - - - - 1000; make your edits here - - - -

test_statistic, p_value = st.ttest_1samp(your_team_df['elo_n'], 1420)

print ("Hypothesis Test for the Population Mean")

print ("Test Statistic =", round(test_statistic,2) )

print ("p_value =", round(p_value,4) )

Step-by-step explanation:

See screen shot of program

A relative skill level of 1420 represents a critically low skill level in the league-example-1
User Deffiss
by
5.1k points