Problem 8.1 Easy Free 2 variations

Ratio of Two Uniforms in a Band

Let XX and YY be independent Unif(0,1)\mathrm{Unif}(0,1) random variables. Find P[1≤XY≤2]\mathbb{P}\left[1 \le \dfrac{X}{Y} \le 2\right].

Work it out, then compare with the answer.

SolutionShow the worked solution

Key idea. An event {X/Y>m}\{X/Y>m\} is a wedge through the origin of the unit square, so its probability is an area.

For m≥1m\ge 1 the event {X>mY}\{X > mY\} is the region of [0,1]2[0,1]^2 below the line y=x/my=x/m. Because 1/m≤11/m\le 1, this line leaves the square through its right edge, at (1,1/m)(1,1/m). The region is therefore the triangle with vertices (0,0)(0,0), (1,0)(1,0) and (1,1/m)(1,1/m), and

P ⁣[XY>m]=12m(m≥1).\mathbb{P}\!\left[\frac{X}{Y}>m\right]=\frac{1}{2m}\qquad(m\ge 1).

The boundary lines have probability zero, so strict and non-strict inequalities give the same value. Hence

P ⁣[1≤XY≤2]=P ⁣[XY≥1]−P ⁣[XY>2]=12−14.\mathbb{P}\!\left[1\le \frac{X}{Y}\le 2\right]=\mathbb{P}\!\left[\frac{X}{Y}\ge 1\right]-\mathbb{P}\!\left[\frac{X}{Y}> 2\right]=\frac12-\frac14 .

Geometrically, this is the triangle with vertices (0,0)(0,0), (1,1/2)(1,1/2) and (1,1)(1,1) lying between the lines y=x/2y=x/2 and y=xy=x.

14\boxed{\tfrac14}

Variations

The same idea with a twist. Each solution gives only the changed step.

Variation 8.1a

A right triangle has legs of lengths AA and BB, where A,BA,B are independent Unif(0,1)\mathrm{Unif}(0,1) random variables. Let θ\theta be the angle opposite leg AA. Find P[θ>π3]\mathbb{P}\left[\theta > \dfrac{\pi}{3}\right].

Work it out, then compare with the answer.

Solution

In the right triangle, tan⁡θ=A/B\tan\theta = A/B. Since tan⁡\tan is increasing on (0,π/2)(0,\pi/2), we have θ>π/3\theta>\pi/3 if and only if A/B>3A/B>\sqrt3.

Taking m=3≥1m=\sqrt3\ge 1 in the wedge formula P[A/B>m]=1/(2m)\mathbb{P}[A/B>m]=1/(2m) gives

P ⁣[θ>π3]=123=36≈0.289.\mathbb{P}\!\left[\theta>\frac{\pi}{3}\right]=\frac{1}{2\sqrt3}=\frac{\sqrt3}{6}\approx 0.289 .
123=36\boxed{\tfrac{1}{2\sqrt3}=\tfrac{\sqrt3}{6}}
Variation 8.1b

Let X,Y∼Unif(0,1)X,Y \sim \mathrm{Unif}(0,1) be independent. Find P[X+Y≥2∣X−Y∣]\mathbb{P}[X+Y \ge 2|X-Y|].

Work it out, then compare with the answer.

Solution

First remove the absolute value by cases.

  • If Y≥XY\ge X, the condition reads X+Y≥2(Y−X)X+Y\ge 2(Y-X), that is, Y≤3XY\le 3X.
  • If X≥YX\ge Y, it reads X≤3YX\le 3Y.

Together the event is {13≤Y/X≤3}\{\tfrac13\le Y/X\le 3\}.

Its complement is the union of two disjoint wedges, {Y>3X}\{Y>3X\} and {X>3Y}\{X>3Y\}. By the wedge formula with m=3m=3, each has probability 16\tfrac16. Therefore

P[X+Y≥2∣X−Y∣]=1−2⋅16.\mathbb{P}[X+Y\ge 2|X-Y|]=1-2\cdot\frac16 .
23\boxed{\tfrac23}