In: Statistics and Probability
"Savor"BlackBeans: 71, 80, 81, 77, 82, 72, 79, 85, 78, 76
"Praise"Seitan: 83, 79, 77, 85, 80, 86, 78, 84, 83, 80
a. Population of interest: The judges from Avocado Park
b. Variables of interest: Scores of "Savor"BlackBeans and Scores of "Praise"Seitan.
c. Continuous variable (score lies in 0-100)
d.
g.
We assume that two samples come from two independent normal populations with equal population variances.
h.
R output:
> shapiro.test(SavorBlackBeans)
Shapiro-Wilk normality test
data: SavorBlackBeans
W = 0.97033, p-value = 0.8939
> shapiro.test(PraiseSeitan)
Shapiro-Wilk normality test
data: PraiseSeitan
W = 0.94196, p-value = 0.575
From above test we see that p-value for both samples is greater
than 0.05 so assumption of normality holds.
R output:
F test to compare two variances
data: SavorBlackBeans and PraiseSeitan
F = 1.9526, num df = 9, denom df = 9, p-value = 0.3332
alternative hypothesis: true ratio of variances is not equal to
1
95 percent confidence interval:
0.4849985 7.8611608
sample estimates:
ratio of variances
1.952601
From above test since p-value>0.05, assumption of equal
variances holds.
Two Sample t-test
data: SavorBlackBeans and PraiseSeitan
t = -2.0183, df = 18, p-value = 0.05871
alternative hypothesis: true difference in means is not equal to
0
95 percent confidence interval:
-6.9391513 0.1391513
sample estimates:
mean of x mean of y
78.1 81.5
From above test, since p-value=0.05871>0.05 so we fail to reject
null hypothesis at 5% level of significance.
R code:
SavorBlackBeans=c( 71, 80, 81, 77, 82, 72, 79, 85, 78, 76)
PraiseSeitan=c( 83, 79, 77, 85, 80, 86, 78, 84, 83, 80)
shapiro.test(SavorBlackBeans)
shapiro.test(PraiseSeitan)
var.test(SavorBlackBeans,PraiseSeitan,alternative =
"two.sided")
t.test(SavorBlackBeans,PraiseSeitan,var.equal=TRUE)
i. From h, we conclude that there is insufficient evidence that there is insignificant diference in the mean scores of taco filling.