ENG 301 · Engineering Mathematics IV (Probability and Statistics)
Our notes
2 min readJoint 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
-
Best pick Joint probability distribution
(opens en.wikipedia.org in a new tab)
Wikipedia, Joint probability distribution, CC BY-SA 4.0 · licence
-
Covariance
(opens en.wikipedia.org in a new tab)
Wikipedia, Covariance, CC BY-SA 4.0 · licence
-
Conditional expectation
(opens en.wikipedia.org in a new tab)
Wikipedia, Conditional expectation, CC BY-SA 4.0 · licence
Watch
-
L12.5 Covariance
6 min · ≈ 27 MB · about ₦15
(opens youtube.com in a new tab)
-
L12.8 The Correlation Coefficient
7 min · ≈ 32 MB · about ₦18
(opens youtube.com in a new tab)
-
L13.2 Conditional Expectation as a Random Variable
5 min · ≈ 23 MB · about ₦13
(opens youtube.com in a new tab)
-
L13.3 The Law of Iterated Expectations
4 min · ≈ 18 MB · about ₦10
(opens youtube.com in a new tab)
-
Marginal distribution and conditional distribution | AP Statistics | Khan Academy
7 min · ≈ 32 MB · about ₦18
(opens youtube.com in a new tab)
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.