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 12:30
Fiona joins a fruit of the month club. the entry cost was $25 and then she pays $18 per month. if she participates for 8 months, how much will she pay in all? how much in 10 months?
Answers: 1
question
Mathematics, 21.06.2019 17:00
Jamie went to home depot.she bought 25 bags of soil that cost $9 per bag.she bought 15 pots at $8 each, and she bought 23 bags of pebbles at $15 each.she used a coupon that gave her $5 off for every 100 dollars she spent. how much did jamie pay at the end?
Answers: 1
question
Mathematics, 21.06.2019 21:00
The paint recipe also calls for 1/4 cup of food coloring. tyler says mrs.mcglashan will also need 6 cups of food coloring. do u agree or disagree? explain.
Answers: 2
question
Mathematics, 21.06.2019 21:30
The perimeter of a rectangular lot of land is 436 ft. this includes an easement of x feet of uniform width inside the lot on which no building can be done. if the buildable area is 122 ft by 60 ft, determine the width of the easement. select one: a. 9 feet b. 18 feet c. 4.5 feet d. 7 feet
Answers: 3
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, 29.06.2021 22:40
Questions on the website: 13722367