# Birds on a Wire

### By Stuart Anderson

I was recently looking at the solutions posted here to the bird on the wire problem, and was particularly struck by the third solution, which did not involve the notion of an exponential distribution at all. I found it somewhat hard to follow, so I started looking at the assumptions behind the other solutions, to see why you could solve the problem without the exponential distribution.

Here is the surprising result: part of the solution REALLY IS independent of the distribution, although the final answer does depend on the distribution.

Let $L$ be the length of an interval between adjacent birds. Suppose that the $P(L \lt x) = F(x)$ for an arbitrary cumulative probability function $F.$ Then the density function $f(x) = F'(x)$ gives the probability density for the interval to have length $x.$

A given interval will be painted twice if it is "small" i.e. shorter that both its neighbors, once if "medium", i.e. shorter than one and longer than the other neighbor, and not painted if "big", i.e. longer than both neighbors. What is the probability of each case and its expected length?

For the interval that is longer than its neighbors, the probability is

$\displaystyle \int_0^{\infty}(F(x)\cdot F(x)\cdot f(x))dx = \int_0^1(F^2)dF = \frac{1}{3}.$

Similar calculations for the other two cases, using $1-F(x)$ in place of $F(x)$ when we want the neighboring interval to be longer instead of shorter, give the same result. This is rather surprising in itself: regardless of the distribution, the probabilities $P(big),$ $P(medium),$ and $P(small),$ are all exactly $\displaystyle \frac{1}{3}.$

The expected length of an interval that is longer than both neighbors is

$\displaystyle \frac{\displaystyle \int_0^{\infty}(x\cdot F(x)\cdot F(x)\cdot f(x))dx}{\displaystyle \left(\frac{1}{3}\right)},$

which we integrate by parts (very carefully!): let $u=x,$ and $\displaystyle dv = (F(x))^2\cdot f(x)dx = \frac{d((F(x))^3 - 1)}{3}.$ (We can choose any antiderivative we like when integrating by parts, and this one allows the $u\cdot v$ term to vanish at ${\infty}.)$ Then we get

$(x\cdot (F^3 - 1))\big|_0^{\infty} - \int_0^{\infty}(F^3-1)dx = \int_0^{\infty}(1-F^3)dx$

if $F(x)$ approaches $1$ sufficiently quickly for the leftmost term to vanish and the integral to converge. Let's call this number $B$ (for "Big" interval).

A similar but simpler calculation shows that the expected length of an arbitrary interval (no conditions as to its size relative to its neighbors) gives $\displaystyle \int_0^{\infty}(1-F)dx.$ Let's call this number $A$ (for "Average" interval).

Since all but the "big" intervals are painted, the expected fraction painted is $\displaystyle \frac{1 - B\cdot P(Big)}{A} = 1 - \frac{B}{3A}.$ When $F(x) = 1- e^{-kx}$ is the exponential distribution,

$\displaystyle B = \int_0^{\infty}(3e^{-kx} - 3e^{-2kx} + e^{-3kx})dx = \frac{\displaystyle 3 - \frac{3}{2} + \frac{1}{3}}{k} = \frac{11}{6k},$

while $\displaystyle A = \int_0^{\infty}(e^{-kx})dx = \frac{1}{k}.$ Therefore, the expected fraction painted is $\displaystyle 1-\frac{\displaystyle \frac{11}{6k}}{\displaystyle \frac{3}{k}} = 1 - \frac{11}{18} = \frac{7}{18}.$

A more detailed calculation shows that $\displaystyle \frac{2}{18}$ if the length is painted twice (small intervals), $\displaystyle \frac{5}{18}$ is painted once (medium) and $\displaystyle \frac{11}{18}$ is unpainted (big intervals). Since these types of intervals occur with equal probability, this also shows that the ratio of mean sizes of small, medium, and big intervals is $2:5:11.$ Of course, if we took $\displaystyle \frac{1}{3}$ of the intervals completely at random, we would expect them to cover $\displaystyle \frac{1}{3} = \frac{6}{18}$ of the wire, so we can extend the ratio to include the overall average length: $S:M:B:A = 2:5:11:6.$ Therefore, medium intervals are slightly shorter than the average length.

### Geometric Probability

- Geometric Probabilities
- Are Most Triangles Obtuse?
- Barycentric Coordinates and Geometric Probability
- Bertrand's Paradox
- Birds On a Wire (Problem and Interactive Simulation)
- Buffon's Noodle Simulation
- Averaging Raindrops - an exercise in geometric probability
- Rectangle on a Chessboard: an Introduction
- Marking And Breaking Sticks
- Random Points on a Segment
- Semicircle Coverage
- Hemisphere Coverage
- Overlapping Random Intervals
- Random Intervals with One Dominant
- Points on a Square Grid
- Flat Probabilities on a Sphere
- Probability in Triangle

|Contact| |Front page| |Contents| |Probability| |Up|

Copyright © 1996-2018 Alexander Bogomolny

65649818