Steps in Hypothesis Testing
Formulate Hypotheses
Null Hypothesis \(H_0\): Sustainable formula does not improve test scores
(mean difference = 0).
Alternative Hypothesis \(H_1\): Sustainable formula improves test scores
(mean difference > 0).
Collect Data
Choose a Significance Level
Commonly used significance level: \(\alpha = 0.05\)
Perform the Test
We’ll use a one-tailed t-test to compare the means of the two groups.
# Data
traditional <- c(78, 85, 82, 88, 75, 79, 83, 91, 77, 84)
sustainable_formula <- c(85, 89, 92, 95, 88, 90, 94, 96, 91,
93)
# Perform t-test
t_test_result <- t.test(sustainable_formula, traditional, alternative = "greater")
# Print results
print(t_test_result)
Welch Two Sample t-test
data: sustainable_formula and traditional t = 4.7259, df = 15.77, p-value = 0.0001186 alternative hypothesis: true difference in means is greater than 0 95 percent confidence interval: 5.735182 Inf sample estimates: mean of x mean of y 91.3 82.2
The results from this Hypothesis Test tell us that the true difference in means
is greater than 0. That is, there evidence to suggest that Sustainable formula
improves test scores.