Hypothesis testing is a statistical method for making decisions about a population based on sample data.
\[ H_0: \mu_D = \mu_A \\ H_A: \mu_D \neq \mu_A \]
2025-04-14
Hypothesis testing is a statistical method for making decisions about a population based on sample data.
\[ H_0: \mu_D = \mu_A \\ H_A: \mu_D \neq \mu_A \]
We compare average ratings between Drama and Action movies using data from the ggplot2movies package.
## ## Welch Two Sample t-test ## ## data: drama_ratings and action_ratings ## t = 34.902, df = 6346.6, p-value < 2.2e-16 ## alternative hypothesis: true difference in means is not equal to 0 ## 95 percent confidence interval: ## 0.8132646 0.9100589 ## sample estimates: ## mean of x mean of y ## 6.153684 5.292022
Hypothesis testing helps us make data-driven comparisons between groups.