Two random variables have a joint density. Integrating out one variable gives the density of the other; slicing the joint density at a fixed value of one gives a conditional density, and Bayes' theorem connects the two. Variables are statistically independent when the joint density factors. These tools derive the Poisson density from first principles and describe correlated noise through the jointly Gaussian density.
Physical questions often involve several random variables at once: the velocity components of an atom, or a noisevoltage measured at two times. This lecture extends the one-variable tools to two variables and introduces three new ideas: reducing to one variable, conditional probability and statistical independence (slides 1–17; the slides' closing exam problem on collision products is left for the course's problem pages; notes pp. 19–34). (MIT's material for this lecture is Greytak's slides and his probability notes, Chapter 2; this page follows them in its own words, with its own worked example. The notes' figures are not reproduced. The notes write a conditional density with a vertical bar, p(x|y); this page writes it as p(x given y), which read-aloud can say.)
Much carries over directly from one variable (notes p. 19; slides 2–3):
Joint density and distribution
px,y(ζ,η)dζdη≡prob(ζ<x≤ζ+dζ and η<y≤η+dη),Px,y(ζ,η)=∫−∞ζ∫−∞ηpx,y(ζ′,η′)dζ′dη′
In words
p sub x y ( zeta, eta ) d zeta d eta is defined as prob the quantity zeta less than x is less than or equal to zeta plus d zeta and eta less than y is less than or equal to eta plus d eta, capital P sub x y ( zeta, eta ) equals the integral from minus infinity to zeta of the integral from minus infinity to eta of p sub x y ( zeta prime, eta prime ) d zeta prime d eta prime
At the other extreme, suppose y is known. The conditional densitypx(ζ given y) is the density of x given that y has that value; in it ζ is the variable and y only a parameter (notes pp. 19–20). Knowing y restricts the possibilities to the line η=y in the plane, so px(ζ given y) must be proportional to the slice px,y(ζ,y). Integrating over ζ fixes the constant as py(y) (notes p. 20), which gives Bayes' theorem, the fundamental law of conditional probability (slides 4–6):
Bayes' theorem
p(x,y)=p(x given y)p(y)=p(y given x)p(x),p(x given y)=p(y)p(x,y)
In words
p(x, y) equals p(x given y) p(y) equals p(y given x) p(x), p(x given y) equals p(x, y) over p(y)
Read one way, it finds a conditional density by slicing the joint density and renormalizing; read the other way, it rebuilds the joint density by stacking the conditional slices, weighted by the density of the conditioning variable, much as a loaf can be reassembled from its slices, in the notes' image (notes p. 21).
Knowing one then tells nothing more about the other than its own density already did.
A uniform disk (notes pp. 22–24; slides 7–8). For points spread uniformly over a disk (the notes take radius 1, density1/π; the slides radius a), integrating across the disk gives p(x)=π21−x2 for ∣x∣≤1, and the same form for y. Their product is not 1/π, so x and y are not independent. The conditional density is p(x given y)=1/(21−y2) for ∣x∣≤1−y2: uniform along the chord at height y, as one would expect, but over a range that depends on y.
The tools are enough to derive the Poisson density quoted in Lecture 1 (notes pp. 24–27; slides 10–12). Events occur along a line with probability rΔX for one event in a short stretch ΔX, independently in different stretches.
No events (notes p. 25). Cut L into pieces dL so short that p(0)≫p(1)≫p(n>1), so p(0)≈1−rdL. The pieces are independent, so the probability of no event anywhere is the product over the L/dL pieces; taking the logarithm, lnp(0;L)≈∑(−rdL)=−rL:
(This is not a density for L: it does not integrate to 1 over L. It is one entry of the density for n, with L as a parameter.)
A recursion (notes p. 26). Extend the interval from L to L+ΔL. Having nevents in all means either n in L and none in ΔL, or n−1 in L and one in ΔL; so p(n;L+ΔL)=p(n;L)(1−rΔL)+p(n−1;L)rΔL, and in the limit
Recursion for the Poisson probabilities
dLdp(n;L)+rp(n;L)=rp(n−1;L)
In words
d over d L p(n; L) plus r p(n; L) equals r p of the quantity n minus 1; L
The solution (notes p. 27). Differentiatingp(n;L)=n!1(rL)ne−rL gives exactly rp(n−1;L)−rp(n;L), and with the boundary conditionsp(0;L)=e−rL and p(n;0)=0 for n=0 the solution is unique. The slides reach the same result another way: put n identical events into N boxes of length L/N, count the arrangements (the binomial coefficient, N choose n), and let N→∞ (slides 11–12).
A circuit with all sources off still shows a fluctuatingvoltage at high gain: thermal (Johnson) noise from the random motion of electrons, distinct from the shot noise of discrete charges (notes pp. 27–28). It has zero mean; a fairly well defined typical size; statistics that do not change in time; and a correlation timeτc, over which it changes little, with values much further apart statistically independent. Such a fluctuating signal is a random process (other examples: pressure or temperature fluctuations, thermal radiation fields, seismic background; slide 13). Sampling it at two times gives two random variables, often described by the jointly Gaussiandensity (notes p. 29; slide 14):
p( v one, v two ) equals 1 over the quantity 2 pi sigma squared the square root of 1 minus rho squared, end of root, times exp (- the quantity v one squared minus 2 rho v one v two plus v two squared, all over the quantity 2 sigma squared the quantity 1 minus rho squared, )
σ sets the size; the correlation coefficientρ, with ∣ρ∣≤1, depends on the time separation τ=∣t2−t1∣, close to 1 for short separations and falling to 0 for long ones. Contours of constant probability are ellipses with their long axis along v1=v2 for ρ>0 (along v1=−v2 for ρ<0), long and narrow as ∣ρ∣→1 and circles at ρ=0 (notes p. 29).
From it (notes pp. 31–33): each voltage alone is a zero-mean Gaussian of varianceσ2, the same at all times; the two are independent only when ρ=0; and
Conditional density of the second voltage
p(v2 given v1)=2πσ2(1−ρ2)1exp(−2σ2(1−ρ2)(v2−ρv1)2)
In words
p( v two given v one ) equals 1 over the square root of 2 pi sigma squared the quantity 1 minus rho squared, times exp (- the quantity v two minus rho v one, all squared over the quantity 2 sigma squared the quantity 1 minus rho squared, )
so ρ is the normalized correlation function. It need not stay positive: for noise from a circuit resonant near one frequency, say 500 Hz, a positive value tends to be followed by a negative one half a period (1 ms) later, and ρ(τ) oscillates as it decays (notes pp. 33–34).
Loading graph…
The page's own illustration, computed from the formulas above with σ=1 and a first reading v1=1.5σ: the conditional density of the second reading (solid) against its unconditioned density (dashed). At ρ=0 they coincide; as ρ grows, knowing v1 centres the second reading on ρv1 and narrows it.
Worked example
A triangle of probability
(a) Points are spread uniformly over the triangle 0<y<x<1, so p(x,y)=2 there. Find p(x), p(y) and p(x given y). Are x and y independent? (b) Find ⟨x⟩, ⟨y⟩ and ⟨xy⟩−⟨x⟩⟨y⟩. (c) Two noise samples are jointly Gaussian with σ=1.0 mV and ρ=0.8; the first reads 1.5 mV. Find the mean and standard deviation of the second.
(a) Densities
p(x)=∫0x2dy=2x and p(y)=∫y12dx=2(1−y), both on (0,1). Then p(x given y)=2(1−y)2=1−y1 for y<x<1: uniform, over a range set by y. Since 2x⋅2(1−y)=2, they are not independent.
(b) Averages
⟨x⟩=∫012x2dx=32, ⟨y⟩=∫012y(1−y)dy=31, and ⟨xy⟩=∫01∫0x2xydydx=∫01x3dx=41. So ⟨xy⟩−⟨x⟩⟨y⟩=41−92=361: positive, since a large y forces a large x.
(c) Correlated noise
The second reading has mean ρv1=0.8×1.5=1.2 mV and standard deviationσ1−ρ2=0.6 mV, compared with 0 and 1.0 mV without the first reading.
A quantity whose value cannot be predicted from what is known, although its behaviour follows the rules of probability. Explained in Probability: one random variable.
The difference in electric potential between two points, measured in volts: the energy each coulomb of charge gains or loses between them. Explained in Electric potential and voltage.
How much of something (mass, charge, energy, particles or probability) there is in each unit of volume, area, length or other variable. Explained in Density and pressure.
A rule giving each term from the ones before it, or a method that solves a problem by applying itself to smaller copies of it. Explained in Complex matrices and the fast Fourier transform.
The value a quantity gets closer and closer to, as near as we like, as its input approaches some value, without having to reach it. Explained in Rates of change and area under a graph.
A known value of the unknown function, or of its slope, at an edge or end, used to fix the constants in a solution. Explained in A rope with mass: differential analysis.
A departure of a quantity from its average value, usually small and random, from moment to moment or from place to place. Explained in Zero-point energy, fluctuations and surprises.
Something that has a value at every point of space, such as the temperature, the wind velocity or the electric field at each place. Explained in Newton's law of gravitation.
A measure of how widely values are spread around their average, in the same units as the values: the square root of the variance. Explained in Probability: one random variable.
Of random quantities or events: knowing one tells you nothing about the other, so their joint probability is the product of their separate probabilities.
Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).