The bounded area of the four lines 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 ] randomly and the rectangle is bounded by 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.
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.
I think you got my solution.
Let's consider a square in the x y -plane which vertices are ( 0 , 0 ) , ( 0 , 1 ) , ( 1 , 1 ) , ( 1 , 0 ) . Let's also place two points P 1 ( x 1 , y 1 ) and P 2 ( x 2 , y 2 ) randomly and uniformly in the square such that 0 ≤ x i ≤ 1 and 0 ≤ y i ≤ 1 for i ∈ { 0 , 1 } . Also x 1 ≥ x 2 and y 1 ≥ y 2 . We call E the event "at least one of the points is in the rectangle". If A is the event "point P 1 is in the rectangle" and B is the event "point P 2 is in the rectangle", than E will be
E = ( A ∪ B ) ∖ ( A ∩ B )
If event A happens, i.e. if P 1 is in the rectangle, than, given that b ≥ a and d ≥ 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
Similarly, for event 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
If the rectangle contains both points, i.e. if the event A ∩ B occurs, than, given that b ≥ a and d ≥ 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
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 .
Now, in order to minimize the probability that "neither P 1 nor 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 ) . This leads to the following problem
⎩ ⎪ ⎨ ⎪ ⎧ max P ( E ) 0 ≤ x i ≤ 1 0 ≤ y i ≤ 1
for i ∈ { 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 ) for which 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.
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.
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.)
Log in to reply
Actually he was replying to my solution since I was the first solver of this question.
Problem Loading...
Note Loading...
Set Loading...
With x 1 ≤ y 1 and x 2 ≤ 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 ) . 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 ) , ( 1 / 2 , 1 / 2 , 1 , 1 / 4 ) , ( 1 / 2 , 1 / 2 , 1 , 1 ) , ( 3 / 4 , 0 , 1 / 2 , 1 / 2 ) , ( − w + 1 , − w + 1 , w , w ) , ( 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 , 0 , 0 , 1 ) , ( 1 , 0 , 1 , 0 ) , ( 1 , 0 , 1 , 1 ) , ( 1 , 1 , 1 , 1 ) , ( w + 2 , w + 2 , − w − 1 , − w − 1 ) } where w = 2 5 − 1 . 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 ( 2 3 − 5 , 2 3 − 5 , 2 5 − 1 , 2 5 − 1 ) which gives a probability of 4 − 5 w = 2 1 3 − 5 5 ≈ 0 . 9 0 9 8 3 .
The distance between ( 1 − w , 1 − w ) and ( w , w ) is 2 ( 2 w − 1 ) = 1 0 − 8 ≈ 0 . 3 3 3 8 5 .