show appropriate work If you use R for some of your solutions include the code y
ID: 2921365 • Letter: S
Question
show appropriate work If you use R for some of your solutions include the code you used 7. (Higgins 5-12) Thirty recreational basketball players were asked to shoot two free throws. Data on whether they made or missed their shots are shown in the table. The question of interest is whether the probability of making a shot on the first attempt is different from the probability of making a shot on the second attempt. Made Second Attempt 14 Missed Second Attempt Missed First Attempt Made First Attempt Determine if the probabilities of making a shot are different between the first and second shot using (a) Parametric chi-squared test. (b) Fisher's exact test. (c) McNemar's test.Explanation / Answer
a) parametric Chi-squared Test:
Using R:
>Tasting <-matrix(c(4, 5, 14, 7),nrow = 2, dimnames = list(Guess = c("Missed1st", "Made1st"),Truth = c("Missed2nd", "made2nd")))
>Xsq <- chisq.test(Tasting)
>Xsq
Output:
Pearson's Chi-squared test with Yates' continuity correction
data: Tasting
X-squared = 0.53571, df = 1, p-value = 0.4642
b) Fisher's Exact test:
>fisher.test(Tasting, alternative = "two.sided")
Fisher's Exact Test for Count Data
data: Tasting
p-value = 0.4181
alternative hypothesis: true odds ratio is not equal to 1
95 percent confidence interval:
0.05986525 2.61005193
sample estimates:
odds ratio
0.4131166
c) Mcnemar's test:
> mcnemar.test(Tasting, correct = FALSE)
McNemar's Chi-squared test
data: Tasting
McNemar's chi-squared = 4.2632, df = 1, p-value = 0.03895
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.