Actuarial Notes

Conditional Probability Function

Study guide: Exam P-1

A Conditional Probability Function gives the distribution of one random variable given the value of another. The conditional probability function of X given Y = y is

f_{X \mid Y}(x \mid y) = \frac{f(x, y)}{f_Y(y)}

For continuous random variables, the same formula divides the joint density by the marginal density. It is conditional probability applied to every value of X at once.

The idea Knowing Y = y leaves only the slice of the joint distribution at that y, and dividing by the slice's total makes it add to 1.

X and Y are the numbers of auto and home claims, with the joint probability function below. Given one auto claim, what is the distribution of home claims? The joint probability function:

Y = 0 Y = 1 Y = 2
X = 0 0.30 0.15 0.05
X = 1 0.20 0.20 0.10
  • Only the row X = 1 can still happen. It adds to f_X(1) = 0.50.
  • Dividing each value by 0.50 gives 0.40, 0.40 and 0.20.
  • So P(Y = 2 \mid X = 1) = 0.20, and the three probabilities add to 1.

Dividing by the wrong total P(Y = 2 \mid X = 1) divides by f_X(1) = 0.50, the total of the row that is given. Dividing by f_Y(2) = 0.15 gives \frac{0.10}{0.15} = 0.67, which answers the reverse question, P(X = 1 \mid Y = 2).

Conditioning on an event

The conditional probability function of X given an event E is

P(X = x \mid E) = \frac{P(X = x \text{ and } E)}{P(E)}

When E is a condition on X alone, the numerator is P(X = x) for each x in E and 0 otherwise.

A fair die is rolled. Given that the roll is at least 4, what is the distribution of the roll X?

  • The event "at least 4" has probability \frac{3}{6} = \frac{1}{2}.
  • For x = 4, 5, 6, P(X = x \mid X \ge 4) is \frac{1/6}{1/2} = \frac{1}{3}.
  • For x = 1, 2, 3 the conditional probability is 0.

The conditional mean

A conditional distribution has its own mean:

E[Y \mid X = x] = \sum_y y\, f_{Y \mid X}(y \mid x)

How the conditional means and variances combine into the overall variance is on Variance for Conditional and Marginal Distributions.

For the auto and home claims above, what is the expected number of home claims given one auto claim?

  • Given X = 1, Y is 0, 1 or 2 with probabilities 0.40, 0.40 and 0.20.
  • E[Y \mid X = 1] is 1(0.40) + 2(0.20) = 0.80.

Continuous random variables

For a joint density, the conditional density lives on the slice of the support at the given value, not on the whole range. A constant factor of f(x, y) cancels between the numerator and the denominator.

X and Y have joint density f(x, y) = 6x for 0 < x < y < 1. What is the conditional density of X given Y = y, and its mean?

  • For a fixed y, x runs from 0 to y, so f_Y(y) = \int_0^y 6x\, dx = 3y^2.
  • The conditional density is \frac{6x}{3y^2} = \frac{2x}{y^2} for 0 < x < y.
  • Its mean is

E[X \mid Y = y] = \int_0^y x \cdot \frac{2x}{y^2}\, dx = \frac{2y}{3}

Practice questions

Actuarial Notes