The rectangle prefers to live without the dots!

The bounded area of the four lines x = 0 , x = 1 , y = 0 , y = 1 x=0,x=1,y=0,y=1 is a unit square.I randomly choose a rectangle inside it(Choose ( a , b , c , d ) [ 0 , 1 ] (a,b,c,d)\in[0,1] randomly and the rectangle is bounded by x = a , x = b , y = c , y = d x=a,x=b,y=c,y=d ).

Before I chose the rectangle,I drew two points in the unit square,and I wanted to minimize the probability of "neither points are in the rectangle".Where should I choose the points?Answer as the distance of the 2 points.


The answer is 0.33385.

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.

3 solutions

Patrick Corn
Oct 18, 2018

With x 1 y 1 x_1 \le y_1 and x 2 y 2 x_2 \le y_2 (WLOG by reflection), the probability that we want to minimize is 1 x 1 y 1 ( 1 x 1 ) ( 1 y 1 ) x 2 y 2 ( 1 x 2 ) ( 1 y 2 ) + x 1 y 1 ( 1 x 2 ) ( 1 y 2 ) . 1 - x_1y_1(1-x_1)(1-y_1) - x_2y_2(1-x_2)(1-y_2) + x_1y_1(1-x_2)(1-y_2). I am not sure if there is a clever way to do this minimization; I certainly did it uncleverly. I used my favorite computer algebra package to compute the solution set of the simultaneous set of equations given by the vanishing of the four partial derivatives of this polynomial, and it returned { ( 0 , 0 , 0 , 0 ) , ( 0 , 0 , 0 , 1 ) , ( 0 , 0 , 1 / 2 , 1 / 2 ) , ( 0 , 0 , 1 , 0 ) , ( 0 , 0 , 1 , 1 ) , ( 0 , 3 / 4 , 1 / 2 , 1 / 2 ) , ( 0 , 1 , 0 , 1 ) , ( 0 , 1 , 1 , 0 ) , ( 0 , 1 , 1 , 1 ) , ( 1 / 2 , 1 / 2 , 1 / 4 , 1 ) , ( 1 / 2 , 1 / 2 , 1 , 1 / 4 ) , ( 1 / 2 , 1 / 2 , 1 , 1 ) , ( 3 / 4 , 0 , 1 / 2 , 1 / 2 ) , ( 1 , 0 , 0 , 1 ) , ( 1 , 0 , 1 , 0 ) , ( 1 , 0 , 1 , 1 ) , ( 1 , 1 , 1 , 1 ) , ( w + 1 , w + 1 , w , w ) , ( w + 2 , w + 2 , w 1 , w 1 ) } \begin{aligned} \{ (0, 0, 0, 0), (0, 0, 0, 1), (0, 0, 1/2, 1/2), (0, 0, 1, 0), (0, 0, 1, 1), & (0, 3/4, 1/2, 1/2), (0, 1, 0, 1), (0, 1, 1, 0), (0, 1, 1, 1), (1/2, 1/2, 1/4, 1), \\ (1/2, 1/2, 1, 1/4), (1/2, 1/2, 1, 1), (3/4, 0, 1/2, 1/2), & (1, 0, 0, 1), (1, 0, 1, 0), (1, 0, 1, 1), (1, 1, 1, 1), \\ (-w + 1, -w + 1, w, w), & (w + 2, w + 2, -w - 1, -w - 1) \} \end{aligned} where w = 5 1 2 . w = \frac{\sqrt{5}-1}2. We can throw out all the solutions where one of the points is on the border of the square, and the last solution has coordinates that are too large, so that leaves ( 3 5 2 , 3 5 2 , 5 1 2 , 5 1 2 ) \left( \frac{3-\sqrt{5}}2, \frac{3-\sqrt{5}}2, \frac{\sqrt{5}-1}2, \frac{\sqrt{5}-1}2 \right) which gives a probability of 4 5 w = 13 5 5 2 0.90983. 4-5w = \frac{13-5\sqrt{5}}2 \approx 0.90983.

The distance between ( 1 w , 1 w ) (1-w,1-w) and ( w , w ) (w,w) is 2 ( 2 w 1 ) = 10 8 0.33385 . \sqrt{2}(2w-1) = \sqrt{10}-\sqrt{8} \approx \fbox{0.33385}.

I think you got my solution.

D K - 2 years, 7 months ago
Nicola Mignoni
Sep 13, 2018

