Module # 5 assignment
Question #1 a. Null Hypothesis (H0): The machine is producing cookies according to the manufacturer's specifications, with a mean breaking strength of 70 pounds. Alternative Hypothesis (Ha): The machine is not producing cookies according to the manufacturer's specifications, with a mean breaking strength different from 70 pounds. b. a <- 70 s <- 3.5 n <- 49 xbar <- 69.1 z <- (xbar - a) / (s / sqrt(n)) p_value <- 2 * pnorm(-abs(z)) alpha <- 0.05 if (p_value < alpha) { cat("Reject the null hypothesis. There is evidence that the machine is not meeting the manufacturer's specifications.\n") } else { cat("Fail to reject the null hypothesis. There is no evidence that the machine is not meeting the manufacturer's specifications.\n") } c. The computed p-value is the probability of observing a sample mean as extreme as 69.1 pounds, assuming the null hypothesis is true. If the p-value is less than the significance level (0.05), ...