Continuous random variables and probability distribution functions
Continuous random variables described by a probability density function: the PDF conditions, probabilities as areas, the CDF, mean, variance, median and mode by integration, and the distribution of a function of X.
A random variable is continuous if there is a function , the probability density function (PDF), with
A valid PDF needs
Key consequences:
for every single point, so : strict or not does not matter.
is not a probability. It can exceed 1 (the uniform PDF on equals 2). Only areas under are probabilities.
For small , .
Finding the constant: for on , gives . Then .
PDF f(x) = x²/9 on [0, 3]: the shaded area P(1 < X < 2) = 7/27
2. The CDF of a continuous random variable
The cumulative distribution function is
For a continuous RV, is continuous, non-decreasing, , , and wherever is continuous,
So probabilities come from by subtraction: and .
Write piecewise across the whole real line: 0 to the left of the support, the integral inside it, 1 to the right. For on :
F(x)=⎩⎨⎧0x21x<00≤x≤1x>1
Unlike a discrete CDF, there are no jumps.
3. Mean, variance, median and mode
Replace sums by integrals:
Linearity and hold as before.
Median : solve . More generally the -th quantile solves .
Mode: the where is largest (set , or check the endpoints if is monotone).
For on
Value
Mean
Variance
Median
,
Mode
(the PDF increases)
Here mean < median < mode, the pattern for a left-skewed shape.
For a non-negative , the tail formula also holds: .
4. Functions of a continuous random variable
To find the distribution of , use the CDF method:
Write as an event about .
Express it with .
Differentiate: .
Example: , . For , , so .
Monotone shortcut: if is strictly increasing or decreasing with inverse ,
For the linear map : . So under becomes uniform on with density .
Probability integral transform: if has a continuous CDF , then . Read backwards, has CDF ; this is how samples are generated (inverse transform sampling).
Formulas to remember
PDF conditions
Probability as area
CDF and PDF
Mean
LOTUS
Median
Change of variable (monotone g)
Common mistakes
Treating as a probability; only over an interval is a probability, and may exceed 1.
Forgetting the 0 and 1 pieces when writing a CDF over the whole real line.
Applying the change-of-variable formula without the factor, or using it for a non-monotone such as on a symmetric range.
Finding the median by setting instead of .
Integrating over the wrong limits: use only the support where is non-zero.
Worked examples
Try each step yourself, then reveal the working.
Example 1: Constant, probability, mean and variance
numerical
for and 0 otherwise. Find , , and .
Step 1: Normalise.
Try it on paper first.
Example 2: CDF and median
numerical
on . Find the CDF, and the median.
Step 1: Integrate the PDF up to $x$.
Try it on paper first.
Example 3: Distribution of the square of a uniform
numerical
and . Find the PDF of and in two ways.
Step 1: Write the CDF of $Y$ through $X$.
Try it on paper first.
Example 4: Is a density a probability?
conceptual
is uniform on . Its PDF is 2. Is something wrong, and what is ?
Step 1: Check the two PDF conditions.
Try it on paper first.
Previous year questions
1 official GATE DA question on this topic, newest first.
9 questions: up to 1 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.