- Hypothesis testing is a statistical method used to make inferences about population parameters based on sample data.
- It involves testing a hypothesis about the population parameter using sample data.
2024-03-21
\[ \begin{align*} H_0 &: \mu = \mu_0 \\ H_1 &: \mu \neq \mu_0 \end{align*} \]
\[ \text{Test Statistic} = \frac{\text{Sample Statistic} - \text{Population Parameter}}{\text{Standard Error}} \]
heights <- c(167, 170, 169, 172, 175) mu_0 <- 170 sample_mean <- mean(heights) sample_sd <- sd(heights) test_statistic <- (sample_mean - mu_0) / (sample_sd / sqrt(length(heights))) test_statistic
## [1] 0.4399413