In-Depth Notes on Hypothesis Testing and t-Distributions
Overview of Hypothesis Testing
Focuses on hypothesis testing, covering Chapters 7 and 8 of Basic Quantitative Methods.
t-Distribution
The t-distribution is used when the population standard deviation (σ) is unknown, and the sample standard deviation (s) is utilized instead.
The t-test applies when testing means with sample size n < 30 (or when the population distribution is not perfectly normal).
Key Characteristics of t-Distribution:
Mean, median, and mode are all equal to 0.
Bell-shaped and symmetric about the mean.
Total area is 1, thicker tails compared to z-distribution, especially for smaller degrees of freedom.
Degrees of freedom (d.f.) are calculated as n - 1, where n is the sample size.
As d.f. increases (≥ 30), the t-distribution approaches the standard normal distribution.
Setting up Hypothesis Testing
Level of Significance (α): Determine the probability of rejecting the null hypothesis when it is true.
Null Hypothesis (H₀): The statement that there is no effect or difference; it is what is tested against.
Alternative Hypothesis (H₁): The statement that indicates the presence of an effect or difference (what we want to prove).
Types of t-Tests
1. One-Sample t-Test
Used when testing a single mean.
Steps include:
Verifying assumptions (normality, random sample).
Stating the hypotheses.
Determining significance level and critical value.
Calculating the t-statistic.
Making decisions (reject or fail to reject H₀).
2. Two-Sample t-Test (Independent Samples)
Used to compare the means of two independent groups.
Assumptions:
Random samples, independent, normally distributed, variances equal or approximately equal.
Formula:
Test statistic: t=s<em>x</em>1−x<em>2(xˉ<em>1−xˉ</em>2)−(μ<em>1−μ</em>2) where s</em>x<em>1−x</em>2=s<em>12/n</em>1+s<em>22/n</em>2
d.f. = n₁ + n₂ - 2 if equal variances, smaller of n₁ - 1 or n₂ - 1 if unequal variances.
3. Dependent Samples t-Test
Used in situations where observations are paired (e.g., before and after measurements).
Procedure:
Calculate the difference between pairs (d).
Compute the mean of differences and standard deviation of differences.
Use the formula for test statistics: t=s</em>d/ndˉ−μ<em>d
where n is the number of pairs and μd is the hypothesized mean difference (usually 0).
Finding Critical Values
Utilize critical value tables (Chapter 5, Appendix B) to identify the critical t-values based on α and degrees of freedom.
Determine whether the test is two-tailed or one-tailed, adjusting signs accordingly (negative for left-tailed, positive for right-tailed).
Example Calculations
Example 1: One-Sample t-Test
Null Hypothesis: H₀: μ ≥ $23,500
Sample mean: $21,558, Sample SD: $3,350, n = 14.
d.f. = 13, critical t-value found in table based on α = 0.05.
Calculate the test statistic; if it falls in the rejection region, reject H₀.
Example 2: Two-Sample t-Test
Null Hypothesis: H₀: μ₁ = μ₂.
Mean and SD for both groups used to calculate the t-value.
Use the correct formulas based on equal or unequal variances when determining the significance of the observed difference.
Recap on Differences in Tests
Z-tests apply when population standard deviation is known, t-tests when it is unknown. Use t-tests for dependent and independent samples based on the nature of the comparison.
Practice Questions
Engage with practice exercises to reinforce understanding of hypothesis testing, critical values, and calculating t-statistics across various experimental designs.