Library · Geometric Probability · Chapter 30

A triangle in the disc that contains the centre

Revised Report an error

Problem 30.1

Three points are chosen independently and uniformly in the closed unit disc. What is the probability that the triangle they form contains the centre of the disc?

Solution. Write each random point Pi=(Ri,Θi)P_i = (R_i, \Theta_i) in polar coordinates: RiR_i is the distance from the origin (density 2Ri2 R_i on [0,1][0, 1]), and Θi\Theta_i is the angle (uniform on [0,2π)[0, 2\pi), independent of RiR_i).

The key observation: the event “origin inside triangle” depends only on the angles Θ1,Θ2,Θ3\Theta_1, \Theta_2, \Theta_3, not on the radii R1,R2,R3R_1, R_2, R_3.

Why. The origin lies inside △P1P2P3\triangle P_1 P_2 P_3 iff there is no half-plane through OO with all three vertices on one side. For the half-plane with normal direction v\mathbf{v}, the vertex Pi=Ri(cos⁡Θi,sin⁡Θi)P_i = R_i (\cos \Theta_i, \sin \Theta_i) is on the “positive” side iff cos⁡(Θi−arg⁡v)>0\cos(\Theta_i - \arg \mathbf{v}) > 0, a condition that depends only on Θi\Theta_i (the radius Ri>0R_i > 0 does not affect the sign). Hence origin inside the triangle iff the three angles Θ1,Θ2,Θ3\Theta_1, \Theta_2, \Theta_3 do not all lie in any semicircle of the circle [0,2π)[0, 2\pi).

Since Θ1,Θ2,Θ3\Theta_1, \Theta_2, \Theta_3 are iid uniform on [0,2π)[0, 2\pi), this is precisely the event studied in Chapter 25 (three uniform points on a circle that fail to all lie in any semicircle), with probability 14\tfrac14. Therefore P(triangle contains centre)=14.■\boxed{\mathbb{P}(\text{triangle contains centre}) = \frac{1}{4}.} \qedhere

The probability is the same whether the three points are sampled on the boundary circle (Chapter 25) or uniformly in the interior of the disc. In both cases the answer depends only on the angular coordinates, which are uniformly distributed regardless of whether the radii are fixed (on the boundary) or random (in the interior). This is a useful reduction in the theory of random convex hulls.

More generally: for nn iid uniform random points in any rotationally-symmetric planar region KK (disc, annulus, etc.), the probability that the origin lies in the convex hull equals the probability that nn iid uniform random points on S1S^1 do not all lie in a semicircle, i.e., 1−n/2n−11 - n / 2^{n-1}.

import numpy as np
# 3 uniform points in unit disc; check if origin is in triangle via signed-area.
r = np.sqrt(np.random.rand(3, 10**7))
t = np.random.rand(3, 10**7) * 2*np.pi
x, y = r*np.cos(t), r*np.sin(t)
s_tri = (x[1]-x[0])*(y[2]-y[0]) - (x[2]-x[0])*(y[1]-y[0])
s01, s12, s20 = x[0]*y[1]-x[1]*y[0], x[1]*y[2]-x[2]*y[1], x[2]*y[0]-x[0]*y[2]
cont = (np.sign(s_tri)==np.sign(s01)) & (np.sign(s_tri)==np.sign(s12)) & (np.sign(s_tri)==np.sign(s20))
print(f"sim: {cont.mean():.5f}   exact: 0.25")
# sim: 0.25027   exact: 0.25
Report an error on this page

Reports are stored by Netlify. See the privacy note.