Question: Step 5 : Hypothesis Test for the Population Proportion Suppose the management claims that the proportion of games that your team wins when scoring 1
Step : Hypothesis Test for the Population Proportion Suppose the management claims that the proportion of games that your team wins when scoring or more points is Test this claim using a level of significance. Make the following edits to the code block below: Replace COUNTVAR?? with the variable name that represents the number of games won when your team scores over points. Hint: this variable is in the code block below Replace NOBSVAR?? with the variable name that represents the total number of games when your team scores over points. Hint: this variable is in the code block below Replace NULLHYPOTHESISVALUE?? with the proportion under the null hypothesis. After you are done with your edits, click the block of code below and hit the Run button above. from statsmodels.stats.proportion import proportionsztest yourteamgtdf yourteamdfyourteamdfpts # Number of games won when your team scores over points counts yourteamgtdfgameresult'Wsum # Total number of games when your team scores over points nobs lenyourteamgtdfgameresult' p countsnobs printProportion of games won by your team when scoring more than points in the years to roundp # Hypothesis Test # TODO: make your edits here teststatistic, pvalue proportionsztestcounts nobs, propvar printHypothesis Test for the Population Proportion" printTest Statistic roundteststatistic, printPvalue roundpvalue,
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
