Mathematics
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.

answer
Answers: 3

Other questions on the subject: Mathematics

image
Mathematics, 21.06.2019 16:50, charlotte67
Which of the following points is collinear with (-2,1) and (0,3)
Answers: 3
image
Mathematics, 21.06.2019 21:00, animexcartoons209
With alll of except for the 2 that i did already
Answers: 1
image
Mathematics, 21.06.2019 22:00, Treezy11
Two numbers have a sum of -19. one number is x. what expression represents the other number?
Answers: 2
image
Mathematics, 21.06.2019 22:30, NearNoodle23
Meghan has created a diagram of her city with her house, school, store, and gym identified. a. how far is it from the gym to the store? b. meghan also wants to walk to get some exercise, rather than going to the gym. she decides to walk along arc ab. how far will she walk? round to 3 decimal places.
Answers: 1
Do you know the correct answer?
Suppose the management claims that the proportion of games that your team wins when scoring 80 or mo...

Questions in other subjects:

Konu
Social Studies, 05.07.2019 23:00