All 38 questions UPSC has asked on generating and characteristic functions in the Statistics Optional (Paper I, Probability) from 1995 to 2026, solved step by step – latest first.
Try them yourself first: the same questions, without solutions, are on our Probability 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):
2026 · 2a(i) 2026 · 2a(ii) 2025 · 1b 2024 · 2b 2024 · 3a(i) 2024 · 3a(ii) 2022 · 3c 2021 · 2c 2020 · 3c 2020 · 4b(ii) 2019 · 1e 2015 · 2a 2013 · 2a 2013 · 2b 2011 · 2a 2011 · 2b 2009 · 3a 2007 · 2a 2006 · 1b 2006 · 2a 2005 · 1c 2004 · 2c 2003 · 1b 2002 · 1c 2002 · 2b 2001 · 1b 2001 · 1d 2001 · 4iv 2000 · 1a 2000 · 1b 2000 · 2b(i) 1999 · 3c 1998 · 2c(i) 1997 · 2c 1996 · 4a 1996 · 4b 1995 · 4a 1995 · 4b
Find the moment generating function (m.g.f.) of a random variable with probability density function (p.d.f.) Using this m.g.f., find and .
Solution
M.g.f. Integrating by parts, Adding, (This is the square of the m.g.f. of : has the distribution of the sum of two independent variables.)
Moments from the m.g.f. Expand: , so Matching with :
✓ Checked by computer We computed the m.g.f. symbolically in SymPy and expanded it: , giving , , .
Let be the characteristic function of a random variable . Using the inversion formula, find the probability density function of .
Solution
Inversion formula. If , then has the continuous density Here , so the formula applies.
Evaluate. Complete the square: . So (Shifting the line of integration by does not change the value of this Gaussian integral.)
Answer. is standard normal.
(Real-variable route: is even, so . Call this . Differentiating under the integral and integrating by parts gives , with . Hence .)
✓ Derivation checked step by step Every step was checked. We also evaluated the inversion integral numerically in Python at x = 0, 0.7 and 2: it matches the N(0, 1) density to 12 decimal places.
If and are non-negative independent random variables and their joint moment generating function is given by ; , then show that .
Solution
Identify the distributions. Write the m.g.f. as The first factor is the m.g.f. of Poisson(1) and the second of Poisson(2). The joint m.g.f. factorises, which confirms independence. So and are independent.
Distribution of . , so .
Verify.
(The m.g.f. exists for all real ; the restriction in the question is not needed.)
✓ Proof checked step by step Every step was checked. We also computed both sides in Python: .
Find the distribution function of random variable , for which the characteristic function is Also compute in terms of , where
Solution
Identify the distribution. The c.f. of is . Matching gives and . By the uniqueness theorem, .
(Directly by inversion: , the density.)
Distribution function.
Probability.
✓ Checked by computer We inverted the c.f. numerically in Python and matched the N(0, 2) density at three points, then computed .
Let moment generating function of random variable exist in the neighbourhood of zero and if then find the values of the following:
Solution
Identify the distribution. Write the moments as These are exactly the moments of a variable taking the values with probabilities (they sum to 1). The m.g.f. exists near 0, so the moments determine the distribution uniquely. Hence (Check through the m.g.f.: .)
Probability. means . This holds for and , but not for . So
✓ Checked by computer We recomputed the moments of the three-point distribution in Python, and confirmed they match the given formula for n = 1, 2, 3. Then .
; and [Use ].
Solution
(This continues the 2024 question above, where takes the values with probabilities .)
Mean and variance. With and in the moment formula:
Probability. means . Of the values , only lies in this interval. So
✓ Checked by computer We recomputed in Python: μ = 0.6, σ² = 1.84, σ = 1.357, and .
If is a random variable with characteristic function then obtain the corresponding probability density function.
Solution
Inversion formula. is integrable: . So has the continuous density
Simplify. is even, so the sine part cancels: Integrate by parts ():
Answer. (The value at 0 is the limit, and also .)
✓ Derivation checked step by step Every step was checked. We also evaluated the inversion integral numerically in Python at x = 0.5, 2 and 7: it matches to 14 decimal places.
(i) State the sufficient conditions for a function to be a characteristic function. (ii) Investigate if the following functions are characteristic functions: 1. 2. Justify your answer.
Solution
(i) Sufficient conditions.
- Pólya’s criterion. A real function is a c.f. if it is continuous, even, , convex on , and as .
- Bochner’s theorem (necessary and sufficient). is a c.f. if and only if it is continuous, , and non-negative definite: for all real and complex .
(ii) 1. is not a c.f. Suppose it were the c.f. of . Near 0, so . But if is twice differentiable at 0, then is finite and equals . That forces with probability 1, whose c.f. is . This is a contradiction. (The same argument rules out for every .)
2. is a c.f. Check Pólya’s conditions:
- it is real, even, continuous, and equals 1 at ;
- for , , so it is convex on ;
- as .
By Pólya’s criterion, is a characteristic function, of an absolutely continuous distribution symmetric about 0.
✓ Proof checked step by step Every step was checked. As a numerical illustration we inverted in Python: the “density” comes out negative near x = 4.5 (−0.030), confirming it is not a c.f.
State inversion theorem on characteristic function. Hence, find the density function corresponding to the characteristic function
Solution
Inversion theorem. Let be the c.f. of a distribution function .
- If are continuity points of , then
- If , then has a bounded continuous density
Apply it. . is even, so Integrate by parts with and :
Answer. (The same c.f. was asked in 2022; see the graph there.)
✓ Derivation checked step by step Every step was checked. We also evaluated the inversion integral numerically in Python at three points: it matches .
(i) Obtain characteristic function of uniform distribution .
(ii) Let be a sequence of independent random variables such that Show that converges in law to a uniform distribution. State the result you have used.
Solution
(i) C.f. of .
(ii) is uniform on . (Only the distribution of each matters here, so the independence of the plays no role.) Its c.f. is a geometric sum:
Limit. For fixed , as : , and , since as . So and for all . The limit is the c.f. of .
Conclusion. By Lévy’s continuity theorem (if for every , and is continuous at 0, then at every continuity point of , where is the c.f. of ), .
(Direct check: for .)
✓ Proof checked step by step Every step was checked. We also computed the c.f. of in Python at t = 2 for n = 10, 100 and 1000: it approaches .
Let be three independent random variables with common pdf Let . Find mgf of . Using mgf, find and .
Solution
Distribution of . Each Exp(rate 2), with . So Exp(rate 6), with density .
M.g.f.
Moments. (So .)
✓ Checked by computer We computed the m.g.f. of symbolically in SymPy and differentiated it: , .
How can you find out the discontinuity points of distribution of a random variable if the characteristic function is given to you? Hence find the c.d.f. of a random variable whose characteristic function is .
Solution
Finding the jumps from . A point is a discontinuity of exactly when , and So the discontinuity points are the where this limit is positive. Moreover, if is a finite sum , then which picks out the jump at .
Apply to the given . The formula gives jumps of at , and 0 elsewhere. So is discrete with
C.d.f.
✓ Checked by computer We evaluated the jump formula numerically in Python (T = 2000): the jumps at 0, 1, 2 come out 0.250, 0.250, 0.500, and the value at 1.5 is 0.0006 ≈ 0.
If denotes the characteristic function (ch.f.) of a random variable with distribution function , show that is a characteristic function. Hence find its corresponding distribution function.
Solution
Construction. Let be i.i.d. with d.f. (c.f. ), and let Poisson(1), independent of the . Put
Its c.f. Condition on : So is the c.f. of the random variable , and hence a characteristic function.
Its distribution function. Let be the -fold convolution of (the d.f. of ), with . Then This is a compound Poisson distribution: a Poisson(1) mixture of the convolution powers of .
✓ Proof checked step by step Every step was checked. We also simulated a compound Poisson sum in Python, with F = Exp(1) and 200 000 draws: its empirical c.f. at t = 0.8 matches to about 0.002.
For the Laplace distribution find the moment generating function.
Solution
Shift to the centre. Put , with density . Then .
M.g.f. of . For ,
Answer. (From it: and .)
✓ Checked by computer We computed the m.g.f. integral symbolically in SymPy (for μ = 1, λ = ½, t = ⅓) and matched .
A random variable has the probability density function Derive the expression for its characteristic function.
Solution
C.f. is even, so the imaginary part vanishes, and
Evaluate. Use and take the real part: (Equivalently, .)
Answer. , . (This is the standard Laplace distribution, with mean 0 and variance 2.)
✓ Checked by computer We evaluated the c.f. integral numerically in Python at t = 1.7: 0.25707, equal to .
State (without proof) the inversion theorem relating to the characteristic function of a continuous random variable. Use this theorem to obtain the probability density function of a random variable having the characteristic function .
Solution
Inversion theorem (continuous case). If is the c.f. of and , then has a continuous density
Apply it. . Since is even,
Answer. This is the standard Cauchy distribution.
✓ Derivation checked step by step Every step was checked. We also evaluated the inversion integral numerically in Python at x = 0, 0.7 and 2: it matches .
Define probability generating function (pgf) of a discrete random variable. Let be a random variable with p.m.f. Set and define . Show that , , where is the pgf of .
Solution
Definition. For a random variable taking values in with , the probability generating function is
Proof. Since , converges for . Multiply by : Now , and . So Hence
Corollary. Letting , , the tail-sum formula for the mean.
✓ Proof checked step by step Every step was checked: the term-by-term subtraction is valid because both series converge absolutely for .
For the geometric distribution find the p.g.f. Hence find the mean and variance.
Solution
P.g.f.
Derivatives at .
Mean and variance.
✓ Checked by computer We differentiated the p.g.f. symbolically in SymPy (p = 2/7): mean 5/2 = q/p and variance 35/4 = q/p².
State Inversion theorem. Find the distribution to which the characteristic function corresponds.
Solution
Inversion theorem. Let be the c.f. of . For continuity points of , If , has the continuous density . In particular, determines uniquely.
Apply it to . It is integrable, and even, so (Use .)
Answer. is the c.f. of the standard Cauchy distribution, , .
✓ Derivation checked step by step Every step was checked. We also evaluated the inversion integral numerically in Python: it matches the Cauchy density at x = 0, 0.7 and 2.
For any integer-valued random variable X, show that where is the probability generating function of X.
Solution
Note on the question. The result needs to be non-negative integer-valued, so that its p.g.f. is defined, with . We prove it for .
Proof. Change the order of summation. For fixed , runs from to :
(Compare the 2009 question above: . Adding the two gives , as it should.)
✓ Proof checked step by step Every step was checked: the interchange of the two summations is valid because all terms are non-negative for , and the series converge absolutely for .
Find the characteristic function of where X has the p.i.f.
Solution
C.f. of (Gamma with shape and rate ): (This uses , valid for complex with positive real part.)
C.f. of .
✓ Checked by computer We checked by simulation in Python (a = 2, b = 1, λ = 1.5, n = 3, 10⁶ draws): the empirical c.f. of Y at t = 0.7 matches to 0.001.
The characteristic function of a random variable X is . Find the distribution of X.
Solution
Recognise the c.f. If , then (Expand by the binomial theorem: the coefficient of is , so this is exactly the binomial pmf.)
Uniqueness. A characteristic function determines the distribution uniquely. So
✓ Answer checked step by step We checked this against the standard binomial c.f. and the uniqueness theorem.
Define characteristic function . State its properties. Examine whether the following relations are characteristic function: (i) (ii)
Solution
Definition. The characteristic function of is , . It exists for every distribution.
Properties.
- , and for all .
- .
- is uniformly continuous on .
- .
- If are independent, .
- If , is times differentiable and for .
- Uniqueness and inversion: determines .
- is real if and only if is symmetric about 0.
- is non-negative definite (Bochner).
(i) At : So, as printed, this is not a c.f.
(If the first factor were meant to be , the product would be a c.f. It would be the sum of three independent variables: a Bernoulli(), a Poisson(5), and an , whose c.f. is .)
(ii) for . This violates , so it is not a c.f. ( would be: it is the c.f. of .)
✓ Proof checked step by step Every step was checked: each function fails a necessary property of every c.f. ( in (i), and in (ii)).
Show that, for any characteristic function ,
Solution
Write both sides as expectations. If is the c.f. of , then . So
A pointwise inequality. For any real , since and .
Take expectations. With :
(Repeating the step gives . This is a useful tool in limit theorems.)
✓ Proof checked step by step Every step was checked. We also tested the inequality in Python on random discrete distributions at random t: it held every time.
Let X be a standard normal variate with p.d.f. Find the characteristic function of X.
Solution
Method 1: a differential equation. is even, so is real. Differentiate under the integral (allowed, since ): Since , integrating by parts gives So , and . Since , .
Method 2: completing the square. , and .
Answer.
✓ Derivation checked step by step Every step was checked; the result agrees with the numerical inversion in the 2026 question above.
Match X with Y:
| X | Y |
| (i) Random experiment | (a) Characteristic function |
| (ii) Sufficient | (b) Non-parametric method |
| (iii) Inversion theorem | (c) Probability theory |
| (iv) Kolmogorov test for goodness of fit | (d) Estimate |
Solution
| X | Y | Reason |
|---|---|---|
| (i) Random experiment | (c) Probability theory | The basic notion on which probability theory is built |
| (ii) Sufficient | (d) Estimate | Sufficiency is a property of a statistic used for estimation |
| (iii) Inversion theorem | (a) Characteristic function | It recovers the distribution from its c.f. |
| (iv) Kolmogorov test for goodness of fit | (b) Non-parametric method | The K–S test is distribution-free |
Answer: (i)–(c), (ii)–(d), (iii)–(a), (iv)–(b).
✓ Answer checked step by step Each match was checked against standard usage.
(i) Obtain the probability generating function of the Poisson distribution. (ii) Write the probability mass function of the negative binomial distribution. (iii) Define a Uniformly Most Powerful Test (UMPT). (iv) Write the expression for ASN function in sequential probability ratio test (SPRT).
Solution
(i) P.g.f. of the Poisson.
(ii) Negative binomial p.m.f. The number of failures before the -th success, with success probability :
(iii) Uniformly most powerful test. To test against at level , a test is UMP if
- , and
- for every other level- test , for all .
That is, it has the highest power at every alternative at once.
(iv) ASN function of the SPRT. Let , the boundaries and , and the OC function. Wald’s approximation is
✓ Answer checked step by step Each part was checked against the standard definitions and results.
Obtain the Moment Generating Function of the standard Normal distribution.
Solution
Complete the square: . So since the last integral is that of the density, which is 1.
Answer. for all real .
(From the series , the odd moments are 0 and ; for example and .)
✓ Derivation checked step by step Every step was checked: completing the square in the exponent.
Let be bivariate probability generating function (PGF) of (X, Y). Find the marginal PGF of X and Y. Find also the PGF of X + Y. Examine whether X and Y are independent.
Solution
Note on the question. “” in the exponent should read .
Marginal p.g.f.s. Put to get the p.g.f. of : So Poisson(). Similarly, and Poisson().
P.g.f. of . Put : This is not a Poisson p.g.f., because of the term. with independent Poisson(), Poisson(), Poisson().
Independence. This differs from whenever : the ratio is . So and are not independent. Indeed and share the common part , and
✓ Checked by computer We checked by simulation in Python (λ₁ = 1, λ₂ = 2, μ = 0.5, 10⁶ draws), using X = U + W, Y = V + W: means 1.501 and 2.498, covariance 0.499.
Apply a suitable inversion theorem to obtain the probability density function of the random variable whose characteristic function is given by
Solution
Note on the question. The c.f. is printed garbled. It is meant to be as in the 2020 and 2022 questions.
Inversion theorem. If , then has the continuous density . Here .
Evaluate. is even, so Integrating by parts gives .
Answer.
✓ Derivation checked step by step Every step was checked; the result is the same density as in the 2020 and 2022 questions above, which we verified numerically there.
State a necessary and sufficient condition for a function on a real line to be the characteristic function of a random variable. Prove that it is necessary.
Solution
Statement (Bochner’s theorem). A function is the characteristic function of a random variable if and only if:
- ;
- is continuous (at 0, and hence everywhere);
- is non-negative definite: for every , all real and all complex ,
Proof of necessity. Let .
(1) .
(2) Continuity. As , pointwise and is bounded by 2. By dominated convergence, . The bound does not involve , so is even uniformly continuous.
(3) Non-negative definiteness.
(Sufficiency is the harder half of Bochner’s theorem. It is not asked here.)
✓ Proof checked step by step Every step of the necessity proof was checked: non-negative definiteness, continuity by dominated convergence, and .
Show that a distribution is symmetric about the origin iff its characteristic function is real-valued and even.
Solution
Definitions. is symmetric about the origin if , that is, for all . Its c.f. is , and .
Only if. If , then , so is real. And , so is even. Explicitly, because is odd and is symmetric.
If. Suppose is real (and so even, since ). Then By the uniqueness theorem, and have the same distribution, so is symmetric about 0.
(For a c.f., “real” already implies “even”, since . Examples: has and has , both real and even, while Exp(1) has , which is not real.)
✓ Proof checked step by step Every step was checked: the “if” direction uses the uniqueness theorem for characteristic functions.
Discuss discrete and continuous random variable with examples. Indicate the distributions for the flowing moment generating functions
Solution
Discrete and continuous random variables.
- A random variable is discrete if it takes a finite or countable set of values with probabilities , . Its d.f. is a step function. Examples: the number of heads in 5 tosses (binomial), the number of calls at an exchange in a minute (Poisson).
- It is continuous if its d.f. is for a density , so for every single point. Examples: the height of a student (normal), the lifetime of a bulb (exponential).
Identify the m.g.f.s (each m.g.f. determines its distribution uniquely).
- is the binomial m.g.f. with , . So .
- is the Poisson m.g.f. with . So .
- is the normal m.g.f. with , . So .
✓ Answer checked step by step Each m.g.f. was matched against the standard binomial, Poisson and normal m.g.f.s.
Let X be an integer-valued random variable with probability generating function (pgf) . If , where a and b are non-negative integers, then find the pgf of Y. Hence obtain and .
Solution
P.g.f. of . ( takes non-negative integer values, and are non-negative integers, so does too.)
Mean. . At , with :
Variance. Differentiate again and put : Then . Writing , the terms in cancel, leaving
✓ Derivation checked step by step Every step was checked against the p.g.f. derivative formulas; the results agree with and .
Define the probability generating function of a random variable. Find the pgf of a geometric distribution and hence find its mean and variance.
Solution
Definition. For a random variable on , the probability generating function is It determines the distribution, since . Also and .
Geometric distribution. , (the number of failures before the first success).
Mean and variance. (For the form , , the number of trials, we get , mean and the same variance .)
✓ Checked by computer We differentiated the p.g.f. symbolically in SymPy and confirmed mean and variance .
State the properties of a characteristic function and show that it is uniformly continuous.
Solution
Properties of a characteristic function :
- and .
- .
- is uniformly continuous (proved below).
- .
- If are independent, .
- If , then for .
- is real if and only if is symmetric about 0.
- Uniqueness and inversion: determines the distribution.
- is non-negative definite.
Uniform continuity. For any and , The bound does not depend on . As , for every outcome, and . By the dominated convergence theorem, .
So for every there is an such that for all and all . Hence is uniformly continuous on .
✓ Proof checked step by step Every step of the uniform continuity proof was checked; the bound does not depend on t, by dominated convergence.
Define the characteristic function of a random variable. Determine the characteristic function of a Poisson variable. Are the following functions characteristic functions? (i) (ii) (iii) for all t.
Solution
Definition. The characteristic function of a random variable with d.f. is It always exists, since .
Poisson().
(i) : not a c.f. Its expansion near 0 is , so . A c.f. that is twice differentiable at 0 has . So , which makes with c.f. . This contradicts .
(ii) : a c.f. It is the c.f. of the degenerate variable , since .
(iii) : a c.f. It is the case of (ii): the c.f. of .
✓ Proof checked step by step Every step was checked against the necessary properties of characteristic functions.
State the condition when the moment sequence of a random variable defines a unique distribution. A random variable X has moments about origin given by , where . Show that the pdf is given by .
Solution
When moments determine the distribution. A moment sequence determines the distribution uniquely if any of these holds:
- the m.g.f. converges in a neighbourhood of 0;
- (Carleman) ;
- the distribution has bounded support (Hausdorff moment problem).
Here. for all . So converges for every (it is bounded by , since ). The m.g.f. exists, so the moments determine the distribution uniquely.
The given density has these moments. For , (it integrates to 1):
Conclusion. The density on has exactly the moments , and only one distribution has them. So has p.d.f. , . (This is a Beta(, 1) distribution.)
✓ Proof checked step by step Every step was checked. We also integrated numerically in Python for c = 2.5 and n = 1, 2, 3: the results match .
More on Probability
- All Statistics PYQ solutions, topic by topic
- Probability 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–2026. Solutions: Optional Province. Found an error? Tell us.

