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 and (failure rates and per year). The shading is their joint density, brightest near the origin.
- The diagonal is . Above it, part 1 fails first. The readout gives the probability of that region.
- Make larger. The density squeezes toward the 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?
2.5 years. The system survives to only if both parts do: . That's an exponential with rate 0.4, so its mean is years. In series, failure rates add, and the system is worse than either part alone.
Name it
Joint distributions
For two discrete variables, the joint PMF lists every combination; for continuous ones, a joint density gives probability as volume:
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:
The conditional distribution of given is a slice of the joint, rescaled to total 1:
Independence
and are independent exactly when the joint factors, for every and . 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 and :
- The first failure (a series system) is exponential with rate : in series, failure rates add.
- Which fails first: , the integral of the joint density over the region above the diagonal.
- The last failure (a parallel system): .
Worked example
A binary channel's input and output have joint PMF , , , . Find the marginals, the error rate and . Are and independent?
Show the solution
- Marginals. Add the cells for each value:
- Error rate. Errors are the off-diagonal cells:
- Posterior.
- Test independence. Independence would need but it's 0.48, so they're strongly dependent, which is what you want from a channel.
Answer and , the error rate is 0.07, , and and are strongly dependent.
Worked example
and have joint density on the unit square. Find the marginal density of , and check that the joint density has total probability 1.
Show the solution
- Marginal of . Integrate out :
- Check the total. so the joint density is properly normalized.
- Independence. Since isn't a product of a function of and a function of , and aren't independent.
Answer , and the joint density has total probability 1.
Worked example
and are independent and uniform on . What are and ?
Show the solution
- Probability as area. The joint density is 1 on the unit square, so each probability is the area of a region.
- . It's the triangle above the diagonal, with area .
- . It's the triangle with corners , and , with area .
Answer and .
Check
A channel's input and output have joint PMF = 0.4, = 0.05, = 0.04, and the rest. What is the error rate?
Check
Same channel: = 0.4, = 0.05, = 0.04, 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
and have joint density on the unit square. What is the marginal density at = 0.5?
Check
and are independent and uniform on .
(a)
What is ?
Check
and have joint density on the unit square.
Step 1
What is the marginal density of , ?
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?
A series system is still working at time only if every part is. With independent parts, that chance is the product of their survival chances, . Multiplying exponentials adds their exponents, so the system behaves like a single part with failure rate . Each part adds its own chance per hour of stopping everything.
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.