Skip to content

Indian Exam Hub

Building The Largest Database For Students of India & World

Menu
  • Main Website
  • Free Mock Test
  • Fee Courses
  • Live News
  • Indian Polity
  • Shop
  • Cart
    • Checkout
  • Checkout
  • Youtube
Menu

T-Test

Posted on October 19, 2025October 20, 2025 by user

T-Test: Definition and Overview

A t-test is an inferential statistical test that compares the means of two groups to determine whether they are statistically different. It is commonly used in hypothesis testing when samples are approximately normally distributed and population variances are unknown.

Key points:
* Requires sample means, sample variances (or standard deviations), and sample sizes.
* Produces a t-value (t-score) and degrees of freedom (df).
* Compare the computed t-value to a critical value from the t-distribution (based on df and chosen significance level) to accept or reject the null hypothesis (that the two population means are equal).

Explore More Resources

  • › Read more Government Exam Guru
  • › Free Thousands of Mock Test for Any Exam
  • › Live News Updates
  • › Read Books For Free

Assumptions

A t-test is valid when:
* The outcome is measured on a continuous or ordinal scale.
* Samples are randomly selected.
* Data are approximately normally distributed (especially important for small samples).
* For pooled (equal-variance) t-tests: variances in the two groups are similar (homoscedasticity).

How the Test Works

  1. State hypotheses:
  2. Null hypothesis (H0): means are equal.
  3. Alternative hypothesis (H1): means differ (two-tailed) or one mean is greater/less (one-tailed).
  4. Compute the t-value = (difference in sample means) / (estimate of standard error).
  5. Determine degrees of freedom (depends on test type).
  6. Compare the absolute t-value to the critical t from a t-distribution table (or use a p-value).
  7. If |t| > critical value (or p < α), reject H0 — the difference is statistically significant.
  8. Otherwise, do not reject H0.

A larger absolute t-value indicates stronger evidence that the group means differ.

Explore More Resources

  • › Read more Government Exam Guru
  • › Free Thousands of Mock Test for Any Exam
  • › Live News Updates
  • › Read Books For Free

When to Use Each T-Test

Decide first whether samples are paired (dependent) or independent (unpaired):

  • Paired (dependent): same subjects measured twice (before/after) or matched pairs.
  • Independent (unpaired): observations in group A are unrelated to observations in group B.

For independent samples, choose between:
* Pooled (equal-variance) t-test: use when sample sizes and variances are similar.
* Welch’s (unequal-variance) t-test: use when sample sizes or variances differ. Welch’s is more robust when variances are unequal.

Explore More Resources

  • › Read more Government Exam Guru
  • › Free Thousands of Mock Test for Any Exam
  • › Live News Updates
  • › Read Books For Free

Formulas

Notation:
* mean1, mean2 = sample means
* var1, var2 = sample variances (squared standard deviations)
* n1, n2 = sample sizes
* s(diff) = standard deviation of paired differences
* sp^2 = pooled variance

  1. Paired t-test (dependent samples)
  2. Use when observations are matched or repeated measures.
  3. t = (mean1 − mean2) / ( s(diff) / sqrt(n) )
  4. df = n − 1 (n = number of paired differences)

    Explore More Resources

    • › Read more Government Exam Guru
    • › Free Thousands of Mock Test for Any Exam
    • › Live News Updates
    • › Read Books For Free
  5. Pooled (equal-variance) independent t-test

  6. Pooled variance:
    sp^2 = [ (n1 − 1)*var1 + (n2 − 1)*var2 ] / (n1 + n2 − 2)
  7. t = (mean1 − mean2) / sqrt( sp^2 * (1/n1 + 1/n2) )
  8. df = n1 + n2 − 2

    Explore More Resources

    • › Read more Government Exam Guru
    • › Free Thousands of Mock Test for Any Exam
    • › Live News Updates
    • › Read Books For Free
  9. Welch’s (unequal-variance) t-test

  10. t = (mean1 − mean2) / sqrt( var1/n1 + var2/n2 )
  11. df ≈ ( (var1/n1 + var2/n2)^2 ) / ( (var1^2/((n1^2)(n1−1))) + (var2^2/((n2^2)(n2−1))) )
  12. Use this df (usually non-integer) when looking up the critical t; many software packages compute the exact p-value.

Example (Summary)

A gallery measures a diagonal dimension for two groups of paintings: group A (n1 = 10) and group B (n2 = 20). Sample means differ (e.g., 19.4 vs. 21.6). Because sample sizes and variances differ, Welch’s t-test is applied. Computation yields:
* t ≈ −2.2479 (use absolute value 2.2479)
* df ≈ 24.38 → rounded down to 24 for table lookup
* At α = 0.05 (two-tailed), critical t ≈ 2.064

Explore More Resources

  • › Read more Government Exam Guru
  • › Free Thousands of Mock Test for Any Exam
  • › Live News Updates
  • › Read Books For Free

Since 2.2479 > 2.064, reject the null hypothesis: the mean diagonal differs between the two groups (difference unlikely due to chance).

One-Tailed vs Two-Tailed Tests and the t-Distribution Table

  • One-tailed: tests a directional hypothesis (e.g., mean1 > mean2). Use when you expect a specific direction.
  • Two-tailed: tests for any difference (mean1 ≠ mean2). More common when direction is not predetermined.

Use the t-distribution table (or software) with the appropriate df and tail choice to find the critical t-value or p-value.

Explore More Resources

  • › Read more Government Exam Guru
  • › Free Thousands of Mock Test for Any Exam
  • › Live News Updates
  • › Read Books For Free

Practical Notes

  • For moderate or large samples (n > ~30), the t-distribution approaches the normal distribution; z-tests may be used when population variance is known.
  • Always check assumptions (normality, independence). If assumptions fail, consider nonparametric alternatives (e.g., Wilcoxon tests).
  • Software (R, Python, SPSS, Excel) routinely implements t-tests and computes exact p-values and Welch df automatically.

Takeaways

  • A t-test evaluates whether two sample means are sufficiently different to infer a population difference.
  • Choose the appropriate variant: paired, pooled independent, or Welch’s independent test.
  • The key inputs are sample means, variances (or standard deviations), and sample sizes; interpretation relies on the t-value and its degrees of freedom.

Youtube / Audibook / Free Courese

  • Financial Terms
  • Geography
  • Indian Law Basics
  • Internal Security
  • International Relations
  • Uncategorized
  • World Economy
Federal Reserve BankOctober 16, 2025
Economy Of TuvaluOctober 15, 2025
MagmatismOctober 14, 2025
Fibonacci ExtensionsOctober 16, 2025
Real EstateOctober 16, 2025
OrderOctober 15, 2025