All 12 questions UPSC has asked on chi-square and ANOVA in the Management Optional (Paper II, Quantitative Techniques in Decision-Making) from 2009 to 2026, solved step by step – latest first.
Try them yourself first: the same questions, without solutions, are on our Quantitative Techniques in Decision-Making topic-wise PYQs page.
How we check these solutions
These are our own solutions, prepared with AI help. UPSC does not publish official answers. Every solution is checked a second way before it goes up, and says how:
- ✓ Checked by computer every figure (payoffs, expected values, probabilities, test statistics, LP optima, schedules, costs and ratios) was worked out again independently in code (Python: NumPy, SciPy, PuLP) and agrees with ours.
- ✓ Answer checked step by step for descriptive and case-study questions, every point was checked against standard management textbooks and, where they apply, the relevant Act, rule or policy in its current form.
Spotted a mistake or a neater method? Tell us in the comments below or through Report an error.
Jump to a question (year · question number):
2026 · 1a 2024 · 1b 2023 · 1d 2023 · 2a 2022 · 2b 2021 · 3b(ii) 2020 · 4b 2019 · 2b 2017 · 1a 2016 · 2c(i) 2013 · 2b 2009 · 1d
Explain parametric test and non-parametric test. What are the applications of chi-square () test? Give one example.
Solution
Parametric tests assume a form for the population distribution (usually normal) and test hypotheses about its parameters (mean, variance).
- Assumptions: normality, interval or ratio data, often equal variances, independent observations.
- Examples: z-test, t-test, F-test, ANOVA, Pearson’s correlation.
- More powerful when the assumptions hold.
Non-parametric (distribution-free) tests make few or no assumptions about the shape of the population.
- They work with nominal or ordinal data, ranks or counts, and small samples.
- Examples: chi-square, sign test, Wilcoxon signed-rank, Mann–Whitney U, Kruskal–Wallis, Spearman’s rank correlation.
- Robust, simple, but less powerful when parametric conditions hold.
Applications of the chi-square (χ²) test
- Test of independence (association): are two attributes related? For example, gender and brand preference.
- Goodness of fit: do observed counts follow an expected pattern (uniform, binomial, Poisson, normal)?
- Test of homogeneity: do several populations have the same proportions (defect rates in three plants)?
- Test of a population variance: is a machine’s variance within the specified limit?
Example. A retailer asks 200 customers (100 men, 100 women) whether they prefer online or store shopping: 60 men and 40 women prefer online. Expected counts are 50 in each cell, so χ² = 4 × (10²/50) = 8.0 with 1 d.f. > 3.84. Preference depends on gender at the 5% level.
✓ Answer checked step by step Checked against standard statistics texts (Levin and Rubin; Siegel, Nonparametric Statistics).
State the assumptions made for the study of ANOVA.
Solution
ANOVA (analysis of variance), developed by R. A. Fisher, tests whether three or more group means are equal by comparing the variation between groups with the variation within groups (F = MSB/MSW).
Assumptions
- Normality: the observations in each group come from a normally distributed population.
- Homogeneity of variance: all populations have the same variance (homoscedasticity).
- Independence: observations are independent of each other, within and across groups; samples are drawn at random.
- Additivity: each observation = overall mean + treatment effect (+ block effect in two-way ANOVA) + random error.
- Errors are independent and normally distributed with mean zero and constant variance.
- In a two-way ANOVA with one observation per cell, there is no interaction between the two factors.
- The dependent variable is measured on an interval or ratio scale.
If the assumptions fail: transform the data (log, square root), use Welch’s ANOVA for unequal variances, or use a non-parametric test such as Kruskal–Wallis.
✓ Answer checked step by step Checked against standard statistics texts (Levin and Rubin; Montgomery, Design and Analysis of Experiments).
State the characteristics of Chi-Square Test.
Solution
Chi-square test. χ² = Σ(O − E)²/E, where O and E are the observed and expected frequencies. It was introduced by Karl Pearson (1900).
Characteristics
- Non-parametric: it makes no assumption about the shape of the population distribution.
- Works on frequencies (counts), not on means or raw measurements; data can be nominal.
- Always non-negative, ranging from 0 upwards; χ² = 0 means perfect agreement between observed and expected.
- Depends on degrees of freedom: (r − 1)(c − 1) for a contingency table; (k − 1 − number of estimated parameters) for goodness of fit.
- Shape: positively skewed; as the degrees of freedom rise it becomes more symmetric and approaches the normal. Mean = d.f., variance = 2 × d.f.
- Additive: independent χ² values (and their d.f.) can be added.
- Conditions: random sample, independent observations, adequate sample size, expected frequency of at least 5 in each cell (else merge classes or apply Yates’ correction for 2 × 2 tables).
- Upper-tail test: large χ² values indicate a significant difference.
- Uses: tests of independence, goodness of fit, homogeneity, and of a population variance.
- Limitation: it shows whether an association exists, not its strength or direction (for that, use measures such as Cramér’s V).
✓ Answer checked step by step Checked against standard statistics texts (Levin and Rubin; Gupta).
The following table gives the production in three shifts and the corresponding number of defective goods that turned out in three weeks. Test at 5% level of significance whether weeks and shifts are independent. Table:
| Shift | 1st week | 2nd week | 3rd week | Total |
| I | 20 | 20 | 20 | 60 |
| II | 5 | 10 | 15 | 30 |
| III | 15 | 20 | 25 | 60 |
| Total | 40 | 50 | 60 | 150 |
[Figure: Table of critical values of Chi-Square () printed with the question – curve of with shaded upper tail; columns = 0.100, 0.050, 0.025, 0.010, 0.005, 0.001; rows df = 1–30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100]
Solution
- H₀: weeks and shifts are independent (the defect pattern across weeks is the same in every shift).
- H₁: they are not independent. α = 0.05.
Expected frequencies E = (row total × column total)/150:
| Shift | Week 1 | Week 2 | Week 3 |
|---|---|---|---|
| I | 16 | 20 | 24 |
| II | 8 | 10 | 12 |
| III | 16 | 20 | 24 |
χ² = Σ(O − E)²/E:
- Shift I: 16/16 + 0 + 16/24 = 1.000 + 0 + 0.667
- Shift II: 9/8 + 0 + 9/12 = 1.125 + 0 + 0.750
- Shift III: 1/16 + 0 + 1/24 = 0.063 + 0 + 0.042
χ² = 3.65; d.f. = (3 − 1)(3 − 1) = 4; critical value χ²₀.₀₅,₄ = 9.488.
3.65 < 9.488, so we do not reject H₀. Weeks and shifts are independent: the pattern of defects over the weeks does not depend on the shift.
✓ Checked by computer The test of independence was recomputed in Python (SciPy): expected counts 16, 20, 24 / 8, 10, 12 / 16, 20, 24; χ² = 3.65 with 4 degrees of freedom against 9.488.
A city administration conducted a study of the waiting time in the emergency wings of three hospitals. These hospitals are located in three zones of the city far away from each other. The administration is interested in reducing the waiting time at the emergency wings. To study this, a random sample of 10 emergency wing cases at each hospital was selected on a particular day and the waiting time was measured. The results are recorded in the following table. At 0.05 level of significance, is there evidence of a difference in the average waiting times in the three hospitals?
| Hospital 1 | Hospital 2 | Hospital 3 |
| 12 | 7 | 5 |
| 8 | 3 | 4 |
| 7 | 7 | 4 |
| 6 | 5 | 5 |
| 7 | 5 | 6 |
| 4 | 6 | 4 |
| 8 | 8 | 7 |
| 5 | 6 | 8 |
| 6 | 4 | 6 |
| 7 | 7 | 4 |
(Relevant table is attached at the end of this Paper)
Solution
- H₀: μ₁ = μ₂ = μ₃ (same average waiting time); H₁: not all equal. α = 0.05.
Totals. Hospital 1: 70 (mean 7.0); Hospital 2: 58 (mean 5.8); Hospital 3: 53 (mean 5.3). Grand total G = 181, N = 30, Σx² = 1,189.
- Correction factor CF = 181²/30 = 1,092.03.
- Total SS = 1,189 − 1,092.03 = 96.97.
- Between-hospital SS = (70² + 58² + 53²)/10 − 1,092.03 = 1,107.30 − 1,092.03 = 15.27.
- Within (error) SS = 96.97 − 15.27 = 81.70.
| Source | SS | d.f. | MS | F |
|---|---|---|---|---|
| Between hospitals | 15.27 | 2 | 7.63 | 2.52 |
| Within hospitals | 81.70 | 27 | 3.03 | |
| Total | 96.97 | 29 |
Critical F₀.₀₅(2, 27) = 3.35. Since 2.52 < 3.35, we do not reject H₀.
Conclusion. There is no significant evidence of a difference in average emergency waiting time among the three hospitals. Hospital 1 has the highest mean (7.0), but the difference could be due to chance; the administration should collect data over more days before acting hospital by hospital.
✓ Checked by computer The one-way ANOVA was recomputed in Python (SciPy): SSB = 15.27, SSW = 81.70, F = 2.52 against F₀.₀₅(2, 27) = 3.35.
A certain drug is claimed to be effective in curing cold. In an experiment on 500 persons suffering from cold, half of them were given the drug and the other half were given the sugar pills. Patients’ reactions to the treatment are recorded in the following table:
| Treatment | Helped | Harmed | No Effect |
| Drug | 150 | 30 | 70 |
| Sugar pills | 130 | 40 | 80 |
| Total | 280 | 70 | 150 |
On the basis of the above data, can it be concluded that there is a significant difference in the effect of drug and sugar pills?
[Figure: Table of critical values of Chi-Square () printed after the question – curve of with shaded upper tail; columns = 0.100, 0.050, 0.025, 0.010, 0.005, 0.001; rows df = 1–30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100]
Solution
- H₀: the drug and sugar pills have the same effect (treatment and reaction are independent).
- H₁: their effects differ. α = 0.05.
Expected counts. Each treatment had 250 patients, so each row’s expected counts are half the column totals: Helped 140, Harmed 35, No effect 75.
| Helped | Harmed | No effect | |
|---|---|---|---|
| (O − E)²/E, drug | 100/140 = 0.714 | 25/35 = 0.714 | 25/75 = 0.333 |
| (O − E)²/E, sugar pills | 0.714 | 0.714 | 0.333 |
χ² = 2 × (0.714 + 0.714 + 0.333) = 3.52; d.f. = (2 − 1)(3 − 1) = 2; critical value = 5.991.
3.52 < 5.991, so we do not reject H₀. There is no significant difference between the drug and the sugar pills. The claim that the drug cures colds is not supported: 60% were helped by the drug, but 52% were helped by a placebo too.
✓ Checked by computer The chi-square test was recomputed in Python (SciPy): expected 140, 35, 75 in each row; χ² = 3.52 with 2 degrees of freedom against 5.991.
The pathology laboratory of a hospital has five pathologists. Samples arriving at the laboratory for a particular test are randomly assigned to one of them. An evaluation of the performance during the previous month gave the following counts shown in the table below:
| Pathologist | Number of tests done | Number of reported errors |
|---|---|---|
| A | 850 | 12 |
| B | 1000 | 15 |
| C | 750 | 11 |
| D | 900 | 17 |
| E | 1050 | 10 |
The director of the hospital wanted to know whether the proportion of errors in the pathological tests assigned to the five pathologists differ. State appropriate null and alternate hypotheses for the question above. Carry out the test of hypothesis at 5% level of significance and describe the result.
Table: (Chi-Squared) Distribution: Critical Values of
| Degrees of freedom | Significance level 5% | Significance level 1% | Significance level 0.1% |
| 1 | 3.841 | 6.635 | 10.828 |
| 2 | 5.991 | 9.210 | 13.816 |
| 3 | 7.815 | 11.345 | 16.266 |
| 4 | 9.488 | 13.277 | 18.467 |
| 5 | 11.070 | 15.086 | 20.515 |
| 6 | 12.592 | 16.812 | 22.458 |
| 7 | 14.067 | 18.475 | 24.322 |
| 8 | 15.507 | 20.090 | 26.124 |
| 9 | 16.919 | 21.666 | 27.877 |
| 10 | 18.307 | 23.209 | 29.588 |
Solution
Hypotheses.
- H₀: p_A = p_B = p_C = p_D = p_E (all five pathologists have the same error proportion).
- H₁: at least one proportion differs. α = 0.05.
Pooled error rate = 65/4,550 = 0.01429. Expected errors = tests × 0.01429; expected correct reports = tests − expected errors.
| Pathologist | Errors O | Expected E | (O − E)²/E |
|---|---|---|---|
| A (850 tests) | 12 | 12.14 | 0.002 |
| B (1,000) | 15 | 14.29 | 0.036 |
| C (750) | 11 | 10.71 | 0.008 |
| D (900) | 17 | 12.86 | 1.335 |
| E (1,050) | 10 | 15.00 | 1.667 |
The error-free column adds a further 0.044 (the same deviations divided by much larger expected values). Total χ² = 3.09; d.f. = (2 − 1)(5 − 1) = 4; critical value 9.488.
3.09 < 9.488, so we do not reject H₀. The error proportions of the five pathologists do not differ significantly; D’s higher count (17) and E’s lower count (10) are within chance variation. The director need not single out any pathologist on this evidence.
✓ Checked by computer The 2 × 5 test of homogeneity was recomputed in Python (SciPy): pooled error rate 65/4,550 = 1.43%, χ² = 3.09 with 4 degrees of freedom against 9.488.
The following represent the number of units produced by four different workers using five different types of machines:
| Worker | A | B | C | D | E |
| I | 40 | 50 | 30 | 70 | 60 |
| II | 50 | 70 | 70 | 40 | 50 |
| III | 70 | 60 | 70 | 80 | 80 |
| IV | 30 | 50 | 40 | 80 | 20 |
On the basis of this information, can it be concluded that (i) workers do not differ with regard to mean productivity (ii) mean production is same for different machines? [Test at 5% level of significance] [Tables attached]
Solution
Two-way ANOVA (one observation per cell): rows = workers, columns = machines.
Totals. Workers: I 250, II 280, III 360, IV 220. Machines: A 190, B 230, C 210, D 270, E 210. Grand total G = 1,110, N = 20.
- CF = 1,110²/20 = 61,605.
- Total SS = Σx² − CF = 67,900 − 61,605 = 6,295.
- Workers SS = (250² + 280² + 360² + 220²)/5 − 61,605 = 2,175.
- Machines SS = (190² + 230² + 210² + 270² + 210²)/4 − 61,605 = 920.
- Error SS = 6,295 − 2,175 − 920 = 3,200.
| Source | SS | d.f. | MS | F | F₀.₀₅ |
|---|---|---|---|---|---|
| Workers | 2,175 | 3 | 725.0 | 2.72 | 3.49 |
| Machines | 920 | 4 | 230.0 | 0.86 | 3.26 |
| Error | 3,200 | 12 | 266.7 | ||
| Total | 6,295 | 19 |
(i) Workers: F = 2.72 < 3.49, so we do not reject H₀. Workers do not differ significantly in mean productivity.
(ii) Machines: F = 0.86 < 3.26, so we do not reject H₀. Mean production is the same for the different machines.
✓ Checked by computer The two-way ANOVA was recomputed in Python: SST = 6,295, SS workers = 2,175, SS machines = 920, SSE = 3,200; F = 2.72 and 0.86 against 3.49 and 3.26.
A movie producer is bringing out a new movie. In order to map out his advertising campaign, he wants to determine whether the movie will appeal most to a particular age group or whether it will appeal equally to all age groups. The producer takes a random sample from persons attending the preview of the movie, and obtains the following results. Use test to derive the conclusion (for 6 degrees of freedom and 5% significance level, critical value is 12.592):
| Age groups | Liked the movie | Disliked the movie | Indifferent |
|---|---|---|---|
| Under 20 | 320 | 50 | 30 |
| 20–39 | 80 | 15 | 5 |
| 40–59 | 110 | 70 | 20 |
| 60 and above | 200 | 60 | 40 |
Solution
- H₀: liking the movie is independent of age (it appeals equally to all age groups).
- H₁: the reaction depends on age. α = 0.05.
Totals: Under 20: 400; 20–39: 100; 40–59: 200; 60+: 300; N = 1,000. Liked 710, disliked 195, indifferent 95.
Expected frequencies (row total × column total/1,000):
| Under 20 | 20–39 | 40–59 | 60+ | |
|---|---|---|---|---|
| Liked | 284 | 71 | 142 | 213 |
| Disliked | 78 | 19.5 | 39 | 58.5 |
| Indifferent | 38 | 9.5 | 19 | 28.5 |
χ² contributions (O − E)²/E:
- Liked: 4.56 + 1.14 + 7.21 + 0.79
- Disliked: 10.05 + 1.04 + 24.64 + 0.04
- Indifferent: 1.68 + 2.13 + 0.05 + 4.64
χ² = 57.99; d.f. = (3 − 1)(4 − 1) = 6; critical value 12.592.
57.99 > 12.592, so we reject H₀. The appeal of the movie depends on age. It is liked most by viewers under 20 (80%) and those aged 20–39 (80%), and least by those aged 40–59 (55%, with 35% disliking it). The producer should aim his advertising at the young audience.
✓ Checked by computer The test of independence was recomputed in Python (SciPy): χ² = 57.99 with 6 degrees of freedom against 12.592.
Out of 200 boys, 75 are intelligent of which 40 have skilled fathers, while 85 of the unintelligent boys have unskilled fathers. Do these figures support the hypothesis that skilled fathers have intelligent boys? (Use Chi-square values 3.841, 5.991, 7.815 and 9.488 for degrees of freedom 1, 2, 3 and 4 respectively.)
Solution
Contingency table.
| Skilled father | Unskilled father | Total | |
|---|---|---|---|
| Intelligent | 40 | 35 | 75 |
| Not intelligent | 40 | 85 | 125 |
| Total | 80 | 120 | 200 |
- H₀: a boy’s intelligence is independent of his father’s skill. H₁: they are associated. α = 0.05.
- Expected: 30, 45 / 50, 75.
- χ² = 10²/30 + 10²/45 + 10²/50 + 10²/75 = 3.333 + 2.222 + 2.000 + 1.333 = 8.89 (8.02 with Yates’ correction).
- d.f. = 1; critical value 3.841.
8.89 > 3.841, so we reject H₀. Yes, the figures support the hypothesis: 50% of boys with skilled fathers are intelligent, against 29% of those with unskilled fathers. (The test shows association, not that father’s skill causes intelligence.)
✓ Checked by computer The 2 × 2 test was recomputed in Python: χ² = 8.89 (8.02 with Yates’ correction) against 3.841 for 1 degree of freedom.
The determination of yields of three different varieties (say X, Y and Z) was subject of a recent experiment. Different blocks chosen at random from a larger group were used for this purpose. The data recorded were as follows:
| Blocks / Varieties | X | Y | Z |
| 1 | 12 | 16 | 30 |
| 2 | 5 | 10 | 18 |
| 3 | 7 | 28 | 35 |
| 4 | 10 | 26 | 51 |
(i) Analyze the above two-way classified data. (ii) Test for the effects of blocks and varieties at the 5% level of significance. (iii) Determine which varieties differ, if any. Is it possible to do the same with the blocks?
Solution
(i) Two-way analysis. Totals: blocks 58, 33, 70, 87; varieties X 34, Y 80, Z 134; G = 248, N = 12.
- CF = 248²/12 = 5,125.33; Σx² = 7,184.
- Total SS = 7,184 − 5,125.33 = 2,058.67.
- Blocks SS = (58² + 33² + 70² + 87²)/3 − CF = 515.33.
- Varieties SS = (34² + 80² + 134²)/4 − CF = 1,252.67.
- Error SS = 2,058.67 − 515.33 − 1,252.67 = 290.67.
| Source | SS | d.f. | MS | F | F₀.₀₅ |
|---|---|---|---|---|---|
| Blocks | 515.33 | 3 | 171.78 | 3.55 | 4.76 |
| Varieties | 1,252.67 | 2 | 626.33 | 12.93 | 5.14 |
| Error | 290.67 | 6 | 48.44 | ||
| Total | 2,058.67 | 11 |
(ii) Tests at 5%.
- Blocks: 3.55 < 4.76, not significant; the blocks do not differ in yield.
- Varieties: 12.93 > 5.14, significant; the three varieties differ in yield.
(iii) Which varieties differ. Least significant difference: LSD = t₀.₀₂₅,₆ × √(2 × MSE/4) = 2.447 × √(2 × 48.44/4) = 2.447 × 4.921 = 12.04.
Means: X 8.5, Y 20.0, Z 33.5.
- Z − X = 25.0 > 12.04: differ.
- Z − Y = 13.5 > 12.04: differ.
- Y − X = 11.5 < 12.04: do not differ significantly.
Variety Z gives a significantly higher yield than both X and Y.
Blocks. The same method can be applied (LSD = 2.447 × √(2 × 48.44/3) = 13.91), but because the F-test for blocks is not significant, pairwise comparison of blocks is not justified; any apparent difference (block 4 against block 2) should not be read as real.
✓ Checked by computer The two-way ANOVA and the least significant differences were recomputed in Python (SciPy): SS blocks 515.3, SS varieties 1,252.7, SSE 290.7; F = 3.55 and 12.93 against 4.76 and 5.14; LSD for varieties 12.04.
The following table gives the number of aircraft accidents that occurs during the various days of the week. Find whether the accidents are uniformly distributed over the week.
| Days | No. of accidents |
|---|---|
| Sun | 14 |
| Mon | 16 |
| Tue | 8 |
| Wed | 12 |
| Thurs | 11 |
| Fri | 9 |
| Sat | 14 |
(Given: the values of chi-square significant at 5, 6, 7 d.f. are respectively 11.07, 12.59, 14.07 at 5% level of significance).
Solution
- H₀: accidents are uniformly distributed over the week. H₁: they are not. α = 0.05.
- Total = 84, so the expected number per day is 84/7 = 12.
| Day | Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|---|
| O | 14 | 16 | 8 | 12 | 11 | 9 | 14 |
| (O − E)² | 4 | 16 | 16 | 0 | 1 | 9 | 4 |
χ² = Σ(O − E)²/E = 50/12 = 4.17; d.f. = 7 − 1 = 6; critical value 12.59.
4.17 < 12.59, so we do not reject H₀. The accidents are uniformly distributed over the days of the week.
✓ Checked by computer The goodness-of-fit test was recomputed in Python (SciPy): expected 12 a day, χ² = 4.17 with 6 degrees of freedom against 12.59.
More on Quantitative Techniques in Decision-Making
- All Management PYQ solutions, topic by topic
- Quantitative Techniques in Decision-Making topic-wise PYQs (questions only, for practice)
- Management PYQ analysis: which units carry the marks year by year
- Year-wise question papers
- Management booklist
Questions: UPSC Civil Services (Main) Examination, Management Paper II, 2009–2026. Solutions: Optional Province. Found an error? Tell us.

