Squares of Random Numbers - 3D

If 3 real numbers are chosen randomly and uniformly from [ 0 , 1 ] , [0,1], what is the probability that the square of one of the numbers will be greater than the sum of the squares of the other two numbers?


The answer is 0.7854.

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.

2 solutions

Pranshu Gaba
Sep 10, 2015

Choosing three real numbers randomly uniformly and independently from [ 0 , 1 ] [0, 1] is equivalent to choosing a point ( x , y , z ) (x, y, z) randomly and uniformly in 3D space where 0 x , y , z 1 0 \leq x, y, z \leq 1 . In other words, we have to choose a random point in a cube of side length 1 1 with one vertex at the origin, and three edges along the coordinate axes. We will use the principles of geometric probability, P ( X ) = desired volume total volume P(X) = \frac{\text{desired volume}}{\text{total volume}} . Since the total volume in this case is 1 1 , the probability of any event is essentially equal to its volume.

We are to find the probability that the square of one of the numbers will be greater than the sum of the squares of the other two numbers. We will call this event A A . This can happen in three ways x 2 > y 2 + z 2 x^2 > y^2 + z^2 ; y 2 > z 2 + x 2 ; y^2 > z^2 + x^2; and z 2 > x 2 + y 2 z^2 > x^2 + y^2 . Since the probability distribution is symmetric in x , y x, y and z z , each region will have the same volume, say V V . These are mutually exclusive events, so there is no point in common between any two regions and the total volume of the union of these regions is 3 V 3V . Therefore P ( A ) P(A) can be written as sum of three probabilities: P ( x 2 > y 2 + z 2 ) P(x^2 > y^2 + z^2 ) + + P ( y 2 > z 2 + x 2 ) P(y^2 > z^2 + x^2 ) + + P ( z 2 > x 2 + y 2 ) P(z^2 > x^2 + y^2) . Since it is symmetric in x , y , x, y, and z z , we can rewrite it as P ( A ) P(A) = = 3 P ( z 2 > x 2 + y 2 ) 3 P(z^2 > x^2 + y^2) = = 3 V 3V

We will first find out V V , i.e. the volume of the space z 2 > x 2 + y 2 z^2 > x^2 + y^2 that lies inside the cube.

Here are two different ways to calculate V V .

Method 1: Note that the volume V V is in fact a quarter cone. Its height is 1 1 , and radius is also 1 1 .

V = 1 4 × 1 3 π r 2 h = π 12 V = \frac{1}{4} \times \frac{1}{3} \pi r^{2} h = \frac{\pi}{12}

Method 2: It turns out that it is easier to find the complement volume 1 V 1 - V using double integrals.

1 V = D min ( x 2 + y 2 , 1 ) d A 1 - V = \iint_{D} \min \left(\sqrt{ x^{ 2 } + y^{ 2 } }, 1 \right) \, dA

where D = { ( x , y ) R 2 0 x , y 1 } D = \{(x, y) \in \mathbb{R^{2}} \ \vert \ 0 \leq x, y \leq 1 \} .

We can split the min \min function:

1 V = D 1 x 2 + y 2 d A + D 2 d A 1 - V = \iint_{D_{1}} \sqrt{ x^{ 2 } + y^{ 2 } } \, dA + \iint_{D_{2}} \, dA

where D 1 = { ( x , y ) R 2 0 x 1 , 0 y 1 x 2 } D_{1} = \{(x, y) \in \mathbb{R^{2}} \ \vert \ 0 \leq x \leq 1, 0 \leq y \leq \sqrt{1 - x^2} \} and D 2 = { ( x , y ) R 2 0 x 1 , 1 x 2 y 1 } D_{2} = \{(x, y) \in \mathbb{R^{2}} \ \vert \ 0 \leq x \leq 1, \sqrt{1 - x^2} \leq y \leq 1 \}

V V evaluates to π 12 = 0.261799... \frac{\pi}{12} = 0.261799...
Thus we get P ( A ) = 3 V = π 4 0.785397 P(A) = 3V = \frac{\pi}{4}\approx \boxed{0.785397} \square

Interesting approach! However, this can be made a bit simpler, and we can avoid using Calculus. You mentioned that we care about regions such as x 2 + y 2 < z 2 x^2+y^2 < z^2 . For a fixed z , z, we know that this shape is a circle! What happens geometrically when we combine these circles in 3-dimensions over 0 z 1 ? 0\le z \le 1?

Eli Ross Staff - 5 years, 9 months ago

Log in to reply

It's a cone! Why didn't I see it before?! The calculus was so tiring.

Now I see it. There are 3 quarter cones, each with radius 1 and height 1. So total volume is 3 × 1 4 × 1 3 × 1 2 × 1 = π 4 0.785397 3 \times \frac{1}{4} \times \frac{1}{3} \times 1^{2} \times 1 = \frac{\pi}{4} \approx 0.785397 .

Pranshu Gaba - 5 years, 9 months ago

