I now have excellent content from multiple textbook sources. Let me compile a thorough, well-structured answer.
Testing of Hypothesis: Complete Guide
1. What is a Hypothesis?
A hypothesis is a statement or claim about a property of a population. In research, it is a tentative assumption made to draw out and test its logical or empirical consequences. Hypotheses are the foundation of inferential statistics - they allow us to move from sample data to conclusions about a population.
"In a statistical hypothesis, statements are made about the relationship among parameters of one or more populations."
- Barash, Cullen, and Stoelting's Clinical Anesthesia, 9e
2. Basic Concepts in Hypothesis Testing
2.1 The Null Hypothesis (H₀)
The null hypothesis is the default statement of "no difference" or "no effect." It is the hypothesis that is actually tested. Think of it like the presumption of innocence in a criminal trial - we begin assuming no difference exists until the data proves otherwise.
- Example: "There is no difference in blood pressure between the treatment group and the control group."
- Algebraically: H₀: μ₁ = μ₂
"A comparative study commences with a fundamental presumption of 'no difference,' known as the null hypothesis. The null hypothesis posits that the difference between the two treatments being compared is zero."
- Rockwood and Green's Fractures in Adults, 10th ed.
2.2 The Alternative Hypothesis (H₁ or Hₐ)
The alternative hypothesis is what you are trying to prove. It is the logical negation of the null hypothesis.
- Example: "The treatment group has lower blood pressure than the control group."
- Algebraically: H₁: μ₁ ≠ μ₂ (two-tailed) or H₁: μ₁ < μ₂ (one-tailed)
Two types of alternative hypotheses exist:
- Two-tailed (non-directional): Tests for any difference, either greater or less (μ₁ ≠ μ₂). More conservative.
- One-tailed (directional): Tests for a difference in one specific direction only (μ₁ > μ₂ or μ₁ < μ₂).
2.3 Level of Significance (α)
The significance level (α) is the probability of rejecting the null hypothesis when it is actually true (i.e., the maximum acceptable risk of making a wrong rejection). It is chosen before conducting the test.
| Significance Level | Meaning |
|---|
| α = 0.10 (10%) | Willing to accept 10% risk of false rejection |
| α = 0.05 (5%) | Standard in most research |
| α = 0.01 (1%) | Stricter, used in high-stakes studies |
"In the medical literature, this threshold is typically set at a value of less than 5% (i.e., p < .05)."
- Rockwood and Green's Fractures in Adults, 10th ed.
As α increases → β decreases, and vice versa. As sample size (n) increases → both α and β decrease.
2.4 The P-Value
The p-value is the probability of obtaining the observed results (or more extreme results) assuming the null hypothesis is true. It is not the probability that H₀ is true.
- If p < α: Reject H₀ - result is "statistically significant"
- If p ≥ α: Fail to reject H₀ - result is "not statistically significant"
"The level of significance is the probability level considered too low to warrant support of the null hypothesis being tested. If sample values are sufficiently unlikely to have occurred by chance (i.e., the probability of the sample test statistic is less than the chosen level of significance), the null hypothesis is rejected."
- Barash, Cullen, and Stoelting's Clinical Anesthesia, 9e
2.5 Test Statistic
A test statistic is a numerical value calculated from the sample data. It is used to decide whether to reject H₀. Examples include:
- Z-statistic (large samples, known σ)
- t-statistic (small samples, unknown σ)
- Chi-square (χ²) (categorical data)
- F-statistic (comparing variances/ANOVA)
- Fisher's Exact Test (small sample categorical comparisons)
2.6 Type I and Type II Errors
Because hypothesis testing deals with probabilities, not certainties, two types of errors are possible:
| H₀ is Actually TRUE | H₀ is Actually FALSE |
|---|
| Reject H₀ | Type I Error (α) - False Positive | Correct Decision (Power) |
| Fail to Reject H₀ | Correct Decision | Type II Error (β) - False Negative |
- Type I Error (α): Rejecting a true null hypothesis (false positive). Probability = α (the significance level).
- Type II Error (β): Failing to reject a false null hypothesis (false negative).
- Power (1 - β): The probability of correctly rejecting a false H₀. A well-designed study aims for power ≥ 0.80.
"Type I errors are generally considered more serious."
2.7 Critical Region and Critical Value
The critical region is the range of test statistic values that lead to rejection of H₀. The critical value is the boundary of this region. If the test statistic falls in the critical region, H₀ is rejected.
2.8 Confidence Interval (CI)
A 95% confidence interval is directly related to hypothesis testing at α = 0.05. If a CI for a difference does not include zero (for differences) or 1 (for ratios), the result is statistically significant.
3. Procedure of Hypothesis Testing
The step-by-step process is consistent across all types of tests:
Step 1: State the Hypotheses
Clearly formulate both:
- H₀ (Null): States no effect, no difference, or no relationship
- H₁ (Alternative): States the expected effect or difference
Step 2: Choose the Level of Significance (α)
Select α before collecting data (usually 0.05). This reflects the tolerance for Type I error.
Step 3: Select the Appropriate Statistical Test
Based on:
- Type of data (continuous, categorical, ordinal)
- Number of groups (two groups → t-test; multiple groups → ANOVA)
- Sample size (large → Z-test; small → t-test)
- Distribution of data (parametric vs. non-parametric)
Common tests:
| Data Type | Test |
|---|
| Comparing 2 means (large sample) | Z-test |
| Comparing 2 means (small sample) | Independent t-test |
| Comparing proportions | Chi-square test |
| Small categorical samples | Fisher's Exact test |
| Comparing 3+ means | ANOVA (F-test) |
| Paired observations | Paired t-test |
Step 4: Collect Data and Calculate the Test Statistic
Use the sample data to compute the relevant test statistic (Z, t, χ², F, etc.).
Step 5: Determine the Critical Value or P-value
- Critical value method: Compare the test statistic against the critical value from standard tables (Z-table, t-table, etc.)
- P-value method: Calculate the probability of obtaining that test statistic under H₀
Step 6: Make a Decision
- If test statistic > critical value (or p < α): Reject H₀
- If test statistic ≤ critical value (or p ≥ α): Fail to reject H₀
Note: We never "accept" H₀ - we only "fail to reject" it, acknowledging that absence of evidence is not evidence of absence.
Step 7: State the Conclusion
Interpret the statistical decision in the context of the original research question.
- Example: "At the 5% significance level, there is sufficient evidence to conclude that the new drug significantly reduces blood pressure (t = 3.2, p = 0.002)."
4. Worked Example (Coin Toss)
A coin is tossed 10 times and lands heads every time.
- H₀: The coin is fair (P(heads) = 0.5)
- H₁: The coin is biased toward heads
- Test: Probability = 0.5^10 ≈ 0.001 → p < 0.001
- Decision: Since p < 0.05 (α), reject H₀
- Conclusion: The coin appears to be biased toward heads (statistically significant at p < 0.001)
This example is directly from Rockwood and Green's Fractures in Adults, 10th ed. to illustrate the intuitive nature of hypothesis testing.
5. Summary Table
| Concept | Definition |
|---|
| H₀ (Null Hypothesis) | No difference or no effect |
| H₁ (Alternative Hypothesis) | Proposed effect or difference |
| α (Significance Level) | Acceptable probability of Type I error |
| p-value | Probability of results under H₀ |
| Type I Error | Rejecting a true H₀ (false positive) |
| Type II Error | Not rejecting a false H₀ (false negative) |
| Power (1-β) | Probability of correctly detecting a true effect |
| Critical Value | Threshold for rejecting H₀ |
| Test Statistic | Calculated value from sample (Z, t, χ², F) |
Sources: Barash, Cullen, and Stoelting's
Clinical Anesthesia, 9e | Rockwood and Green's
Fractures in Adults, 10th ed. | Tietz
Textbook of Laboratory Medicine, 7th ed. |
Scribbr: Hypothesis Testing Guide