Hypothesis Testing: One-Sample Tests
Hypothesis testing is a statistical method used to determine if there is enough evidence in a sample to infer that a certain condition is true for the entire population. It involves formulating hypotheses, calculating a test statistic, and comparing it to a probability distribution to draw a conclusion.
Core Principles
- Hypothesis testing helps distinguish real effects from sampling variability.
- It involves a null hypothesis (baseline assumption) and an alternative hypothesis (what might differ).
- The alpha level (α) represents the acceptable probability of error.
- A p-value indicates the probability of observing the data (or more extreme) if the null hypothesis were true.
- If p-value < α, reject the null hypothesis; otherwise, fail to reject it.
- One-sample tests compare a sample statistic to a fixed value.
- Two-sample tests compare two statistics to each other.
- The choice of test statistic (z or t) depends on whether you are testing proportions or means.
Action Steps
- Confirm test assumptions (random sampling, data type, distribution).
- State the null (H₀) and alternative (H<0xE2><0x82><0x90>) hypotheses.
- Calculate the appropriate test statistic (z or t).
- Determine the critical value(s) based on the alpha level and distribution.
- Compare the test statistic to the critical value(s) or calculate the p-value.
- Draw a conclusion: reject or fail to reject the null hypothesis.
- Interpret the conclusion in the context of the original question.
Formulas
- For proportions: $z = \frac{p - \pi_0}{s_{\pi_0}}$, where $s_{\pi_0} = \sqrt{\frac{\pi_0(1 - \pi_0)}{n}}$
- For means: $t = \frac{\bar{y} - \mu_0}{s_{\bar{y}}}$, where $s_{\bar{y}} = \frac{s_y}{\sqrt{n}}$
Key Terms
- Null Hypothesis (H₀): A statement of no effect or no difference; the baseline assumption.
- Alternative Hypothesis (H<0xE2><0x82><0x90>): A statement about how reality might differ from the null hypothesis.
- Alpha Level (α): The probability of making a Type I error (rejecting a true null hypothesis).
- P-value: The probability of obtaining test results at least as extreme as the results actually observed, assuming that the null hypothesis is correct.
- Test Statistic: A value calculated from sample data used to decide whether to reject the null hypothesis.
- Critical Value: The threshold value that defines the rejection region for a test statistic.
- Sampling Distribution: The distribution of a statistic (like the mean or proportion) from all possible samples of a given size from a population.
- Degrees of Freedom (df): A parameter used in t-distributions, typically related to sample size (e.g., n-1 for one-sample t-tests).