Calculate Probability: Diff $Y-X \leq 1$

  • Context: MHB 
  • Thread starter Thread starter evinda
  • Start date Start date
  • Tags Tags
    Probability
Click For Summary
SUMMARY

The discussion focuses on calculating the probability that the difference \(Y - X \leq 1\), where \(X\) is uniformly distributed over the interval \([0, 2]\) and \(Y\) is uniformly distributed over \([2, 4]\). The joint probability distribution is established as \(f_{X,Y}(x,y) = f_X(x)f_Y(y)\), with density functions \(p_1(x) = \frac{1}{2}\) for \(0 \leq x \leq 2\) and \(p_2(y) = \frac{1}{2}\) for \(2 \leq y \leq 4\). The probability is computed using the double integral \(P(Y - X \leq 1) = \iint_{y-x \leq 1} f_{X,Y}(x,y) \, dx \, dy\).

PREREQUISITES
  • Understanding of uniform distributions
  • Knowledge of joint probability distributions
  • Familiarity with double integrals
  • Basic graphing skills for visualizing probability regions
NEXT STEPS
  • Study the properties of uniform distributions in detail
  • Learn about joint probability distributions and their applications
  • Practice calculating probabilities using double integrals
  • Explore graphical representations of probability distributions
USEFUL FOR

Mathematicians, statisticians, students in probability theory, and anyone interested in understanding joint distributions and probability calculations.

evinda
Gold Member
MHB
Messages
3,741
Reaction score
0
Hello! (Wave)

Suppose that $X$ has the uniform distribution on the interval $[0,2]$ and $Y$ has the uniform distribution on the interval $[2,4]$. If $X,Y$ are independent, I want to find the probability that the difference $Y-X$ is $\leq 1$.

I have thought the following.The density function of $X$ is

$$p_1(x)=\left\{\begin{matrix}
\frac{1}{2} &, 0 \leq x \leq 2 \\
0 & , \text{ otherwise}
\end{matrix}\right.$$

while the density function of $Y$ is

$$p_2(x)=\left\{\begin{matrix}
\frac{1}{2} &, 2 \leq x \leq 4 \\
0 & , \text{ otherwise}
\end{matrix}\right.$$How can we find the probability that the difference $Y-X$ is $\leq 1$ ? Do we use the above density functions? (Thinking)
 
Physics news on Phys.org
Hey evinda! (Smile)

Yep, we use those density functions.

$X$ and $Y$ have a so called joint probability distribution $f_{X,Y}(x,y)$.
If means that:
$$P(Y-X\le 1) = \iint_{y-x\le 1} f_{X,Y}(x,y)\,dx\,dy$$
And since they are independent, we have:
$$f_{X,Y}(x,y) = f_X(x)f_Y(y) = p_1(x)p_2(y)$$
(Thinking)
 
Just for fun, here's the corresponding graph.
[DESMOS]advanced: {"version":5,"graph":{"squareAxes":false,"viewport":{"xmin":-0.5,"ymin":-0.5,"xmax":6.5,"ymax":6.5}},"expressions":{"list":[{"id":"graph1","type":"expression","latex":"\\max\\left(\\left|x-1\\right|,\\left|y-3\\right|\\right)\\le1","color":"#60a0e3"},{"id":"2","type":"expression","latex":"y-x\\le1\\left\\{\\max\\left(\\left|x-1\\right|,\\left|y-3\\right|\\right)\\le1\\right\\}","color":"#c74440"},{"id":"3","type":"expression","color":"#fa7e19"}]}}[/DESMOS]

The blue area corresponds to the part where the joint probability density is non-zero.
And the red area corresponds to the part where $Y-X \le 1$. (Thinking)
 
Nice, thank you! (Smirk)
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K