All 46 questions UPSC has asked on testing of hypotheses in the Statistics Optional (Paper I, Statistical Inference) from 1995 to 2025, solved step by step – latest first.
Try them yourself first: the same questions, without solutions, are on our Statistical Inference 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 the numbers were worked out again independently in code (Python with NumPy/SciPy) and matched.
- ✓ Proof checked step by step for “prove that” and “examine whether” questions, every step was checked against the definitions and the standard theorems.
- ✓ Derivation checked step by step for derivations and approximations, every step was checked, and the result was also tested numerically.
- ✓ Answer checked step by step for descriptive questions, every point was checked against the standard theory.
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):
2025 · 1e 2024 · 1e 2024 · 4a 2022 · 1e 2021 · 1e 2020 · 1e 2020 · 2a 2019 · 1d 2019 · 2c 2018 · 2c 2018 · 4b 2017 · 4c 2016 · 1e 2015 · 2c 2015 · 3c 2014 · 4a 2013 · 1d 2013 · 3b 2011 · 4c 2009 · 1e 2009 · 4c 2007 · 4a 2007 · 4b 2006 · 1d 2006 · 3c 2005 · 4b 2004 · 1e 2004 · 3b 2004 · 3c 2003 · 4a 2002 · 3b 2001 · 1a 2001 · 1c 2000 · 4a(i) 2000 · 4a(ii) 1998 · 6a 1998 · 6b 1998 · 6c 1997 · 7a 1997 · 7b 1997 · 7c 1996 · 6a 1996 · 6b 1995 · 6a 1995 · 6b 1995 · 6c
A random variable has the following distribution under and :
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 0·01 | 0·01 | 0·01 | 0·01 | 0·01 | 0·95 | |
| 0·05 | 0·04 | 0·03 | 0·02 | 0·01 | 0·85 |
Find the best test of size 0·03 and its probability of type-II error for testing versus . Is it unbiased test? Why?
Solution
Neyman–Pearson lemma. The best (most powerful) test rejects at the values of with the largest ratio , adding points until the size reaches .
| 1 | 2 | 3 | 4 | 5 | 6 | |
|---|---|---|---|---|---|---|
| 0.01 | 0.01 | 0.01 | 0.01 | 0.01 | 0.95 | |
| 0.05 | 0.04 | 0.03 | 0.02 | 0.01 | 0.85 | |
| 5 | 4 | 3 | 2 | 1 | 0.89 |
Best critical region of size 0.03. Take the three largest ratios, :
Power and type II error.
Is it unbiased? Yes. A test is unbiased if its power is at least its size. Here . (Every most powerful test is unbiased: the test that ignores the data and rejects with probability has power , so the MP test cannot do worse.)
✓ Checked by computer We computed the likelihood ratios, the size (0.03) and the power (0.12) in Python.
For testing vs. , a random sample of size 50 is drawn from a normal population with unknown mean and variance 200. If , then obtain the critical region.
Solution
Test statistic. is known and , so
Critical region. The alternative is two-sided, so at we reject when :
✓ Checked by computer We checked: the standard error is √(200/50) = 2, so the limits are 100 ± 3.92.
Find the most powerful test of size for testing vs. , given a random sample of size 25 from population.
Solution
Neyman–Pearson ratio. , . For , which increases with . So the MP test rejects when .
Critical value. Under , , so its standard deviation is :
MP test. Reject if .
Power. Under :
✓ Checked by computer We computed the critical value 1.316 and the power 0.346 in Python.
An urn contains 5 marbles of which are white and the others black. In order to test null hypothesis versus alternative hypothesis , two marbles are drawn at random. is rejected if both the marbles are white, otherwise is accepted. Show that probability of type I error in case of without replacement and with replacement schemes, both are less than 0.40, but power of the test under with replacement is higher than that of under without replacement scheme.
Solution
The test rejects when both marbles are white.
Without replacement.
- Type I error (): .
- Power (): .
With replacement.
- Type I error (): .
- Power (): .
Conclusion. Both type I errors (0.30 and 0.36) are below 0.40. The power with replacement (0.64) is higher than the power without replacement (0.60).
(With replacement also has a larger type I error, so the comparison is not at equal size.)
✓ Checked by computer We computed the four probabilities exactly: 3/10, 6/10, 9/25 and 16/25.
Let be the Cauchy pdf (i) Show that this family does not have Monotone Likelihood Ratio (MLR). (ii) If is one observation from , show that is sufficient for and hence the distribution of does have an MLR.
Solution
(i) No MLR in . For , This depends on only through , so . A non-constant even function cannot be monotone. For example, with , : The ratio falls and then rises as increases. So the family has no MLR in .
(ii) is sufficient. depends on only through . By the factorisation theorem (with ), is sufficient for .
has MLR. has density , . For , which is strictly increasing in . So the distribution of has MLR in .
✓ Proof checked step by step Every step was checked: the likelihood ratio is not monotone in x, and it is monotone in |x|. We also evaluated the ratio at several points in Python.
Let and be two iid random variables with normal distribution. Further, consider Bernoulli random variable with and which is independent of and . Define as For testing the hypothesis versus , consider the test Find such that the test size becomes 0.05. Also compute power of the test. [Given that: , , ].
Solution
Distribution of the test statistic. Let .
- If : .
- If : .
The conditional distribution is the same in both cases, so unconditionally
Critical value for size 0.05.
Power at .
Note on the question. The given value “” is a misprint for .
(Since repeats or , the mean of the three has variance , larger than the of . The repeat adds no information, and the test is less powerful than the one based on .)
✓ Checked by computer We checked by simulation (10⁶ draws) that the mean has variance 5/9 whatever V is, that C = 1.2224 gives size 0.051, and that the power is 0.383.
The lifetime in hours of each bulb manufactured by a particular company follows an independent exponential distribution with mean . To test the hypothesis versus , an experimenter sets up an experiment with 50 bulbs with 5 bulbs in each of 10 different locations to examine their lifetimes. To get quick preliminary results, the experimenter decides to stop the experiment as soon as one bulb fails at each location. Let denote the lifetime of the first bulb to fail at location , . Obtain the most powerful test of size 0.05 to test versus based on the available lifetimes. If the available data is 510, 9752, 5650, 12385, 230, 4225, 860, 300, 3000 and 1500, give your conclusion. [Given that: ].
Solution
Distribution of . is the minimum of 5 independent exponential lifetimes with mean : so is exponential with mean . The ten are independent.
Most powerful test. With , which decreases in . So the MP test rejects when .
Critical value. . Under (): MP test: reject if , that is, if .
Data. .
Conclusion. We do not reject . There is no evidence that the mean life is 1000 hours rather than 2000 hours.
(Note: under each has mean 400 hours, so the observed mean of 3841 is far above what either hypothesis predicts. The data look like whole-bulb lifetimes rather than first failures among five. The conclusion, not rejecting in favour of a shorter life, is unaffected.)
✓ Checked by computer We checked: the observed sum is 38,412, the critical value is 2170.2, and the χ² point is 10.851. A simulation confirmed that each Yᵢ has mean θ/5 (400 when θ = 2000).
The manufacturer of a spot remover claims that his product removes 90% of all spots. If, in a random sample, 17 of 20 spots were removed with the manufacturer’s product, test the null hypothesis against the alternative hypothesis at the 0.05 significance level and comment.
Solution
Set-up. , the number of spots removed out of 20, is . We test against . Small values of support .
-value. Under ,
Critical region at 5%. and . So the largest non-randomised region with size at most 0.05 is .
Decision. is not in , and the -value . We do not reject .
Comment. Removing 17 of 20 spots (85%) is quite consistent with the claimed 90%. The sample is too small to detect a shortfall of this size.
✓ Checked by computer We computed the binomial probabilities with SciPy: P(X ≤ 17) = 0.3231 and P(X ≤ 15) = 0.0432.
Let have the pdf To test against , let and be a random sample of size 2. A test is defined by taking critical region as Determine size and power of the test.
Solution
Distribution of the sum. is gamma with shape 2 and scale , so
Size (, ):
Power ():
✓ Checked by computer We computed the gamma tail probabilities in Python: size 0.0497 and power 0.3139.
Let be a random sample from . The variance is unknown. Derive the most powerful test for against , where is a fixed positive number. Is it a UMP test?
Solution
MP test for a simple alternative. Take any . With , Since , this increases with . By the Neyman–Pearson lemma, the MP test rejects when .
Critical value. Under , . So where is the upper point of .
Is it UMP? Yes. The critical region does not depend on the particular , so the same test is most powerful against every . It is therefore UMP for . Its power is which increases with .
✓ Derivation checked step by step Every step was checked: the likelihood ratio is increasing in Σx², and the critical value does not depend on the alternative θ₁.
Let , , where.
| 1 | 2 | 3 | 4 | 5 | |
Find the best critical region of size . What is its power?
Solution
Likelihood ratios :
| 1 | 2 | 3 | 4 | 5 | |
|---|---|---|---|---|---|
| 1/5 | 1/5 | 1/5 | 1/5 | 1/5 | |
| 1/6 | 1/4 | 1/6 | 1/4 | 1/6 | |
| 5/6 | 5/4 | 5/6 | 5/4 | 5/6 |
Best critical region of size 2/5. By the Neyman–Pearson lemma, include the points with the largest ratio first. and have , and together they have probability under :
Power.
✓ Checked by computer We computed the ratios and the power (1/2) exactly.
Let be a random sample from a normal population with mean and variance 25. For a sample size of , find the uniformly most powerful (UMP) test for testing the simple null hypothesis against the composite alternative hypotheses (i) and (ii) .
Solution
Set-up. and , so , with standard deviation . Take .
(i) . For any , the Neyman–Pearson ratio is increasing in , so the MP test rejects for large : The region does not depend on , so this test is UMP for .
(ii) . For any , the ratio is decreasing in : This is UMP for .
(In general, the UMP test of level is or . For the two-sided alternative no UMP test exists, because the best regions in (i) and (ii) differ.)
✓ Checked by computer We computed the critical values 5 ± 1.645 × 1.25 = 7.056 and 2.944.
Consider a random variable with p.m.f. , ; . The following table gives the values of . Obtain the best critical region to test the null hypothesis against at level of significance .
| 0 | 1 | 2 | 3 | 4 | 5 | |
Solution
Likelihood ratio. The table is . So which increases with :
| 0 | 1 | 2 | 3 | 4 | 5 | |
|---|---|---|---|---|---|---|
| 1/32 | 3/32 | 9/32 | 27/32 | 81/32 | 243/32 |
Best critical region. Add points with the largest ratios until the size is :
Power.
✓ Checked by computer We checked that the ratio is 3ˣ/32 for every x, and computed the power 648/1024 = 0.633.
The distribution under the null hypothesis of is uniform over and under the alternative hypothesis, the distribution is given by , for , for and . Obtain most powerful test of size 0.15 and find its power, based on a sample of size one.
Solution
Likelihood ratios. Under , each has probability .
| 1–4 | 5–9 | 10 | |
|---|---|---|---|
| 0.1 each | 0.1 each | 0.1 | |
| 0 | 1/8 each | 3/8 | |
| 0 | 1.25 | 3.75 |
MP test of size 0.15. Start with the largest ratio: gives size . We need more from the five points , which all have the same ratio. So we randomise on them: Size: .
Power.
(Since all have the same ratio, other MP tests exist with the same power, for example rejecting at , and at with probability .)
✓ Checked by computer We computed the size (0.15) and the power (0.4375) exactly.
Find a Most Powerful test for testing versus on the basis of a random sample of size . Here is the pdf of the random variable .
Solution
Likelihood ratio.
MP test. By the Neyman–Pearson lemma, reject when , that is, when The test rejects when observations are either near 0 or far out in the tails, where the Laplace density is larger than the normal.
Choosing . Under , each has For large , by the central limit theorem, For small or moderate , is best found from the exact distribution by simulation. (With the normal approximation gives an actual size of 0.064 instead of 0.05.)
✓ Checked by computer We computed E(W) = −0.5958 and V(W) = 0.2620 under H₀ by numerical integration. A simulation for n = 30 gave power 0.84, and actual size 0.064 for the normal approximation.
Let be a random sample drawn from a uniform distribution. Obtain a UMP test of size for testing against .
Solution
The test. Let , with for . Define
Size. , and . So .
UMP against . On the densities satisfy . For any test of size : Our attains this bound: it rejects whenever , and has size exactly on . So
UMP against . Now wherever . For any of size : For , , which attains the bound.
Conclusion. is most powerful against every , so it is the UMP test of size for against :
This is unusual: for two-sided alternatives a UMP test rarely exists. Here it does, because the support depends on .
✓ Proof checked step by step Every step was checked: the size, and the power bound against every alternative above and below θ₀. We also checked the power formulas by simulation (n = 5, α = 0.05).
Let be a negative Binomial random variable with parameters and , being known and unknown. Suppose the problem is to test against . Find the UMP test for the problem and obtain its power function.
Solution
Parametrisation. Let be the number of failures before the -th success, with success probability : A larger means successes come sooner, so tends to be smaller.
Monotone likelihood ratio. For , which decreases in , because . So, by the Karlin–Rubin theorem, the UMP test of against rejects for small : with and chosen so that
Power function. It increases with , from at towards 1 as .
(If is instead defined as the number of trials up to the -th success, replace by . The test is unchanged in form: reject when is small.)
✓ Derivation checked step by step Every step was checked: the likelihood ratio is decreasing in x, so the UMP test rejects for small x, and the power is computed from that region.
For one parameter exponential family obtain UMPU test for testing against . Further prove that .
Solution
Note on the question. “” should read .
Set-up. The one-parameter exponential family in natural form:
UMPU test. For against , the UMPU test of size is where are found from (The generalised Neyman–Pearson lemma shows that, among tests satisfying (a) and (b), this two-sided form maximises the power at every . Every unbiased test satisfies (a) and (b), as we show next. So is UMPU.)
Proof of (b). Let .
Step 1. Differentiate under the integral sign, which is allowed for exponential families:
Step 2. Since for all , differentiating gives
Step 3. An unbiased test of size has and for all . So has a minimum at the interior point , and because is differentiable, :
Hence
✓ Proof checked step by step Every step was checked: the derivative of the power function of an exponential family and the identity it yields at θ₀.
The manufacturers of a certain brand of electrical switches claim that at least 80% of the boxes, containing 12 such switches each, will have no defective. Design a randomised test of exact size 0·05 based on the number of boxes, among a random sample of 8 examined, containing at least one defective.
Solution
Set-up. Let be the proportion of boxes with at least one defective. The claim is . Let be the number of such boxes among the 8 examined, so . The binomial family has MLR in , so the UMP test rejects for large .
Probabilities under .
| 3 | 4 | 5 | 6 | 7 | 8 | |
|---|---|---|---|---|---|---|
| 0.14680 | 0.04588 | 0.00918 | 0.00115 | 0.00008 | 0.000003 |
and . No non-randomised region has size exactly 0.05, so we randomise at .
Randomised test of exact size 0.05.
In words. Reject the claim if 5 or more boxes contain a defective. If exactly 4 do, reject with probability 0.863 (for example, by drawing a random number). Otherwise accept.
✓ Checked by computer We computed the binomial probabilities with SciPy: P(X ≥ 5) = 0.0104, P(X = 4) = 0.0459, and γ = 0.863.
What is a size- randomised test? For testing the null hypothesis that at most 50% of the 500 ml. packs of hair oil of a certain brand are underweight, against the alternative that the percentage is more, it is desired to examine 8 such packs chosen at random. Use the following information to design a randomised test of size 0·05:
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | |
| ·0039 | ·0312 | ·1094 | ·2188 | ·2934 | ·2188 | ·1094 | ·0312 | ·0039 |
where is the probability mass function of a binomial variate with parameters , .
Solution
Randomised test. A test function gives the probability of rejecting when is observed. It is a size- randomised test if (or ). For discrete data, randomisation lets us reach an exact size such as 0.05, which no ordinary critical region may achieve.
The problem. Let be the number of underweight packs among 8, so . Large supports , and the size is reached at the boundary .
Tail probabilities at . , so we randomise at :
Test. Its size is .
✓ Checked by computer We computed γ = (0.05 − 0.0351)/0.1094 = 0.136 in Python. With exact binomial values it is 0.1357.
Define (i) most powerful test, and (ii) unbiased test of a simple hypothesis against a simple alternative. Show that a most powerful test is necessarily unbiased.
Solution
(i) Most powerful test. For testing a simple against a simple , a test of size is most powerful (MP) if, for every other test with ,
(ii) Unbiased test. A test of size is unbiased if its power is at least its size: That is, it rejects at least as often when is false as when it is true.
Claim: an MP test is unbiased.
Proof. Consider the trivial test , which rejects with probability whatever the data. Its size is , so it is a competitor of . Its power is . Since is MP, So the power of is at least its size, and is unbiased.
Strict inequality. If and , then . If the power were exactly , the trivial test would also be MP. By the uniqueness part of the Neyman–Pearson lemma it would then have the form reject, accept (almost everywhere). Since is never 0 or 1, this forces a.e., so and , which is a contradiction.
✓ Proof checked step by step Every step was checked: the comparison with the trivial test φ ≡ α, and the case of equality.
Define a monotone likelihood ratio family of distributions. Prove that the hypergeometric distribution is a member of the MLR family.
Solution
Definition. A family of densities , with real, has a monotone likelihood ratio (MLR) in a statistic if, for every , the ratio is a non-decreasing function of on the set where at least one of the densities is positive.
The hypergeometric family. A sample of is drawn without replacement from items, of which (the parameter) are defective. is the number of defectives in the sample:
Ratio for consecutive values of . Using and ,
- increases with (the denominator falls).
- increases with .
Both factors are positive and increasing, so the ratio increases with .
Any . Write A product of positive increasing functions is increasing. (Where , the ratio is , which happens only at the largest values of . This keeps the ratio monotone.)
So the hypergeometric family has MLR in .
A consequence: for testing against (for example, in lot acceptance), the UMP test rejects when the number of defectives in the sample is large.
✓ Proof checked step by step Every step was checked: the ratio of consecutive hypergeometric probabilities is increasing in x, and so is any product of such ratios. We also checked the ratios numerically.
Let be a random sample from the rectangular population. Find a UMP test of the hypothesis (given) against all alternatives.
Solution
(This is the same question as the 2014 question above, which asks for a UMP test of θ = θ₀ against θ ≠ θ₀. The worked solution is repeated here.)
The test. Let , with for . Define
Size. , and . So .
UMP against . On the densities satisfy . For any test of size : Our attains this bound: it rejects whenever , and has size exactly on . So
UMP against . Now wherever . For any of size : For , , which attains the bound.
Conclusion. is most powerful against every , so it is the UMP test of size for against :
This is unusual: for two-sided alternatives a UMP test rarely exists. Here it does, because the support depends on .
✓ Proof checked step by step Every step was checked: the size, and the power bound against every alternative above and below θ₀. We also checked the power formulas by simulation (n = 5, α = 0.05).
A drug manufacturer wants to test the efficacy of a new medication. Denoting by the percentage of all the patients given the medication who recover from the disease he sets up , . His test statistic is x, the observed number of successes in trials and he will accept the null hypothesis if . Find the probability of type I and Type II errors denoted respectively by and . What happens if the acceptance region is changed to ?
Solution
Note on the question. “” should read .
Set-up. . Accept if , so the critical region is .
Type I error.
Type II error.
Acceptance region changed to (reject if ):
What happens. Enlarging the critical region (from to ) raises and lowers . Both type I errors are tiny, while is large, so the rule is very cautious about rejecting . Moving the cut-off further up, to about , would balance the two errors better.
| Accept if | ||
|---|---|---|
| 0.0000117 | 0.586 | |
| 0.000079 | 0.425 |
✓ Checked by computer We computed the binomial probabilities with SciPy: α = 0.0000117 and β = 0.586 for x ≥ 15; α = 0.000079 and β = 0.425 for x ≥ 16.
Let be a random sample from distribution, where is unknown. Show that there is no uniformly most powerful test of the simple hypothesis , where is a fixed number against the alternative composite hypothesis
Solution
Suppose a UMP test of size exists for against . Then must be MP against every single alternative.
Against . The likelihood ratio increases with . By the Neyman–Pearson lemma, the MP test of size is and by the uniqueness part of the lemma, any MP test equals almost everywhere.
Against . The ratio now decreases with , and the unique MP test is
Contradiction. would have to equal both and almost everywhere. But the two critical regions are disjoint and each has positive probability. So no such exists.
Seen through power: has power less than at every , so it is beaten there by ; and is beaten by for . Hence there is no UMP test for the two-sided alternative.
(The usual two-sided test is UMP only within the smaller class of unbiased tests: it is UMPU.)
✓ Proof checked step by step Every step was checked: the MP regions for θ₁ > θ′ and θ₁ < θ′ differ, and by the uniqueness part of the Neyman–Pearson lemma no single test can be MP for both.
Let be a random sample from a bivariate normal population with parameters . Find a UMPU test for vs. .
Solution
Sufficient statistics and exponential form. The bivariate normal density of the sample is a five-parameter exponential family. The test depends on the data only through the sample correlation coefficient whose distribution depends only on (it is unchanged by shifting and rescaling and ).
Case . Here . Conditional on the other sufficient statistics, the UMPU test for a natural parameter rejects for extreme values of . By Basu’s theorem, is independent of those statistics when , so the conditional test becomes unconditional. Under , is symmetric about 0, so the test is This is the UMPU test of .
General . The test is based on , and rejects when is outside an interval: Here satisfy the size condition and the unbiasedness condition (the power function has zero slope at ): computed from the exact distribution of under . Because is skewed when , the two tails do not have equal probability. (Strictly, for , this test is optimal among unbiased tests that depend only on , that is, unbiased tests invariant under changes of location and scale.)
Large-sample form. Using Fisher’s transformation , which is approximately :
✓ Derivation checked step by step Every step was checked: the exponential-family form, the reduction to the sample correlation r, and the two-sided conditions. By simulation (n = 12, ρ = 0), the t-test based on r had size 0.051.
If a sufficient statistic T exists for the family , show that the Neyman-Pearson MP test is a function of T.
Solution
Factorisation. If is sufficient for , then with not depending on .
The Neyman–Pearson test. The MP test of size is
It depends on only through . On the set , divide by : So each of the three conditions is a condition on alone, and for the function The set has probability 0 under both and , so what does there does not affect its size or power. Defining there too gives an MP test that is a function of .
(Equivalently, the likelihood ratio is itself a function of .)
✓ Proof checked step by step Every step was checked: the factorisation theorem makes the likelihood ratio a function of T wherever it is defined.
Let , be a random sample from Find the MP test of size for testing against . Also obtain its power.
Solution
Likelihood ratio. which increases with , that is, with .
MP test. Reject when , equivalently when
Distribution. If has density , then is exponential with mean , so Under (), . Let be the lower point of . Then
Power. Under , , so Example: , : , and the power is . For it is .
✓ Checked by computer We checked by simulation (n = 5): the test has size 0.051 under β = 1 and power 0.361 under β = 2, matching P(χ²₁₀ < 2 × 3.940) = 0.360.
Let the power function of every test of against [?] be continuous in . Show that a UMP -similar test is UMPU provided that its size is for testing against
Solution
Note on the question. The “[?]” marks a garbled source. We read it in the standard form: against , with the common boundary of and .
Definitions.
- A test is -similar on if for all .
- A test of level is unbiased if on and on .
Claim. If every power function is continuous, and is UMP among -similar tests and has level for , then is UMPU.
Step 1: every unbiased test is similar. Let be unbiased at level , and . Then is a limit of points of , where , and of points of , where . By continuity, and , so . Hence the class of unbiased tests is contained in the class of -similar tests.
Step 2: is unbiased. The test is -similar. Since is UMP among similar tests, By hypothesis has level : on . So is unbiased.
Step 3: is UMPU. For any unbiased , Step 1 shows is similar, so on . And by Step 2, itself is unbiased. So is uniformly most powerful among unbiased tests.
✓ Proof checked step by step Every step was checked: continuity forces every unbiased test to be similar on the boundary, and the UMP similar test is itself unbiased.
A sample of size 1 is taken from probability density function, Find most powerful test of against [?], at level .
Solution
Note on the question. The “[?]” in the source is a stray mark. We read the alternative as , as printed.
Likelihood ratio. For one observation : On , so decreases in (and is 0 beyond ). The MP test rejects for small : reject if .
Choosing . Under , . Setting :
MP test. Reject if .
Power. If : (If , the region covers the whole support under , and the power is 1.)
Example: , , give and power . The test does not depend on , so it is UMP against all .
✓ Checked by computer We checked: the ratio (θ₁ − x)/(θ₀ − x) is decreasing in x. For θ₀ = 2, θ₁ = 1.5 and α = 0.05, the cut-off is c = 0.0506 and the power is 0.066.
Find an MP test of size for testing against based on a sample of size 1.
Solution
Likelihood ratio. For one observation,
MP test. increases with , so the MP test rejects when is far from 1: that is, if or . The Laplace density is higher than the normal near 0 and in the tails.
Size. Under , :
- If , then , and the test is simply: reject if .
- For , solving numerically gives . The test is: reject if or .
Power (), under the Laplace density:
✓ Checked by computer We solved the size equation numerically for α = 0.05 (a = 0.9950) and confirmed the size (0.050) by simulation. The power under the Laplace alternative is 0.141.
Choose the correct answer for (i), (ii) and (iv) and answer (iii). (i) A, B and C are three arbitrary events. The expression for the event that “only A occurs” in terms of A, B, C is (ii) A coin is tossed three times in succession. If A is an event that there are at least two heads and B is the event that 1st throw gives head, the probability is………………. [1/8, 5/8, 3/8] (iii) State Neyman-Pearson Lemma for testing a simple hypothesis against a simple alternative. (iv) An estimate based on a sample of size n is called an asymptotically unbiased estimate of if……… …….
Solution
Note on the question. The answer options are garbled in the source. We give the correct answers.
(i) “Only occurs” means occurs, and neither nor does:
(ii) = {first toss head and at least two heads} = {HHH, HHT, HTH}:
(iii) Neyman–Pearson lemma. To test against (both simple), consider the test Then:
- Existence: for every such a test exists, for some and .
- Sufficiency: such a test is most powerful among all tests of size at most .
- Necessity: any MP test of size has this form, except possibly on a set of probability zero under both hypotheses.
In words: the best critical region of size consists of the points where , with chosen so that .
(iv) is asymptotically unbiased for if
✓ Answer checked step by step Every answer was checked: (ii) by listing the 8 outcomes, and (i), (iii), (iv) against the standard definitions.
Supply the missing word(s) (i) If A and B are independent events then the conditional probability is equal to………….. (ii) If , then the binomial distribution is …………….. (iii) If a hypothesis specifies the value of all the parameters of a density function, it is called ……………. (iv) Methods which are not concerned with testing or estimating the parameters of a density function of a given type are called………….
Solution
(i) If and are independent, .
(ii) If , the binomial distribution is symmetrical (about its mean ).
(iii) A hypothesis that specifies the values of all the parameters is called a simple hypothesis.
(iv) Methods not concerned with the parameters of a density of a given form are called non-parametric (distribution-free) methods.
✓ Answer checked step by step Every answer was checked against the standard definitions.
Given a random sample of size n from a Bernoulli distribution, find the UMP size- test for against . Derive the power function of the test.
Solution
MLR. With , for , which increases with . So the family has MLR in .
UMP test (Karlin–Rubin). Reject for large : with and chosen so that Since the test does not depend on , it is UMP for . Randomisation () is needed because is discrete.
Power function. It increases from to . (For large , , and .)
✓ Derivation checked step by step Every step was checked: the Bernoulli family has MLR in T = ΣXᵢ, so the Karlin–Rubin test applies, and the power function follows from T ~ B(n, θ).
Let be a test function such that where and if X has density which has monotone likelihood ratio in x where is real parameter, then show that the power function of the test is increasing in .
Solution
Set-up. has MLR in : for , is non-decreasing in . The test is
Claim. is non-decreasing in .
Proof. Fix , and let .
Step 1: is MP for against at size . Let . Because is non-decreasing:
- if (where ), then ;
- if (where ), then .
So whenever and whenever . For any test with , because the integrand is at every : where , ; where , . Hence So is MP of size .
Step 2: an MP test is unbiased. Compare with the trivial test , which has size and power . By Step 1,
Since were arbitrary, is non-decreasing in .
(It is strictly increasing wherever , unless .)
✓ Proof checked step by step Every step was checked: the test is of Neyman–Pearson form for every pair θ₁ < θ₂, and MP tests are unbiased.
Let be the two independent observations from For testing , against the alternative , the is accepted when . Determine UMP test.
Solution
Note on the question. The upper 5% point of is 9.488, not 9.448. With 9.448 the size is 0.0508. We use the value given.
Distribution. is gamma with shape 2 and scale , so Under (), .
MP test. For , which increases with . So the MP test rejects when is large: This is exactly the given rule (accept when ).
UMP. The critical region does not involve , so the same test is MP against every . It is therefore the UMP test of against (and of against , since its power increases with ).
Power at . , so
(The other given value, , would be used for an alternative : then reject when .)
✓ Checked by computer We checked with SciPy: the exact upper 5% point of χ²₄ is 9.488, P(χ²₄ ≥ 9.448) = 0.0508, and the power at θ = 4 is 0.317.
Define MP and UMP region. Compare them and show that a MP test is necessary unbiased.
Solution
MP region. For a simple against a simple , a critical region of size is a most powerful (MP) region if, for every other region with ,
UMP region. For a composite alternative , a region of size is uniformly most powerful (UMP) if it is MP against every :
Comparison.
| MP region | UMP region | |
|---|---|---|
| Alternative | one simple | a set of values |
| Existence | always (Neyman–Pearson lemma) | only in special cases (e.g. one-sided tests with MLR) |
| Construction | MP region that does not depend on | |
| Relation | every UMP region is MP against each ; the converse fails |
For example, for , is UMP for , but no UMP region exists for .
An MP test is unbiased. Let be MP of size . Compare it with a randomised test , which rejects with probability regardless of the data. Its size and power are both . Since is MP, So the power is at least the size: the MP test is unbiased. (The inequality is strict unless .)
✓ Proof checked step by step Every step was checked: the definitions, and the comparison with the trivial test φ ≡ α.
Describe real valued function and the families with MLR. Obtain UMP test for against
Solution
and MLR families. A real-valued statistic is a function of the sample that takes values on the real line, such as or . A family , with real, has a monotone likelihood ratio in if, for every , Examples: the one-parameter exponential family with increasing; with ; the hypergeometric family.
UMP test of against . The test is
Proof.
- MP against each . For , the ratio is non-increasing in . So small corresponds to a large ratio, and has the Neyman–Pearson form for against . Hence is MP of size against each . Since does not depend on , it is UMP among tests with .
- Level on all of . The power is non-increasing in (the mirror image of the result that “reject for large ” has increasing power). So .
- UMP for the composite null. Any test of level for has , so by step 1 it is no more powerful than at any .
So is the UMP size- test.
✓ Proof checked step by step Every step was checked: the MLR property makes the test of Neyman–Pearson form against every θ₁ < θ₀, and its power is monotone.
Explain the concept of an unbiased test. Examine that whether a MP test is necessarily unbiased.
Solution
Unbiased test. A test of against at level is unbiased if That is, the probability of rejecting is never smaller when is false than when it is true. A biased test would reject a false less often than a true one, at some parameter values, which is clearly undesirable. When no UMP test exists (for example, for two-sided alternatives), we often look for the UMPU test: the best test among unbiased ones.
Is an MP test necessarily unbiased? Yes (simple against simple ).
Proof. Let be MP of size . The trivial test (reject with probability , ignoring the data) has size , so The power of is at least its size, so is unbiased. Moreover, unless .
Example. For , the MP test of against (reject if ) has power . Note that the same test, used against the alternative , is biased. Unbiasedness of an MP test refers to the alternative it was built for.
✓ Proof checked step by step Every step was checked: the definition, and the comparison with the trivial test φ ≡ α.
When is a family of pdfs said to have MLR in some statistic ? If is a random sample from exponential distribution with mean , verify whether the family of exponential distribution has MLR in some statistic . Obtain UMP test of size for testing against .
Solution
Note on the question. The alternative is printed as “”. It should read .
MLR. A family has MLR in if, for every , the ratio is a non-decreasing function of .
The exponential family. With and , for : Since , this increases in . So the family has MLR in .
UMP test of against . By the Karlin–Rubin theorem, reject for large : Under , . So where is the upper point. The power function increases with , so the size over the whole of is .
✓ Derivation checked step by step Every step was checked: the likelihood ratio is increasing in ΣXᵢ, and 2ΣXᵢ/θ₀ ~ χ²₂ₙ gives the critical value.
Let be a random sample from a pdf Obtain a level UMP test of against . Determine also its power function and sketch its graph.
Solution
MLR. For , which increases with . So the UMP test of against rejects when is large, that is, when is small.
Distribution. is exponential with mean , so
UMP test. Under , . Let be the lower point of . Then
Power function. Under , , so
Example: , , :
| 2 | 3 | 4 | 6 | 8 | |
|---|---|---|---|---|---|
| 0.050 | 0.177 | 0.360 | 0.703 | 0.893 |
Graph. is an increasing S-shaped curve. It equals at , is below for , and approaches 1 as .
✓ Checked by computer We checked the power formula by simulation (n = 5, θ = 3: 0.176 against the formula’s 0.177), and plotted it.
Let be a real parameter and the random variable x have probability density with MLR in . Determine the size UMP test of against .
Solution
Theorem (Karlin–Rubin). Let have density with MLR in . Then for against , the test is UMP of size . Moreover, its power is non-decreasing in .
Proof.
Step 1: and exist. is non-increasing and right-continuous. Choose with , and set (or if ). Then .
Step 2: MP against each . Let , a non-decreasing function of , and at . Then when and when . By the sufficiency part of the Neyman–Pearson lemma, is MP of size for against . It does not depend on , so it is UMP for against .
Step 3: the power is non-decreasing. For , the same argument shows is MP for against at its own size . An MP test is unbiased (compare with the trivial test ), so .
Step 4: the composite null. By Step 3, , so has size for . Any other test of level for this has , so by Step 2 its power at each is at most that of .
So is the UMP size- test: reject for large values of .
(For against , the inequalities are reversed: reject for small .)
✓ Proof checked step by step Every step was checked: the existence of c and γ, the Neyman–Pearson form against every θ₁ > θ₀, and the monotone power function.
Let be a random sample from a rectangular distribution . Show that for testing against , any critical region W for which and which necessarily includes the sample point if is UMP at level .
Solution
Set-up. Let . For , the joint densities are So on , and .
Power of . contains , and . So
Any other region with :
Conclusion. for every , so is UMP at level .
Examples of such regions: , or . Both are UMP against . (Only the second is also UMP against .) So a UMP region need not be unique.
✓ Proof checked step by step Every step was checked: on {max ≤ θ₀} the alternative density is a constant multiple of the null density, which gives an upper bound on the power of any level-α region, and W attains it.
On the basis of a random sample of size n from a distribution with pdf derive the MP critical region for testing against . Will this region be UMP against ? Will this region be also MP against ?
Solution
MP region for . With , Since , this decreases in . By the Neyman–Pearson lemma, the MP region is .
Critical value. Under , . So where is the value exceeded with probability (the lower point).
UMP against ? Yes. does not depend on , so it is MP against every . It is UMP. Its power is which increases with .
MP against ? No. Now , so the ratio increases in , and the MP region is , the opposite tail. Against the region has power less than . So is not MP there, and no UMP test exists for the two-sided alternative .
✓ Derivation checked step by step Every step was checked: the likelihood ratio, the χ² distribution of 2θ₀ΣXᵢ, and the reversal of the region for θ₂ < θ₀.
Let be a random sample from a distribution with pmf , if . Find the UMP critical region of size , for testing against .
Solution
Likelihood ratio. With and any , The bracket is greater than 1, so the ratio increases with .
MP region. By the Neyman–Pearson lemma, reject for large : If no integer gives size exactly , we randomise at , rejecting there with probability
UMP. The region depends only on and , not on . So it is MP against every , and is the UMP critical region of size for .
For large , approximately: reject if .
✓ Derivation checked step by step Every step was checked: the Bernoulli likelihood ratio is increasing in ΣXᵢ, and the region does not depend on the alternative.
When is a family of densities said to have monotone likelihood ratio? Show that the one-parameter exponential family of densities belongs to this class of MLR densities.
Solution
Definition. A family has a monotone likelihood ratio in a statistic if, for every , the ratio is a non-decreasing function of (where the ratio is defined).
One-parameter exponential family. with a monotone non-decreasing function of .
Proof. For , Here is a constant, and . So the ratio is a non-decreasing function of . The family has MLR in .
(If is non-increasing, the family has MLR in .) Examples: binomial (, ), Poisson (, ), normal with known variance (, ), exponential with mean (, ).
✓ Proof checked step by step Every step was checked: the likelihood ratio of the exponential family is an exponential function of T with a non-negative coefficient.
More on Statistical Inference
- All Statistics PYQ solutions, topic by topic
- Statistical Inference topic-wise PYQs (questions only, for practice)
- Statistics PYQ analysis: which units carry the marks year by year
- Year-wise question papers
- Statistics booklist
Questions: UPSC Civil Services (Main) Examination, Statistics Paper I, 1995–2025. Solutions: Optional Province. Found an error? Tell us.

