Pratidin
2026 · Statistics Optional Paper I · 15 marksMainsQuestion 3b

The lifetimes, in hours, of two brands of batteries are given below :
Brand A : 40 30 40 45 55 30
Brand B : 50 50 45 55 60 40
Examine whether the two brands are different with respect to average life using (i) Kolmogorov-Smirnov test and (ii) median test.
[D_{6, 6, 0·05} = 4/6]

15 marks · directive: Examine

Answer

The core of a good answer

Kolmogorov-Smirnov: the largest gap between the two empirical CDFs is D = 3/6 = 0.5 (at 40 and 45 hours), less than the critical 4/6, so H₀ is not rejected. Median test: the pooled median is 45 hours, with 1 of 6 Brand A and 4 of 6 Brand B values above it; χ² = 3.09 < 3.84, so again no significant difference at 5%.

An outline written by upsc.help, not an official UPSC answer; every fact checked by a separate review. How we work

What the question asks

Two distribution-free two-sample tests are asked for. For the K-S test, build both empirical distribution functions at every observed value and compare the maximum absolute gap with the tabled value given. For the median test, find the combined median, form the 2 × 2 table of counts above and not above it, and test it (χ² with one degree of freedom). Marks 8 + 7.

Answer outline

Introduction

H₀: the two brands have the same lifetime distribution (same average life); H₁: they differ. n₁ = n₂ = 6, α = 0.05.

Step 1: Empirical CDFs (K-S)

Step 2: K-S decision

Step 3: Combined median

Step 4: 2 × 2 table

Step 5: Median test decision

Conclusion

Both tests find no significant difference between the lifetimes of the two brands at the 5% level, although Brand B's values lie mostly to the right. With six batteries per brand both tests have low power. All figures were computed in Python.

Examples and data to cite

Facts

Facts to remember

Sources used for the explanation

Write a timed answer in the app