Let's consider a square in the x y xy -plane which vertices are ( 0 , 0 ) (0,0) , ( 0 , 1 ) (0,1) , ( 1 , 1 ) (1,1) , ( 1 , 0 ) (1,0) . Let's also place two points P 1 ( x 1 , y 1 ) P_1(x_1,y_1) and P 2 ( x 2 , y 2 ) P_2(x_2,y_2) randomly and uniformly in the square such that 0 x i 1 0\leq x_i \leq 1 and 0 y i 1 0\leq y_i \leq 1 for i { 0 , 1 } i \in \{0,1\} . Also x 1 x 2 x_1 \geq x_2 and y 1 y 2 y_1 \geq y_2 . We call E E the event "at least one of the points is in the rectangle". If A A is the event "point P 1 P_1 is in the rectangle" and B B is the event "point P 2 P_2 is in the rectangle", than E E will be

E = ( A B ) ( A B ) \displaystyle E=(A \cup B)\setminus (A\cap B)

If event A A happens, i.e. if P 1 P_1 is in the rectangle, than, given that b a b \geq a and d c d \geq c , we'll have

{ 0 a x 1 x 1 b 1 0 c y 1 y 1 d 1 P ( A ) = ( 1 x 1 ) x 1 ( 1 y 1 ) y 1 \displaystyle \begin{cases} 0 \leq a \leq x_1 \\ x_1 \leq b \leq 1 \\ 0 \leq c \leq y_1 \\ y_1 \leq d \leq 1 \end{cases} \hspace{5pt} \Longrightarrow \hspace{5pt} \mathbb{P}(A)=(1-x_1)x_1(1-y_1)y_1

Similarly, for event B B

{ 0 a x 2 x 2 b 1 0 c y 2 y 2 d 1 P ( B ) = ( 1 x 2 ) x 2 ( 1 y 2 ) y 2 \displaystyle \begin{cases} 0 \leq a \leq x_2 \\ x_2 \leq b \leq 1 \\ 0 \leq c \leq y_2 \\ y_2 \leq d \leq 1 \end{cases} \hspace{5pt} \Longrightarrow \hspace{5pt} \mathbb{P}(B)=(1-x_2)x_2(1-y_2)y_2

If the rectangle contains both points, i.e. if the event A B A \cap B occurs, than, given that b a b \geq a and d c d \geq c , we'll have

{ 0 a x 1 x 2 b 1 0 c y 2 y 1 d 1 P ( A B ) = ( 1 x 2 ) x 1 ( 1 y 1 ) y 2 \displaystyle \begin{cases} 0 \leq a \leq x_1 \\ x_2 \leq b \leq 1 \\ 0 \leq c \leq y_2 \\ y_1 \leq d \leq 1 \end{cases} \hspace{5pt} \Longrightarrow \hspace{5pt} \mathbb{P}(A \cap B)=(1-x_2)x_1(1-y_1)y_2

Hence

P ( E ) = P ( A ) + P ( B ) P ( A B ) = ( 1 x 1 ) x 1 ( 1 y 1 ) y 1 + ( 1 x 2 ) x 2 ( 1 y 2 ) y 2 ( 1 x 2 ) x 1 ( 1 y 1 ) y 2 \displaystyle \mathbb{P}(E)=\mathbb{P}(A)+\mathbb{P}(B)-\mathbb{P}(A \cap B)=(1-x_1)x_1(1-y_1)y_1+(1-x_2)x_2(1-y_2)y_2-(1-x_2)x_1(1-y_1)y_2 .

Now, in order to minimize the probability that "neither P 1 P_1 nor P 2 P_2 are in the rectangle", we can maximize the probability that "at least one of the two point is in the rectangle". In other words we can maximize P ( E ) \mathbb{P}(E) . This leads to the following problem

{ max P ( E ) 0 x i 1 0 y i 1 \displaystyle \begin{cases} \text{max} \mathbb{P}(E) \\ 0 \leq x_i \leq 1 \\ 0 \leq y_i \leq 1 \end{cases}

for i { 0 , 1 } i \in \{0,1\} . I solved it via graphical methods and found a couple of point for which the object fuction reached its highest value, than I evaluated the distance. I suspect there's at least a couple of two points ( P 1 , P 2 ) (P_1,P_2) for which P ( E ) \mathbb{P}(E) is maximum, due to the symmetry of the square, but I don't have any proof of this. It would be also interesting if someone could provide an analytical solution for the non-linear optimization problem (if there is any).

Oh!I didn't thought about this?Really amazing work.

D K - 2 years, 7 months ago
D K
Jul 29, 2018

Draw the graph of the equations.You will get the solution on your own.I am happy to be the first solver of this question. Hint:Use the meaning of the statement to minimize the probability of neither points in the rectangle and analyse this beautiful Cartesian system.Cheers.

Can you say a bit more? Like where the two points are, and what the equations are.

Jon Haussmann - 2 years, 10 months ago

Log in to reply

Well, I can tell you what the points are, even if I don't have a particularly elegant way to find them. (See my solution.)

Patrick Corn - 2 years, 7 months ago

Log in to reply

Actually he was replying to my solution since I was the first solver of this question.

D K - 2 years, 7 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...