Skip to content
GATEiit

GATE DA · Probability and Statistics

Cumulative distribution function; conditional PDF

The CDF as the universal description of a random variable (discrete, continuous or mixed), reading probabilities and jumps from it, CDFs of maxima and minima, joint and marginal densities, and conditional PDFs.

Before you start

Concept notes

1. The CDF and its properties

For any random variable, the cumulative distribution function is F(x)=P(X≤x). A function is a valid CDF exactly when it is:

  1. non-decreasing;
  2. right-continuous: F(x)=lim⁡t↓xF(t);
  3. lim⁡x→−∞F(x)=0 and lim⁡x→∞F(x)=1.

So 0≤F(x)≤1 always. Reading probabilities (with F(a−) the left limit):

Probability From F
P(X≤a) F(a)
P(X<a) F(a−)
P(X=a) F(a)−F(a−) (the jump)
P(a<X≤b) F(b)−F(a)
P(X>a) 1−F(a)

Three kinds of RV:

  • discrete: F is a pure step function;
  • continuous: F is continuous (no jumps), and f=F′;
  • mixed: F has both jumps and rising continuous parts. Example: the waiting time at a signal is 0 with positive probability (green light) and continuous otherwise.

For a mixed RV, E[X]=∑(jump points×jump sizes)+∫x F′(x) dx over the continuous part.

011jump 0.25 = P(X = 0)jump 0.25 = P(X = 1)slope 0.5 (density)
A mixed CDF: jumps of 0.25 at x = 0 and x = 1, and a continuous rise of slope 0.5 between them (filled dot = value of F at the jump)

2. CDF technique: maxima, minima and quantiles

The CDF is often the easiest route to a distribution.

Maximum and minimum of i.i.d. variables. Let X1,…,Xn be independent with common CDF F.

  • M=max⁡Xi: M≤x means every Xi≤x, so FM(x)=F(x)n.
  • L=min⁡Xi: L>x means every Xi>x, so FL(x)=1−(1−F(x))n.

For U(0,1): FM(x)=xn, fM(x)=nxn−1, E[M]=nn+1; and E[L]=1n+1. For exponentials, the minimum of Exp(λi) is Exp(∑λi).

Quantiles. The p-quantile solves F(xp)=p (median at p=0.5, quartiles at 0.25 and 0.75). For F(x)=1−e−λx, xp=−ln⁡(1−p)λ.

Transformations. For Y=g(X), write FY(y)=P(g(X)≤y) in terms of FX and differentiate. This works even when g is not monotone.

3. Joint CDF, joint PDF and marginals

For two continuous RVs, the joint PDF f(x,y)≥0 satisfies ∬f(x,y) dx dy=1, and P((X,Y)∈A)=∬Af(x,y) dx dy. The joint CDF is F(x,y)=P(X≤x,Y≤y), and f(x,y)=∂2F∂x ∂y.

Marginal PDFs integrate out the other variable: fX(x)=∫f(x,y) dy,fY(y)=∫f(x,y) dx. Watch the limits when the support is not a rectangle. On the triangle 0<x<y<1 with f=2: fX(x)=∫x12 dy=2(1−x) and fY(y)=∫0y2 dx=2y.

Independence: X and Y are independent exactly when f(x,y)=fX(x)fY(y) for all x,y. A quick test: the support must be a rectangle (product set) and f must factor into a function of x times a function of y. The triangle example fails the first test, so X and Y are dependent even though f is constant.

4. Conditional PDF

Given a value. For fY(y)>0, the conditional PDF of X given Y=y is fX∣Y(x∣y)=f(x,y)fY(y). For fixed y it is a valid PDF in x (it integrates to 1). Use it for P(X∈A∣Y=y)=∫AfX∣Y(x∣y) dx and for E[X∣Y=y]. On the triangle 0<x<y<1, fX∣Y(x∣y)=22y=1y: given Y=y, X is uniform on (0,y).

Multiplication and Bayes rules carry over: f(x,y)=fX∣Y(x∣y) fY(y),fY∣X(y∣x)=fX∣Y(x∣y) fY(y)fX(x).

Given an event. For an event A with P(A)>0, fX∣A(x)=f(x)P(A) for x∈A and 0 elsewhere: cut the PDF to A and rescale. If X∼U(0,10) and A={X>4}, then X given A is U(4,10) with mean 7. For an exponential, conditioning on X>s gives s plus a fresh exponential (memorylessness).

If X and Y are independent, fX∣Y(x∣y)=fX(x).

Formulas to remember

CDF
F(x)=P(X≤x)
Interval probability
P(a<X≤b)=F(b)−F(a)
Point mass from a jump
P(X=a)=F(a)−F(a−)
Maximum of n i.i.d.
Fmax⁡(x)=F(x)n
Minimum of n i.i.d.
Fmin⁡(x)=1−(1−F(x))n
Marginal PDF
fX(x)=∫−∞∞f(x,y) dy
Conditional PDF
fX∣Y(x∣y)=f(x,y)fY(y)
PDF given an event
fX∣A(x)=f(x)P(A), x∈A

Common mistakes

  • Using F(a) for P(X<a) when F jumps at a; for mixed or discrete RVs the jump matters.
  • Treating a mixed RV as continuous and computing E[X] from F′ alone, missing the point masses.
  • Integrating a non-rectangular support with fixed limits 0 to 1 when finding marginals.
  • Forgetting to divide by fY(y) (or by P(A)), so the conditional PDF does not integrate to 1.
  • Writing Fmin⁡(x)=1−F(x)n instead of 1−(1−F(x))n.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Reading a mixed CDF

numerical

F(x)=0 for x<0, F(x)=0.25+0.5x for 0≤x<1, and F(x)=1 for x≥1. Find P(X=0), P(X=1), P(0<X<1), P(X≤0.5) and E[X].

  1. Step 1: Find the jumps.

    Try it on paper first.

Example 2: Largest of three uniforms

numerical

X1,X2,X3 are i.i.d. U(0,1) and M is their maximum. Find P(M≤0.5), the PDF of M and E[M].

  1. Step 1: Write the CDF of the maximum.

    Try it on paper first.

Example 3: Conditional PDF from a joint density

numerical

(X,Y) has joint PDF f(x,y)=x+y on 0≤x,y≤1. Find fX∣Y(x∣y) and P(X<1/2∣Y=1/2).

  1. Step 1: Find the marginal of $Y$.

    Try it on paper first.

Example 4: Conditioning on an event

numerical

X∼U(0,10). Find the conditional PDF of X given X>4, and E[X∣X>4].

  1. Step 1: Find the probability of the event.

    Try it on paper first.

Previous year questions

4 official GATE DA questions on this topic, newest first.

Practise these 4 PYQs →

Topic test

10 questions: up to 4 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE DA syllabus; being checked by a reviewer. Updated 2026-11-21. Spotted a mistake? Use Report an issue on any question, or contact us.