bugfree Icon
interview-course
interview-course
interview-course
interview-course
interview-course
interview-course
interview-course
interview-course

Data Interview Question

Independent Uniform Variables

bugfree Icon

Hello, I am bugfree Assistant. Feel free to ask me for any question related to this problem

Solution & Explanation

To solve the problem of determining the probability that 2X>Y2X > Y where XX and YY are independent uniformly distributed random variables with mean 0 and standard deviation 1, we need to first understand the properties of these distributions.

Uniform Distribution Basics

For a uniform distribution over an interval [a,b][a, b]:

  • Mean (Expected Value): E[X]=a+b2E[X] = \frac{a+b}{2}
  • Variance: Var(X)=(ba)212Var(X) = \frac{(b-a)^2}{12}
  • Standard Deviation: σ=Var(X)\sigma = \sqrt{Var(X)}

Given Conditions

  1. Mean: E[X]=0E[X] = 0
  2. Standard Deviation: σ=1\sigma = 1

From the mean condition a+b2=0\frac{a+b}{2} = 0, it follows that b=ab = -a.

Substituting into the variance formula: Var(X)=(ba)212=1Var(X) = \frac{(b-a)^2}{12} = 1 (2a)212=1\Rightarrow \frac{(2a)^2}{12} = 1 4a212=1\Rightarrow \frac{4a^2}{12} = 1 a2=3\Rightarrow a^2 = 3 a=3\Rightarrow a = \sqrt{3}

Thus, XX and YY are uniformly distributed over [3,3][-\sqrt{3}, \sqrt{3}].

Probability Calculation

We need to calculate P(2X>Y)P(2X > Y). Since XX and YY are independent, their joint distribution is the product of their marginals.

Joint PDF: fX,Y(x,y)=1(23)2=112forx,y[3,3]f_{X,Y}(x,y) = \frac{1}{(2\sqrt{3})^2} = \frac{1}{12} \quad \text{for} \quad x, y \in [-\sqrt{3}, \sqrt{3}]

Probability Expression: P(2X>Y)=3332xfX,Y(x,y)dydxP(2X > Y) = \int_{-\sqrt{3}}^{\sqrt{3}} \int_{-\sqrt{3}}^{2x} f_{X,Y}(x,y) \, dy \, dx

Integration: P(2X>Y)=3332x112dydxP(2X > Y) = \int_{-\sqrt{3}}^{\sqrt{3}} \int_{-\sqrt{3}}^{2x} \frac{1}{12} \, dy \, dx =11233(2x+3)dx= \frac{1}{12} \int_{-\sqrt{3}}^{\sqrt{3}} (2x + \sqrt{3}) \, dx

Evaluating the Integral: =112[x2+3x]33= \frac{1}{12} \left[ x^2 + \sqrt{3}x \right]_{-\sqrt{3}}^{\sqrt{3}} =112((3+33)(333))= \frac{1}{12} \left( (3 + 3\sqrt{3}) - (-3 - 3\sqrt{3}) \right) =112(6+63)= \frac{1}{12} (6 + 6\sqrt{3}) =112×12= \frac{1}{12} \times 12 =12= \frac{1}{2}

Conclusion

The probability that 2X>Y2X > Y is 0.50.5. This result is intuitive due to the symmetry and independence of the distributions of XX and YY. Essentially, the transformation 2X2X still maintains a symmetric property around zero, leading to equal chances of 2X2X being greater or less than YY.