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:20
The number of potato chips in a bag is normally distributed with a mean of 71 and a standard deviation of 2. approximately what percent of bags contain between 69 and 73 potato chips? approximately 68% approximately 71% approximately 95% approximately 99.7%
Answers: 2
question
Mathematics, 21.06.2019 22:30
1.based of the diagrams what is the the value of x? 2.how would you verify your answer for x
Answers: 1
question
Mathematics, 22.06.2019 00:00
240 seventh graders and two-thirds of the students participate in after-school activities how many students participate in after-school activities
Answers: 1
question
Mathematics, 22.06.2019 01:10
Ofin . (2,4) (2,1) a. y= 2 b. x= 2 c. x= -2 d. y= 2x
Answers: 1
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
Mathematics, 03.06.2020 20:57
question
Biology, 03.06.2020 20:57
question
Mathematics, 03.06.2020 20:57
question
Mathematics, 03.06.2020 20:57
question
Arts, 03.06.2020 20:57
Questions on the website: 13722363