Origin in a triangle of three radial random points (source code)

= Origin in a triangle of three radial random points

For three independent points drawn from rotationally symmetric distributions in the plane, with nonzero radii <almost surely>, the <probability> that their triangle contains the origin is $1/4$. The radial distributions can differ; <independence> and uniform independent angles are the essential ingredients.

Except for angle coincidences and antipodal pairs, which have <probability> zero, the origin is outside the triangle exactly when some line through the origin places all three points on the same side. Equivalently, all three angles lie in a semicircle. If this occurs, one of the three sample angles is the unique first endpoint of an oriented semicircle containing the other two. For any specified endpoint, the other independent uniform angles both fall in its next half-circle with <probability> $(1/2)^2=1/4$. The three endpoint <events> are disjoint <almost surely>, so the <probability> of containment in a semicircle is $3/4$.

The complementary <probability> is therefore $1/4$. This applies to uniform area samples in a disk and to independent uniform points on its boundary. The <event> depends on directions, so replacing one nonzero radius by another does not change it.