🧪 t-Test

Last Updated: Jan 2026


A t-Test is a hypothesis test used to determine whether a sample mean (or means) is significantly different when:

  • Sample size is small
  • Population standard deviation is unknown

It uses the t-distribution, which is wider than the normal distribution.

🗣 Hinglish Tip: t-Test = jab sample chhota ho aur σ\sigma pata na ho

When to Use t-Test?

Use t-Test when:

  • Sample size: n<30n < 30
  • Population standard deviation unknown
  • Data is approximately normal
  • Samples are independent (except paired test)

Types of t-Test

  1. One-Sample t-Test
  2. Two-Sample (Independent) t-Test
  3. Paired t-Test

👉 In this tutorial, we cover One-Sample t-Test


t-Test Notation (Math Standard)

  • Population mean → μ\mu
  • Sample mean → xˉ\bar{x}
  • Sample standard deviation → ss
  • Sample size → nn
  • Degrees of freedom → df=n1df = n - 1
  • Significance level → α\alpha
  • t statistic → tt

t-Test Formula (One-Sample)

t=xˉμs/nt = \frac{\bar{x} - \mu}{s / \sqrt{n}}

Example

A coaching institute claims that the average score of students is 70. A sample of 10 students is taken and their scores are:

65,68,70,72,74,69,71,73,67,6665, 68, 70, 72, 74, 69, 71, 73, 67, 66

Test the claim at 5% significance level.


Step 1: State the Hypotheses

Two-tailed test (checking difference):

H0:μ=70H1:μ70H_0: \mu = 70 \\[0.5em] H_1: \mu \ne 70

Step 2: Identify Test Type

  • n=10n = 10 (<30< 30) \checkmark
  • σ\sigma unknown \checkmark

👉 Use One-Sample t-Test


Step 3: Calculate Sample Mean (xˉ\bar{x})

x=695xˉ=69510=69.5\sum x = 695 \\[0.5em] \bar{x} = \frac{695}{10} = 69.5

Step 4: Calculate Sample Standard Deviation (ss)

xx - x̄(x - x̄)²
65-4.520.25
68-1.52.25
700.50.25
722.56.25
744.520.25
69-0.50.25
711.52.25
733.512.25
67-2.56.25
66-3.512.25
(xxˉ)2=82.5s2=82.5101=9.17s=9.173.03\sum (x - \bar{x})^2 = 82.5 \\[0.5em] s^2 = \frac{82.5}{10 - 1} = 9.17 \\[0.5em] s = \sqrt{9.17} \approx 3.03

Step 5: Calculate t-Statistic

t=69.5703.03/10t=0.50.958t0.52t = \frac{69.5 - 70}{3.03 / \sqrt{10}} \\[0.5em] t = \frac{-0.5}{0.958} \\[0.5em] t \approx -0.52

Step 6: Find Critical t-Value

  • α=0.05\alpha = 0.05
  • df=n1=9df = n - 1 = 9

From t-table:

t0.025,9=±2.262t_{0.025,9} = \pm 2.262

Step 7: Decision

  • Calculated t=0.52t = -0.52
  • Critical t=±2.262t = \pm 2.262

Since:

t=0.52<2.262|t| = 0.52 < 2.262

👉 Fail to Reject H0H_0


Step 8: Conclusion

There is no sufficient evidence to reject the institute's claim. The average score can be considered 70.

🗣 Hinglish Tip: tt limit ke andar hai → claim acceptable


Liked This Tutorial

Scan QR Code To Leave A Review Or

Click Here To Leave A Review
Scan QR