The problem in brief
Pick a point uniformly at random inside an equilateral triangle whose area is 1. What is the average area of the smaller triangle ? The answer must be given as an exact fraction . It is a short exercise in expected values, with a neat symmetry shortcut and a direct integral that confirm each other.
How you are scored
The judge compares your fraction with the exact answer. There is no partial credit, so we check the result in two independent ways and with a Monte Carlo simulation.
The key idea
Reduce the area to a single random number. Take as the base. Then
where is the height from . Dividing the two,
So we need the expected distance from a uniform point to the side , measured in units of the height.
Shortcut by symmetry. For every point inside the triangle, the three small triangles , and tile , so
Take expectations. By linearity, . The triangle is equilateral and is uniform, so a rotation by maps the distribution of to itself and swaps the three small triangles: the three expectations are equal. Hence
(Notice that only the symmetry between the three sides is used. For a non-equilateral triangle the answer is still : the computation below works for any triangle.)
Direct computation. The event means that lies above the line parallel to at height , that is inside a small triangle at the top, similar to with ratio . Its area is , so
Then
Equivalently, is the height of the triangle's centroid above divided by , which is the familiar : the mean of a uniform point is the centroid.

The density is largest near 0: most of the triangle's surface lies close to its base, so small areas are the most likely, and the mean is well below the midpoint .
The full solution
The answer to print is
1/3
solution.py checks it in exact arithmetic ( with Python fractions) and by Monte Carlo. It samples 2 million uniform points in the triangle with the reflection trick: draw , and if replace them by ; then (with at the origin) is uniform in .
Results
| method | value |
|---|---|
| symmetry argument | |
| integral of the tail | |
| exact fractions in Python | 1/3 |
| Monte Carlo, points |
What to remember
- Linearity of expectation plus symmetry often gives the answer with no integral at all: split the quantity into pieces that add up to something known.
- The tail formula for a non-negative is often easier than integrating against the density.
- The mean of a uniform point is the centroid, so expected linear quantities (distances to a line, coordinates) are those of the centroid.
- Check with Monte Carlo, and sample uniformly in a triangle with the reflection trick, not by rejection from a square.