← 📊 Random Variables, Expectation & Variance
Subtopic 2 of 6

3.2Continuous random variables: normalising a density

The idea

For a continuous variable, probabilities are areas under a density curve. An unknown constant in the density is found by making the total area 1.

Think of it like this: A thin sheet of metal cut into a shape: the total weight is fixed, and each section's share is its area.

Why it exists

GATE gives densities like Cx² on [1, 4] and asks for C or a probability.

How it works

  1. Write ∫ f(x) dx over the whole support and set it equal to 1.
  2. Solve for the constant C.
  3. P(a ≤ X ≤ b) = ∫ₐᵇ f(x) dx.
  4. E[X] = ∫ x f(x) dx.
  5. The density can exceed 1 at a point; only the total area must be 1.

Worked example: GATE 2025: f(x) = Cx² on [1, 4]

∫₁⁴ Cx² dx = C(64 − 1)/3 = 21C = 1, so C = 1/21. Then P(2 ≤ x ≤ 3) = (27 − 8)/(3 × 21) = 19/63 ≈ 0.3016. Set the exponent k = 2 in the plot below.

Now play with it

  • →Change the exponent k and watch C change so the area stays 1.
  • →Read P(2 ≤ x ≤ 3) in the readout for k = 2.
14x0.80f(x)

C = 0.0476 (= 1/21.0), P(2 ≤ x ≤ 3) = 0.3016

On [1, 4]: ∫ x^k dx = (4^(k+1) − 1)/(k+1), so C is its reciprocal. For k = 2: C = 1/21 and P(2 ≤ x ≤ 3) = 19/63 ≈ 0.3016 (GATE 2025).

Check yourself

A density is f(x) = c on [0, 4] and 0 elsewhere. What is c?

Remember: Normalise the density to total area 1, then integrate over the asked range.
Exam notes (the dense version)

To use an unknown constant C in a density, impose ∫ f(x) dx = 1 over its support. Then P(a ≤ X ≤ b) is the area between a and b, E[X] = ∫ x f(x) dx, and F(x) = ∫ f up to x. For the uniform density the area is just a length times the constant height.

Previous year questions: Random Variables, Expectation & Variance (11)

PYQs are grouped by topic, so this is the full set for Random Variables, Expectation & Variance; try the ones that match this subtopic. Open all 11 on the topic page.