When to use
Independent t-test
Two separate groups (e.g., Treatment A vs B).
Assumptions: independence, roughly normal residuals, similar variance (or use Welch).
Paired t-test
Same subjects before/after (e.g., plaque index baseline vs 6 weeks).
Uses within-person differences; often more power.
Interactive: independent t-statistic (teaching demo)
Enter group summaries and visualize the mean difference with uncertainty.
Group 1
Group 2
Visual summary
Error bars approximate +/-1 SE around the mean.
Dental Scenario: Comparing Bond Strength of Two Adhesive Systems
Independent two-sample t-test with step-by-step walkthrough
Study Design
A materials researcher tests the shear bond strength (MPa) of two dental adhesive systems. Adhesive A (total-etch) is tested on 12 specimens and Adhesive B (self-etch) on 12 specimens. Each specimen is an independently prepared extracted tooth. Is there a significant difference in mean bond strength?
Raw Data: Two Groups of Specimens
Adhesive A (Total-etch) - MPa
Adhesive B (Self-etch) - MPa
Compute Group Means & Standard Deviations
Calculate the t-Statistic (Welch's t-test)
Interpret the Result
Real Dental Scenario: Electric Toothbrush Effectiveness
Paired t-test with animated walkthrough
Study Design
A dentist measures the plaque index of 8 patients before and after 4 weeks of using an electric toothbrush. Since each patient serves as their own control, a paired t-test is appropriate.
Patient Data: Before vs After
| Patient | Before | After | Visual Comparison |
|---|
Paired Differences (d = Before - After)
Mean Difference & Standard Deviation
Standard Error & t-Statistic
Interpretation: With t = 31.40 and df = 7, this is highly statistically significant (p < 0.001). The electric toothbrush produced a consistent and meaningful reduction in plaque index.
Visual Summary: Before vs After
Dental example
Comparing mean probing depth reduction between two treatments is an independent t-test case. Comparing baseline vs follow-up within the same patients is a paired t-test case.