A probability problem by Tai Ching Kan

Let A A and B B be two points on the Cartesian plane, where both the x x - and y y -coordinates of each are randomly and independently chosen from a continuous uniform distribution between 0 0 and 3 4 \frac{3}{4} .

Denote by p p the probability that the square with A A and B B as opposite vertices is entirely within the square with vertices ( 0 , 0 ) , ( 1 , 0 ) , ( 1 , 1 ) , ( 0 , 1 ) . (0,0),\ (1,0),\ (1,1),\ (0,1). If p p can be expressed as x y \frac xy , where x x and y y are coprime positive integers, find x + y x+y .


The answer is 445.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Ivo Zerkov
Feb 24, 2018

This was a really enjoyable problem!

For convenience, I scaled the entire problem up 4 3 \frac{4}{3} times, so that the smaller square has side 1 1 . The final answer, of course, doesn't change.

Let the two points, A A and B B , have coordinates a 1 , a 2 a_1,a_2 and a 3 , a 4 a_3,a_4 respectively. Note that a 1 , a 2 , a 3 , a 4 a_1,a_2,a_3,a_4 are uniformly random variables between 0 0 and 1 1 .

A natural first step is to evaluate the coordinates of the remaining two points, C C and D D .

The coordinates of the center of the square are a 1 + a 3 2 , a 2 + a 4 2 \displaystyle\frac{a_1+a_3}{2},\frac{a_2+a_4}{2} . To find, say, the x x coordinate of C C , one must add ( a 1 a 3 ) 2 + ( a 2 a 4 ) 2 2 c o s θ \displaystyle\frac{\sqrt{(a_1-a_3)^2+(a_2-a_4)^2}}{2}\cdot cos{\theta} = ( a 1 a 3 ) 2 + ( a 2 a 4 ) 2 2 ( a 4 a 2 ) ( a 1 a 3 ) 2 + ( a 2 a 4 ) 2 = a 4 a 2 2 \displaystyle\frac{\sqrt{(a_1-a_3)^2+(a_2-a_4)^2}}{2}\cdot\frac{(a_4-a_2)}{\sqrt{(a_1-a_3)^2+(a_2-a_4)^2}}=\displaystyle\frac{a_4-a_2}{2} to the center point's x x coordinate, a 1 + a 3 2 \displaystyle\frac{a_1+a_3}{2} , as seen in the figure.

Finding the other three coordinates we need in a similar fashion, we find they are:

a 1 + a 2 + a 3 a 4 2 \displaystyle\frac{a_1+a_2+a_3-a_4}{2} , a 1 + a 2 + a 4 a 3 2 \displaystyle\frac{a_1+a_2+a_4-a_3}{2} , a 1 + a 3 + a 4 a 2 2 \displaystyle\frac{a_1+a_3+a_4-a_2}{2} and a 2 + a 3 + a 4 a 1 2 \displaystyle\frac{a_2+a_3+a_4-a_1}{2} . In order for the formed square to be entirely within the one defined by 0 < x , y < 4 3 0<x,y<\frac{4}{3} , these four values have to all be inside ( 0 , 4 3 ) (0,\frac{4}{3}) .

We arrive at the following system:

{ 0 < a 1 + a 2 + a 3 a 4 < 8 3 0 < a 1 + a 2 + a 4 a 3 < 8 3 0 < a 1 + a 3 + a 4 a 2 < 8 3 0 < a 2 + a 3 + a 4 a 1 < 8 3 \begin{cases}0<a_1+a_2+a_3-a_4<\frac{8}{3}\\0<a_1+a_2+a_4-a_3<\frac{8}{3}\\0<a_1+a_3+a_4-a_2<\frac{8}{3}\\0<a_2+a_3+a_4-a_1<\frac{8}{3}\end{cases} .

Note that only one of these four constraints can be broken at a time, as you can show easily (the difference between any two of the values is at most 2 2 and if we assume any two can be less than 0 0 or more than 8 3 \frac{8}{3} , adding the two equations immediately leads to a contradiction). This will be important later.

Finding the probability density function for a 1 + a 2 + a 3 a 4 a_1+a_2+a_3-a_4 is rather straightforward using c o n v o l u t i o n \href{https://en.wikipedia.org/wiki/Convolution_of_probability_distributions}{convolution} of PDF's:

P ( a 1 + a 2 + a 3 a 4 = x ) = { 0 if x < 1 ( x + 1 ) 3 6 if 1 < x < 0 3 x 3 + 3 x 2 + 3 x + 1 6 if 0 < x < 1 3 x 3 15 x 2 + 21 x 5 6 if 1 < x < 2 ( 3 x ) 3 6 if 2 < x < 3 0 if 3 < x \displaystyle P(a_1+a_2+a_3-a_4=x)=\begin{cases}0\text{ if }x<-1\\\frac{(x+1)^3}{6}\text{ if }-1<x<0\\\frac{-3x^3+3x^2+3x+1}{6}\text{ if }0<x<1\\\frac{3x^3-15x^2+21x-5}{6}\text{ if }1<x<2\\\frac{(3-x)^3}{6}\text{ if }2<x<3\\0\text{ if }3<x\end{cases}

So the probability a constraint is satisfied is:

0 8 3 P ( x ) = 931 972 \displaystyle\int_{0}^{\frac{8}{3}} P(x)=\frac{931}{972}

Thus the probability a constraint is not satisfied is 1 931 972 = 41 972 1-\frac{931}{972}=\frac{41}{972} .

Since only one of the constraints can be broken at a time, the probability any of them is broken is simply 4 41 972 = 164 972 4\cdot\frac{41}{972}=\frac{164}{972} , making our answer 1 164 972 = 808 972 = 202 243 1-\frac{164}{972}=\frac{808}{972}=\frac{202}{243} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...