UNIHIVE

Study Hub UNIPORT ENG 301

ENG 301 · Engineering Mathematics IV (Probability and Statistics)

Joint distributions, covariance and conditional expectation

Two random variables, marginal and conditional distributions, independence, covariance and correlation, functions of two variables and conditional expectation.

Our notes

2 min read

Joint distributions

  • Discrete: p(x, y) = P(X = x, Y = y); continuous: a joint density f(x, y) with ∬ f = 1.
  • Marginals: p_X(x) = Σ_y p(x, y); f_X(x) = ∫ f(x, y) dy.
  • Conditional: p(y | x) = p(x, y)/p_X(x).
  • Independent if p(x, y) = p_X(x) p_Y(y) for all x, y.

Covariance and correlation

  • Cov(X, Y) = E[XY] − E[X]E[Y].
  • ρ = Cov(X, Y)/(σ_X σ_Y), between −1 and 1; measures linear association.
  • Independent ⇒ Cov = 0; but Cov = 0 does not prove independence (Y = X² with X symmetric about 0).
  • Var(X + Y) = Var X + Var Y + 2 Cov(X, Y); for independent variables the covariance term is zero.

Worked example. X = 1 if a pump's seal leaks, Y = 1 if its bearing is worn. Joint table: P(0,0) = 0.4, P(0,1) = 0.2, P(1,0) = 0.1, P(1,1) = 0.3.

  • Marginals: P(X = 1) = 0.4, P(Y = 1) = 0.5.
  • Independent? P(1,1) = 0.3 but 0.4 × 0.5 = 0.2: no.
  • E[XY] = 0.3; Cov = 0.3 − 0.4 × 0.5 = 0.10. Var X = 0.4 × 0.6 = 0.24; Var Y = 0.25. ρ = 0.10/√(0.24 × 0.25) = 0.10/0.245 = 0.41.
  • Conditional: P(Y = 1 | X = 1) = 0.3/0.4 = 0.75, against 0.5 overall: a leaking seal makes a worn bearing more likely.

Conditional expectation

E[Y | X = x] = Σ y p(y | x): the average of Y once X is known (the best predictor of Y from X in the least-squares sense).
Law of total expectation: E[Y] = E[E[Y | X]].
Worked example. A factory's daily jobs N average 4; each job takes on average 2.5 hours, independent of N. Expected total hours = E[N] × 2.5 = 10 hours (random sum, by total expectation).

Functions of two random variables

  • Sum of independent variables: the pmf/pdf is a convolution: f_Z(z) = ∫ f_X(x) f_Y(z − x) dx; easier with MGFs (product) or transforms.
  • Minimum of independent exponentials (rates λ₁, λ₂) is exponential with rate λ₁ + λ₂: the time until the first of two parts fails (the series system).
  • Maximum: F_max(t) = F₁(t) F₂(t) for independent parts: the time until both fail (the parallel system).
  • Change of variables for densities uses the Jacobian.

Exams usually ask: marginals and conditionals from a joint table or density; test independence; covariance and correlation; variance of a sum; E[Y | X]; distribution of a sum, minimum or maximum.

Common mistake: concluding "independent" from one cell that happens to factorise. Every pair (x, y) must satisfy p(x, y) = p_X(x)p_Y(y).

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All ENG 301 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.