- Hypothesis testing is a statistical method used to make inferences or decisions about population parameters based on sample data.
- It is a key concept in inferential statistics used across various fields.
2024-10-21
Null Hypothesis (\(H_0\)): There is no effect or no difference.
\[ H_0: \mu = \mu_0 \]
Alternative Hypothesis (\(H_A\)): There is an effect or a difference.
\[ H_A: \mu \neq \mu_0 \]
Example: - Test whether the mean height of students in a school differs from 170 cm.
## Loading required package: ggplot2
## ## Attaching package: 'plotly'
## The following object is masked from 'package:ggplot2': ## ## last_plot
## The following object is masked from 'package:stats': ## ## filter
## The following object is masked from 'package:graphics': ## ## layout
\[ Z = \frac{\bar{X} - \mu_0}{\frac{\sigma}{\sqrt{n}}} \]
\[ t = \frac{\bar{X} - \mu_0}{\frac{s}{\sqrt{n}}} \]
Both help in hypothesis testing for population means.