Testing of hypothesis: what is hypothesis, basic concept concerning testing of hypothesis , procedure of hypothesis testing

Searching the Web

hypothesis testing basic concepts procedure statistics

Finding Sources
Reading File
Reading File
Finding Sources
Reading File
Reading File
Reading File
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 LevelMeaning
α = 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 TRUEH₀ is Actually FALSE
Reject H₀Type I Error (α) - False PositiveCorrect Decision (Power)
Fail to Reject H₀Correct DecisionType 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 TypeTest
Comparing 2 means (large sample)Z-test
Comparing 2 means (small sample)Independent t-test
Comparing proportionsChi-square test
Small categorical samplesFisher's Exact test
Comparing 3+ meansANOVA (F-test)
Paired observationsPaired 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

ConceptDefinition
H₀ (Null Hypothesis)No difference or no effect
H₁ (Alternative Hypothesis)Proposed effect or difference
α (Significance Level)Acceptable probability of Type I error
p-valueProbability of results under H₀
Type I ErrorRejecting a true H₀ (false positive)
Type II ErrorNot rejecting a false H₀ (false negative)
Power (1-β)Probability of correctly detecting a true effect
Critical ValueThreshold for rejecting H₀
Test StatisticCalculated 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

Annova

Finding Sources
Searching the Web

ANOVA analysis of variance complete explanation types procedure F-statistic

Finding Sources
Reading Web Page

https://www.editage.com/blog/anova-types-uses-assumptions-a-…

Finding Sources
Finding Sources
Finding Sources
Finding Sources
I have sufficient information from the web sources to deliver a comprehensive answer. Here is the complete guide on ANOVA:

ANOVA - Analysis of Variance


1. What is ANOVA?

ANOVA (Analysis of Variance) is a statistical technique used to compare the means of three or more groups at the same time to determine if at least one group mean is significantly different from the others.
Why not just use multiple t-tests? If you compare 3 groups using separate t-tests (A vs B, B vs C, A vs C), you run 3 tests, each with a 5% chance of a false positive. Together, the cumulative Type I error rises to ~14%. With 6 groups, you'd have 15 comparisons and ~54% false positive risk. ANOVA controls this by performing a single "omnibus" test, keeping Type I error at exactly α (e.g., 5%).
MethodGroups# of TestsCumulative Type I Error
Multiple t-tests33~14%
ANOVA315% (controlled)
Multiple t-tests615~54%
ANOVA615% (controlled)

2. Core Logic of ANOVA

ANOVA works by partitioning the total variability in the data into two components:
Total Variation = Between-Group Variation + Within-Group Variation
     (SST)             (SSB)                      (SSW)
  • Between-Group Variation (SSB): How much the group means differ from the overall grand mean. This reflects the effect of the independent variable (treatment).
  • Within-Group Variation (SSW): How much individual observations vary within each group (also called "error" or "residual"). This is natural random variation.
The key question: Is the between-group variation large enough compared to the within-group variation to conclude the groups are truly different?
This ratio is called the F-statistic (F-ratio):
$$\boxed{F = \frac{\text{Mean Square Between (MSB)}}{\text{Mean Square Within (MSW)}} = \frac{\text{Variance between groups}}{\text{Variance within groups}}}$$
  • F near 1: Group means are similar - evidence for H₀
  • F much greater than 1: Group means differ more than expected by chance - evidence against H₀

3. Hypotheses in ANOVA

  • H₀ (Null): All group means are equal → μ₁ = μ₂ = μ₃ = ... = μₖ
  • H₁ (Alternative): At least one group mean is different from the others (not all means are equal)
Note: ANOVA does NOT tell you which groups differ - only that some difference exists. Post-hoc tests are needed for that.

4. Types of ANOVA

4.1 One-Way ANOVA

  • Compares means of 3+ groups based on one independent variable (factor)
  • Example: Comparing pain relief scores across 3 drug dosages (10 mg, 20 mg, 30 mg)
  • One factor with multiple levels

4.2 Two-Way ANOVA

  • Compares means based on two independent variables simultaneously
  • Can detect:
    • Main effect of Factor A
    • Main effect of Factor B
    • Interaction effect between A and B (does the effect of A depend on the level of B?)
  • Example: Comparing blood pressure across 3 drugs AND 2 genders simultaneously

