Problem 74: Breaking a stick ($\u2713$ $\u2713$) 1999 Paper II

A stick is broken at a point, chosen at random, along its length. Find the probability that the ratio, $R$, of the length of the shorter piece to the length of the longer piece is less than $r$, where $r$ is a given positive number.

Find the probability density function for $R$, and calculate the mean and variance of $R$.

Comments

Continuous probability distributions often seem harder than discrete distributions, for no good reason: the concepts are the same, and in fact integrals are normally easier than sums.

Here, part of the difficulty is that you have to set up the problem yourself. You have a random variable with a known distribution (corresponding to the point at which the stick is broken), but you are interested in another random variable (the ratio of lengths) derived from the ﬁrst. As always, it is best to work with the cumulative distribution functions rather than the probability density functions when deriving the distribution of the second random variable.

Solution to problem 74

Let the length of the stick be $2\ell $ and let $X$ be the length of the shorter piece of stick, so that $X\le \ell $.

The random variable $X$ is uniformly distributed on the interval $0\le x\le \ell $, so

Now $R=\frac{X}{2\ell -X}$, by deﬁnition, so

The cumulative distribution function for $R$ is given by

Let’s check that this satisﬁes the conditions for a cumulative distribution function: it should increase from 0 to 1 as $r$ goes from its smallest value, which is 0 to its greatest value, which is 1. And it does, so that’s OK.

The probability density function is the derivative of the cumulative distribution function:

Integrating to ﬁnd $\mathrm{E}\left(R\right)$ and $\mathrm{E}\left({R}^{2}\right)$ gives

and $\phantom{\rule{0.3em}{0ex}}\mathrm{Var}\phantom{\rule{0.3em}{0ex}}\left(R\right)=\left(3-4ln2\right)-{\left(2ln2-1\right)}^{2}=2-4{\left(ln2\right)}^{2}$.

Post-mortem

Note the check we made to verify that the function we found for the cumulative distribution could actually be a cumulative distribution function, which is equivalent to checking that the probability density function integrates to 1.

We should also check that the ﬁnal answers make sense. Putting numbers into a calculator gives $2ln2-1=0.23$ for the expected value, which seems reasonable; at least it is less than 1. If you sketch the density function, you see that this could easily be its average value (do it!).

For the variance, I got 0.08, which means that the ratio is likely to be in the plausible range 0.15 to 0.31.

There are a variety of other stick-breaking problems, including a rather pleasing one about breaking the stick in two places and ﬁnding the probability that the pieces form a triangle. In this case, it matters how you break the stick: you could break it once and then break one of the pieces; or you could choose two points on the stick randomly at which to break it. For an interesting discussion, see the excellent cut-the-knot web site: http://www.cut-the-knot.org/Curriculum/Probability/TriProbability.shtml