A1121 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

A11 · Lesson 21 · Joint distributions

Two random quantities at once

A receiver's input bit and output bit are both random, and the interesting question is how they relate: how often they disagree, and what a received 1 says about what was sent. Two parts in a system each have a random lifetime; the system fails at the first failure, or the last, depending on how they're connected. Questions about two random quantities need their joint distribution: the chance of every combination of values. From it you can read either one alone, one given the other, or any event that involves both.

  • Two parts with independent exponential lifetimes T1 and T2 (failure rates λ1 and λ2 per year). The shading is their joint density, brightest near the origin.
  • The diagonal is T1=T2. Above it, part 1 fails first. The readout gives the probability of that region.
  • Make λ1 larger. The density squeezes toward the T2 axis, and part 1 is more likely to fail first.

Predict

Two parts fail at random with rates 0.1 and 0.3 per year, independently. The system stops at the first failure. What is its mean lifetime?

Name it

Joint distributions

For two discrete variables, the joint PMF p(x,y)=P(X=x,Y=y) lists every combination; for continuous ones, a joint density p(x,y) gives probability as volume:

P((X,Y)∈R)=∬Rp(x,y)dxdy

This is a double integral over a region, as in A9.14.

Marginals and conditionals

The distribution of one variable alone, its marginal, sums or integrates out the other:

pX(x)=∑yp(x,y)or∫p(x,y)dy

The conditional distribution of Y given X=x is a slice of the joint, rescaled to total 1:

p(y∣x)=p(x,y)pX(x)

Independence

X and Y are independent exactly when the joint factors, p(x,y)=pX(x)pY(y) for every x and y. Then every conditional equals its marginal. One pair of values that breaks the product rule is enough to show dependence.

Two lifetimes

For independent exponential lifetimes with rates λ1 and λ2:

  • The first failure (a series system) is exponential with rate λ1+λ2: in series, failure rates add.
  • Which fails first: P(T1<T2)=λ1λ1+λ2, the integral of the joint density over the region above the diagonal.
  • The last failure (a parallel system): P(max⁡≤t)=(1−e−λ1t)(1−e−λ2t).

Worked example

A binary channel's input X and output Y have joint PMF p(0,0)=0.45, p(0,1)=0.05, p(1,0)=0.02, p(1,1)=0.48. Find the marginals, the error rate and P(X=1∣Y=1). Are X and Y independent?

Show the solution
  1. Marginals. Add the cells for each value: P(X=1)=0.02+0.48=0.50 P(Y=1)=0.05+0.48=0.53
  2. Error rate. Errors are the off-diagonal cells: 0.05+0.02=0.07
  3. Posterior. P(X=1∣Y=1)=0.480.53=0.906
  4. Test independence. Independence would need p(1,1)=0.50×0.53=0.265 but it's 0.48, so they're strongly dependent, which is what you want from a channel.

Answer P(X=1)=0.50 and P(Y=1)=0.53, the error rate is 0.07, P(X=1∣Y=1)=0.906, and X and Y are strongly dependent.

Worked example

X and Y have joint density p(x,y)=x+y on the unit square. Find the marginal density of X, and check that the joint density has total probability 1.

Show the solution
  1. Marginal of X. Integrate out y: pX(x)=∫01(x+y)dy=x+12
  2. Check the total. ∫01(x+12)dx=12+12=1 so the joint density is properly normalized.
  3. Independence. Since x+y isn't a product of a function of x and a function of y, X and Y aren't independent.

Answer pX(x)=x+12, and the joint density has total probability 1.

Worked example

X and Y are independent and uniform on [0,1]. What are P(Y>X) and P(Y>2X)?

Show the solution
  1. Probability as area. The joint density is 1 on the unit square, so each probability is the area of a region.
  2. Y>X. It's the triangle above the diagonal, with area 12.
  3. Y>2X. It's the triangle with corners (0,0), (0,1) and (12,1), with area 14.

Answer P(Y>X)=12 and P(Y>2X)=14.

Check

A channel's input and output have joint PMF p(0,0) = 0.4, p(0,1) = 0.05, p(1,0) = 0.04, and p(1,1) the rest. What is the error rate?

Check

Same channel: p(0,0) = 0.4, p(0,1) = 0.05, p(1,0) = 0.04, p(1,1) the rest. A 1 is received. What is the chance a 1 was sent?

Check

Two parts with independent exponential lifetimes, failure rates 0.1 and 0.3 per year, are in series. What is the system's mean lifetime?

Check

Same two parts, rates 0.1 and 0.3 per year. What is the chance that the first part fails first?

Check

The same two parts are now redundant: the system works while either does. What is the chance both have failed by 5 years?

Check

X and Y have joint density x+y on the unit square. What is the marginal density pX at x = 0.5?

Check

X and Y are independent and uniform on [0,1].

(a)

What is P(Y>3X)?

Check

X and Y have joint density x+y on the unit square.

Step 1

What is the marginal density of X, ∫01(x+y)dy?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Explain why

Why do failure rates add for parts in series?

Practice

Keep practicing

10 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.