# Probability of 3 numbers chosen between 0 and 10 being within 1 of each other

Mariyah Bell 2022-10-12 Answered
Probability of 3 numbers chosen between 0 and 10 being within 1 of each other
I was trying to find the probability that 3 real numbers uniformly chosen from 0 to 10 are within 1 of each other (the largest number minus the smallest number is at most 1).
I tried using geometric probability, and I got a region that looks like what you would get if you put one vertex of a unit cube at the origin (and orient the edges such that they line up with the positive axes), and move the corner at the origin from (0,0,0) to (9,9,9) (is this region correct?). I calculated the volume by finding the area of the one of the faces of the cube (which is 1), and multiplying it by the distance it moved (which is 9). Since there are three of these squares, the volume is 27. I then add this to the volume of the cube, which results in 28. The total volume is ${10}^{3}=1000$, so the probability is $28/1000=7/250$.
You can still ask an expert for help

• Live experts 24/7
• Questions are typically answered in as fast as 30 minutes
• Personalized clear answers

Solve your problem for the price of one coffee

• Math expert for every subject
• Pay only if we can solve it

Tirioliwo
Step 1
I agree that choosing uniformly at random 3 integers between 0 and 10 is equivalent to choosing a point in the cube (0,0,0) (10,10,10). The 3 numbers belonging to a range of size 1 does not give a simple volume easy to compute. The volume is generated by a translation of the unit cube along the global diagonal of the larger cube. This volume is not as trivial as you seem to think. It is not generated by the translation of the face of a cube along the global diagonal. The perspective is such that the object is way more complex. The object has 6 side faces and a hexagonal based pyramid. The vertices of the pyramid base are not even all of the same length.
Step 2
The probability you are looking for can be computed like this:
$\frac{1}{{10}^{3}}{\int }_{0}^{10}{\int }_{max\left(0,x-1\right)}^{min\left(10,x+1\right)}{\int }_{max\left(0,x-1,y-1\right)}^{min\left(10,x+1,y+1\right)}dzdydx$
You could derive a similar integral to compute the volume of the object we describe previously and it will be as if not more complex.
###### Did you like this example?
Brianna Schmidt
Step 1
We have to determine the volume of a particular subset $B\subset \left[0,10{\right]}^{3}$. Your computation of this volume is audacious, but absolutely correct! Here is another way:
The set A of the $\left({x}_{1},{x}_{2},{x}_{3}\right)\in B$ satisfying ${x}_{1}<{x}_{2}<{x}_{3}$ comprises a sixth of this volume. In order to determine vol(A) we let ${x}_{2}=:\lambda \in \left[0,10\right]$, and then have to find the area $a\left(\lambda \right)$ of the set ${A}_{\lambda }$ in the $\left({x}_{1},{x}_{3}\right)$-plane determined by the conditions
Step 2
Inspecting a figure shows the following: For$\lambda <1$ and $9<\lambda <10$ the set ${A}_{\lambda }$ is a trapezoid, and for $1<\lambda <9$ the set ${A}_{\lambda }$ is a triangle of area $\frac{1}{2}$. It follows that

In this way the probability p we are looking for becomes