4.3 Repeated Measures ANOVA

  • Used when the same subjects are measured at multiple time points or under multiple conditions
  • Controls for individual differences between subjects
  • Example: Measuring anxiety scores in patients before, during, and after treatment
  • Requires testing the assumption of sphericity (Mauchly's test)

4.4 MANOVA (Multivariate ANOVA)

  • Extension of ANOVA for two or more dependent variables at once
  • Example: Comparing both systolic AND diastolic blood pressure across groups simultaneously

5. Assumptions of ANOVA

ANOVA is a parametric test and requires these assumptions:
AssumptionWhat It MeansHow to Test
IndependenceObservations are not related to each otherStudy design review
NormalityData in each group is normally distributedShapiro-Wilk test, Q-Q plots
Homogeneity of VarianceEqual variances across all groups (homoscedasticity)Levene's test, Bartlett's test
Continuous DVDependent variable is interval or ratio scaleVariable measurement check
Sphericity (RM ANOVA only)Equal variance of pairwise differencesMauchly's test
If assumptions are violated: Use Welch's ANOVA (for unequal variances) or Kruskal-Wallis test (non-parametric alternative to one-way ANOVA).

6. Step-by-Step Procedure of ANOVA

Step 1: State Hypotheses

  • H₀: μ₁ = μ₂ = μ₃ (all group means equal)
  • H₁: At least one μᵢ ≠ μⱼ

Step 2: Set Significance Level

  • Typically α = 0.05

Step 3: Calculate Sum of Squares

Grand Mean (X̄_grand): Mean of all observations combined
SSB - Sum of Squares Between groups: $$SSB = \sum_{j=1}^{k} n_j (\bar{X}j - \bar{X}{grand})^2$$
SSW - Sum of Squares Within groups: $$SSW = \sum_{j=1}^{k} \sum_{i=1}^{n_j} (X_{ij} - \bar{X}_j)^2$$
SST - Total Sum of Squares: $$SST = SSB + SSW$$

Step 4: Calculate Degrees of Freedom (df)

SourceDegrees of Freedom
Between groups (df_B)k - 1 (where k = number of groups)
Within groups (df_W)N - k (where N = total observations)
Total (df_T)N - 1

Step 5: Calculate Mean Squares (MS)

$$MSB = \frac{SSB}{df_B} = \frac{SSB}{k-1}$$
$$MSW = \frac{SSW}{df_W} = \frac{SSW}{N-k}$$

Step 6: Calculate the F-Statistic

$$F = \frac{MSB}{MSW}$$

Step 7: Build the ANOVA Table

SourceSSdfMSF
Between groupsSSBk-1MSB = SSB/(k-1)MSB/MSW
Within groups (Error)SSWN-kMSW = SSW/(N-k)-
TotalSSTN-1--

Step 8: Compare F to Critical Value / Find p-value

  • Look up the critical F value from the F-distribution table using df_B and df_W
  • Or use software to find p-value
  • If F_calculated > F_critical (or p < α): Reject H₀

Step 9: Post-Hoc Tests (if H₀ is rejected)

Since ANOVA only tells you "at least one group differs," you need post-hoc tests to find which groups differ.

7. Post-Hoc Tests

Post-Hoc TestBest ForKey Feature
Tukey's HSDEqual group sizes, equal variancesMost widely used; balances power and control
BonferroniFewer planned comparisonsVery conservative; divides α by number of comparisons
Scheffé testUnequal group sizesMost conservative; good for complex contrasts
LSD (Fisher's)Only 3 groupsLeast conservative; higher Type I error risk
Dunnett's testComparing all groups to one controlSpecifically for control group comparisons
Games-HowellUnequal variances and/or unequal nDoes not assume equal variances

8. Worked Example

A doctor tests pain relief (scale 1-10) at three drug doses: 10 mg, 20 mg, 30 mg (5 patients each).
Patient10 mg20 mg30 mg
1468
2577
3359
4468
5478
Mean4.06.28.0
Grand Mean = (4.0 + 6.2 + 8.0) / 3 = 6.07
ANOVA Table:
SourceSSdfMSF
Between groups40.12220.0635.19
Within groups6.80120.57-
Total46.9214--
F = 35.19, p < 0.001
Conclusion: Since F = 35.19 >> F_critical (≈3.89 at α=0.05, df=2,12), we reject H₀. There is a significant difference in pain relief between dosage groups (p < 0.001).
Post-hoc test (Tukey's HSD) would then confirm that each dose level differs significantly from the others.

9. How to Report ANOVA Results

"A one-way ANOVA revealed a significant effect of drug dose on pain relief, F(2, 12) = 35.19, p < .001, η² = .86. Tukey's post-hoc test indicated that 30 mg produced significantly higher relief than both 10 mg (p < .001) and 20 mg (p < .001), and 20 mg was significantly higher than 10 mg (p < .001)."

Format: F(df_between, df_within) = value, p = value, η² = effect size


10. Effect Size in ANOVA

Statistical significance (p-value) alone doesn't tell you how meaningful the difference is. Always report effect size:
MeasureFormulaInterpretation
Eta-squared (η²)SSB / SSTSmall: 0.01, Medium: 0.06, Large: 0.14
Partial η²SSB / (SSB + SSError)Used in two-way/factorial ANOVA
Omega-squared (ω²)Less biased version of η²Preferred for small samples

11. Non-Parametric Alternative

When ANOVA assumptions are violated (non-normal data, ordinal data):
  • One-Way ANOVA → Kruskal-Wallis Test (uses ranks instead of raw values)
  • Repeated Measures ANOVA → Friedman Test

12. Quick Summary

FeatureDetail
PurposeCompare means of 3+ groups
Test statisticF-ratio = MSB / MSW
Null hypothesisAll group means are equal
Decision ruleReject H₀ if F > F_critical or p < α
LimitationOnly tells IF difference exists, not WHERE
Follow-upPost-hoc tests (Tukey's, Bonferroni, etc.)
Non-parametric versionKruskal-Wallis test

This is a shared conversation. Sign in to Orris to start your own chat.