subject
Mathematics, 10.08.2021 03:20 AmazingColor

Suppose the management claims that the proportion of games that your team wins when scoring 80 or more points is 0.50. Test this claim using a 5% level of significance. Make the following edits to the code block below: Replace ??NULL_HYPOTHESIS_VALUE?? with the proportion under the null hypothesis.
Options: Do I need to replace the above variable with a value of 80, 0.50 or 0.05 ??

from statsmodels. stats. proportion import proportions_ztest
your_team_gt_80_df = your_team_df[(your_team_df['pts'] > 80)]
# Number of games won when your team scores over 80 points
counts = (your_team_gt_80_df['game_result'] == 'W').sum()
# Total number of games when your team scores over 80 points
nobs = len(your_team_gt_80_df['game_result '])
p = counts*1.0/nobs
print("Proportion of games won by your team when scoring more than 80 points in the years 2013 to 2015 =", round(p,4))
# Hypothesis Test
# TODO: make your edits here
test_statistic, p_value = proportions_ztest(counts, nobs, ??NULL_HYPOTHESIS_VALUE??)
print("Hypothesis Test for the Population Proportion")
print("Test Statistic =", round(test_statistic,2))
print("P-value =", round(p_value,4))
After you are done with your edits, click the block of code below and hit the Run button above.

ansver
Answers: 3

Another question on Mathematics

question
Mathematics, 21.06.2019 16:00
Elena and her husband marc both drive to work. elena's car has a current mileage (total distance driven) of 15,000 and she drives 23,000 miles more each year. marc's car has a current mileage of 46,000 and he drives 9,000 miles more each year. will the mileages for the two cars ever be equal? explain.
Answers: 2
question
Mathematics, 21.06.2019 17:30
Let f(x) = x+3 and g(x) = 1/x the graph of (fog)(x) is shown below what is the range of (fog)(x)?
Answers: 2
question
Mathematics, 21.06.2019 22:30
Find the condition that the zeros of the polynomial f(x) = x^3+3px^2+3px+r may be in a.p.
Answers: 1
question
Mathematics, 21.06.2019 23:00
Type the correct answer in each box. use numerals instead of words. the average number of subscribers to an online magazine each year from 2010 to 2015 is given in the table below. the average number of subscribers to the online magazine in 2010 was the percent increase in the average number of subscribers in 2011 to the average number of subscribers in 2012 was %. the maximum average number of subscribers to the online magazine in the years shown was
Answers: 2
You know the right answer?
Suppose the management claims that the proportion of games that your team wins when scoring 80 or mo...
Questions
question
Biology, 31.08.2019 20:00
question
Mathematics, 31.08.2019 20:00