Charlie B. answered 12/16/22
Former TA
In hypothesis testing, we always start by writing our null and alternative hypothesis. H0: mu = 4.0 H1: mu =/= 4.0. Let's call 4.0 mu0.
Let's find out test statistic z0 = (x_bar - mu0) / (s / sqrt(n)) = (3.72-4) * sqrt(50) / 0.57 = -3.474
P-value method (denoting the inverse cdf of the standard normal as PHI): p_value = 2 * (1 - PHI(z0)) = 0.000515. Since the p-value is less than our significance level, we reject the null hypothesis that mu=4.0
Critical value method: We compare z0 to z_alpha/2 = z such that P(standard normal > z) = alpha/2 = 0.025.
z_0.025 = 1.645. Since the absolute value of z0 is larger than z_alpha/2, we reject the null hypothesis that mu=4.0.
Confidence interval method: We find the confidence interval mu and say that 4.0 is not in the confidence interval.