University of Illinois Urbana-Champaign · FACULTY OF STATISTICS

STAT 400 Chap.6 Joint Distributions, Covariance and Correlation

- one subject, every graph, every model, every mark
5 Chapters2-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 6 of 11 · STAT 400

Joint Distributions, Covariance and Correlation

Two variables in one table

A joint probability mass function assigns a probability to every pair of values of two discrete random variables, and for STAT 400 it is usually displayed as a table. The row and column totals are the marginal distributions, which describe each variable on its own. Dividing a row by its total gives a conditional distribution, the distribution of the second variable once the first is known.

Reading a table in these three ways is the core skill of the chapter.

Independence cell by cell

Two random variables are independent when every joint probability equals the product of the matching marginals. The check is demanding: a single cell that fails the product rule proves dependence, while proving independence needs every cell.

A quick visual clue is that independent variables have proportional rows, because each row is the same conditional distribution scaled by its marginal probability.

Covariance and correlation

Covariance measures how two variables move together and is easiest to compute as E[XY] − E[X]E[Y]. Its sign shows the direction of a linear trend, but its size depends on the units.

Correlation divides by both standard deviations to give a unit-free number between −1 and 1, with the extremes reached only by exact straight-line relationships.

Independent variables have zero covariance, but zero covariance does not imply independence: a variable and its square can have zero covariance while being completely dependent, because covariance only detects linear association.

Linear combinations

The variance of aX + bY is a²Var(X) + b²Var(Y) + 2ab·Cov(X, Y). The covariance term is where most mistakes happen.

For independent variables it vanishes, and then the variance of a difference equals the variance of a sum: variances add in both cases.

The same formula extends to many variables and underlies the next chapter, where the variance of a sample mean is σ²/n.

Reading a correlation value

A correlation near 0.4, as in a moderately related pair of scores, says that above-average values of one variable tend to come with above-average values of the other, but with a lot of scatter.

It does not say that one causes the other, and it says nothing about curved relationships.

Because correlation has no units, rescaling either variable, for example converting minutes to hours, leaves it unchanged, while the covariance changes by the same factor as the rescaling.

How it is assessed

The course objectives ask you to compute probabilities from a discrete bivariate table, to explain the terms joint and marginal, and to calculate and interpret covariance and correlation.

Expect a table-reading question that ends with an interpretation sentence.

In this chapter

What this chapter covers

  • 01

    Joint probability tables

  • 02

    Marginal and conditional distributions

  • 03

    Independence of random variables

  • 04

    Covariance and correlation

  • 05

    Variance of linear combinations

Worked example · free

Covariance from a small joint table

Q [6 marks]. AskSia-authored practice. X and Y each take values 0 and 1 with P(0,0) = 0.35, P(0,1) = 0.15, P(1,0) = 0.10 and P(1,1) = 0.40. Find the marginals, Cov(X, Y) and decide whether X and Y are independent. Our weighting helps you self-mark; it is not an official allocation.
Figure.Figure. Joint pmf with row and column totals. Cell shading is proportional to probability; the margins are the row and column sums.yxy = 0y = 1f_X(x)x = 00.200.100.30x = 10.150.250.40x = 20.050.250.30f_Y(y)0.400.60
Figure. Joint pmf with row and column totals. Cell shading is proportional to probability; the margins are the row and column sums.
  • 2Marginals: P(X = 1) = 0.50 and P(Y = 1) = 0.55.
  • 2E[XY] = P(1,1) = 0.40, so Cov(X, Y) = 0.40 − 0.50(0.55) = 0.125.
  • 2Independence fails: P(1,1) = 0.40 but P(X = 1)P(Y = 1) = 0.275.
The marginals are 0.50 and 0.55, Cov(X, Y) = 0.125, and X and Y are dependent with a positive association.
Sia tip — For indicator variables, E[XY] is simply the probability of the (1, 1) cell, which saves a full sum.
Glossary

Key terms

Joint PMF
The function giving P(X = x, Y = y) for every pair of values of two discrete random variables.
Marginal Distribution
The distribution of one variable alone, obtained by summing the joint pmf over the other variable.
Covariance
The expected product of deviations from the means, E[XY] − E[X]E[Y], measuring linear co-movement in the variables' units.
Correlation Coefficient
Covariance divided by the product of the standard deviations, a unit-free measure of linear association between −1 and 1.
FAQ

Joint Distributions, Covariance and Correlation FAQ

Does zero correlation mean two variables are independent?

No. Zero correlation rules out a linear trend only. A variable and its square, for a distribution symmetric about zero, have zero correlation even though one determines the other.

Why do variances add for X − Y?

The coefficient of Y is −1, and it enters the variance formula squared, giving +1. Only the covariance term changes sign, and it is zero for independent variables.

How do I get a conditional distribution from a joint table?

Take the row or column for the value you are conditioning on and divide each entry by that row or column total, so the conditional probabilities sum to one.

Study strategy

Exam move

Build two joint tables yourself, one independent and one dependent, and compute marginals, covariance and correlation for each. Then write one sentence interpreting the sign and size of each correlation in context.

Working through Joint Distributions, Covariance and Correlation in STAT 400? Sia is AskSia’s AI Statistics tutor — ask any STAT 400 Joint Distributions, Covariance and Correlation question and get a clear, step-by-step explanation grounded in how STAT 400 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 6 of your University of Illinois Urbana-Champaign subjects - and 1,000+ Bibles across every Australian university.
Sia - your STAT400 tutor, unlimited, worked the way the exam marks it
The full 2-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works