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

Other questions on the subject: Mathematics

image
Mathematics, 21.06.2019 14:00, pandagorwar
Emma will roll two number cubes labeled 1 through 6. she will record the sum of the two numbers after each roll. she will roll the two cubes 540 times. how many times should emma expect the sum to equal 5?
Answers: 2
image
Mathematics, 21.06.2019 21:00, juicyx39
Campus rentals rents 2 and 3 bedrooms apartments for $700 ans $900 a month respectively. last month they had six vacant apartments and reported $4600 in lost rent. how many of each type of apartment were vacant?
Answers: 1
image
Mathematics, 21.06.2019 21:30, stressedmolly8387
An annual marathon covers a route that has a distance of approximately 26 miles. winning times for this marathon are all over 2 hours. the following data are the minutes over 2 hours for the winning male runners over two periods of 20 years each. earlier period 14 12 15 22 13 10 19 13 9 14 20 18 16 20 23 12 18 17 6 13 recent period 7 11 7 14 8 9 11 14 8 7 9 8 7 9 9 9 9 8 10 8 (a) make a stem-and-leaf display for the minutes over 2 hours of the winning times for the earlier period. use two lines per stem. (use the tens digit as the stem and the ones digit as the leaf. enter none in any unused answer blanks. for more details, view how to split a stem.) minutes beyond 2 hours earlier period 0 1 2 (b) make a stem-and-leaf display for the minutes over 2 hours of the winning times for the recent period. use two lines per stem. (use the tens digit as the stem and the ones digit as the leaf. enter none in any unused answer blanks.) minutes beyond 2 hours recent period (c) compare the two distributions. how many times under 15 minutes are in each distribution
Answers: 2
image
Mathematics, 22.06.2019 01:00, haza1873
33 ! use the following data to determine the type of function (linear, quadratic, exponential) that best fits the data set. (1, 2) (5, 7) (9, 8) (3, 4) (4, 5) (2, 3)
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 in other subjects:

Konu
History, 07.04.2020 08:07