Library · Geometric Probability · Chapter 15
Random chord longer than the radius
Problem 15.1
Let be two points chosen independently and uniformly on a circle of radius . What is the probability that the chord is longer than ?
Solution. As in Chapter 13, parametrise by angles iid uniform on . The chord length is , where is uniform.
On , the chord exceeds iff , i.e., . Since , this is equivalent to , i.e.,
The length of this set is . The sample space has length , so
A classical note. The side of an equilateral triangle inscribed in a circle of radius is . Bertrand’s paradox asks for the probability that a random chord is longer than this side, under three different sampling rules; with uniform endpoints one gets . The problem in this chapter asks a simpler question — chord longer than the radius — and the answer does not suffer any such paradox, because the “random chord” is fully specified by uniform endpoints.
import numpy as np
theta = np.random.rand(2, 10**7) * 2*np.pi
chord = 2 * np.abs(np.sin((theta[0] - theta[1]) / 2))
print(f"sim: {(chord > 1).mean():.5f} exact: {2/3:.5f}")
# sim: 0.66660 exact: 0.66667