Log in to reply

Yup! Great job. Feel free to post an alternate solution with this idea, if you'd like.

Eli Ross Staff - 5 years, 9 months ago

Did it with a cone (though unfortunately, I forgot to multiply by 3 ), But I really like your approach :)

Meron Doar - 2 years, 4 months ago

Log in to reply

@Meron Doar Thanks, Meron!

Pranshu Gaba - 2 years, 4 months ago

Thanks for pointing this method out! This is way more cooler than how I solved it.

Pranshu Gaba - 5 years, 9 months ago

Why is the region V a quarter cone? Shouldn't it be a quarter paraboloid rather?

Joel Mathew - 1 year, 11 months ago

Log in to reply

Since all x , y , z x, y, z are non-negative in the cube, the inequality is the same as x 2 + y 2 < z \sqrt{x^2 + y^2} < z . Given z z , (height from the x y xy plane), the desired region is a (quarter) circle of radius z z . The radius of the circle varies linearly with z z , so it is a cone. I hope this is clear.

Pranshu Gaba - 1 year, 11 months ago

Log in to reply

@Pranshu Gaba Thanks for the explanation Pranshu. The fact that the radius of the circle varies linearly with z is something that I overlooked and it's totally clear now. Thanks!

Joel Mathew - 1 year, 11 months ago

I used a similar approach, however, because I have not learned multiple integrals yet, I didn't quite solve it the way you did. Instead, I noticed the plane parallel to the xy-plane is always a quarter-circle, and the shape formed on the xy-plane at z=1 is a circle of radius one. Because of this, we know the shape in the interval x , y , z [ 0 , 1 ] x,y,z \in [0,1] is a cone. Therefore, the probability of point z being greater than x 2 + y 2 \sqrt{x^2+y^2} is π 12 \frac{\pi}{12} . We are not done yet, since the question asks for 1 variable out of the three being greater than the square root of the sum of the squares of the other 2 variables. So there is 3 ways to choose the greater variables, so the final answer is 3 π 12 = π 4 \frac{3\pi}{12} = \frac{\pi}{4}

Kevin Tong - 4 years ago

The question is : What is the probability that the square of one of the numbers will be greater than the sum of the squares of the other two numbers? z^2 > x^2 + y^2? Isn't 0.785397 a little too high? Maybe its 1 - 0.785397?

Siva Bathula - 4 years, 10 months ago

Log in to reply

The question is not specifically asking that z 2 > x 2 + y 2 z^2>x^2+y^2 , but rather one of the variables, either x, y, or z is greater than the square root of the sum of the squares of the other 2 variables. 0.785 is too high for just one variable, which turns out to instead be 0.26.

Kevin Tong - 4 years ago

Last line it is typo it should pi/4

Vishal Mishra - 3 years, 8 months ago

Log in to reply

Thanks, corrected.

Pranshu Gaba - 3 years, 8 months ago

Could I please know why here 'V' is a quarter cone?I am a new learner in this sector.

Akash Hossain - 3 years, 2 months ago

Log in to reply

Note that the region x 2 + y 2 < z 2 x^2 + y^2 < z^2 for a fixed z z is a circle! What happens when you vary z z ? Try plugging in different values of z z in the inequality, like z = 0 , 1 2 , 1 z = 0, \frac{1}{2}, 1 and see if you find a pattern!

Pranshu Gaba - 3 years, 2 months ago

Log in to reply

I don't get it,please explain it in detail.

Akash Hossain - 3 years, 2 months ago
Muralidhar Rao
Mar 27, 2020

Since there are 3 choices to make the probabilities can be represented on a 3D sample space. It is easy to figure out intuitively that the sample space is a unit cube since each of our 3 choices : x, y and z can vary between the interval 0 and 1. Now lets consider each of the cases step by step. 1) x 2 x^{2} + y 2 y^{2} = z 2 z^{2} Either intuitively or through some Graphing calculators it is easy to observe that x^2 + y^2 = z^2 graphs out two inverted cones with common vertex at (0,0,0). All the points with x 2 x^{2} + y 2 y^{2} < z 2 z^{2} lie within the cones. This figure and our unit cube have a common volume that is equal to a quarter cone with radius = 1 and height = 1. This Common Volume has all the points that have x, y, z in the interval [0,1] and obey the condition x 2 x^{2} + y 2 y^{2} < z 2 z^{2} .

Common Volume = Volume of Quarter Cone = 1/4 × 1/3 × π r 2 πr^{2} h = 0.25 × 1/3 × π × 1 2 π × 1^{2} × 1 = π/12

Since including this there are a total of three cases that have same probability of occurring, the

Total Probability = 3 × V o l u m e o f Q u a r t e r C o n e V o l u m e o f U n i t C u b e \frac{3×Volume of Quarter Cone}{Volume of Unit Cube} = 3 × π / 12 1 \frac{3×π/12}{1} ≈ 0.7854

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...