Probability is area
When and are independent and uniform on , the pair is uniform on the unit square, so the probability of any event is the area of the region where it holds. Draw the square, shade the region, and compute the area, usually with triangles rather than integrals.
For example, is the square minus the corner triangle above the line . That triangle has legs of length , so
With three uniforms, the same idea uses volumes in the unit cube. , and in general .
Worked example
a quarter-hour wait
Two people each arrive at a uniformly random time in the same hour and wait 15 minutes for the other. What is the probability they meet?
Show solutionHide solution
Measure time in hours. They meet when . The complement is two corner triangles, each with legs :
In general, with a waiting time that is a fraction of the window, .
Order statistics of uniforms
Drop independent uniform points on . They cut the interval into gaps, and by symmetry every gap has the same distribution, each with mean . So the -th smallest point has
The maximum has CDF and density ; the minimum has . The expected distance between two uniform points is : the middle gap of three.
Worked example
the broken stick
A stick of length 1 is broken at two independent uniform points. What is the probability the three pieces form a triangle?
Show solutionHide solution
Three lengths form a triangle exactly when each is less than (each side shorter than the sum of the other two).
The three pieces are the gaps made by two uniform points, and is uniform on the triangle . The region where all three are below is the triangle formed by joining the midpoints of the sides, which has a quarter of the area. So .
A second check: , since only one piece can exceed a half and .
When the shape is curved
Regions like or need a short integral. Integrate over one variable and keep the other as a bound:
For a function of one continuous variable, convert through the CDF: if with increasing, . For instance, if is uniform then is Exp(1), because . This is the basis of inverse-transform sampling.
Knowledge check
Three numbers are drawn independently and uniformly from [0, 1]. What is the expected value of the smallest?
Knowledge check
and are independent and uniform on . What is ?
Knowledge check
Two points are chosen independently and uniformly on a stick of length 1. What is the expected distance between them?
Practice problems
Finished reading?
Answer the 3 knowledge checks to complete this lesson (0 done).