Confusion about determining distribution of sum of two random variables

  • Thread starter Thread starter psie
  • Start date Start date
  • Tags Tags
    Probability theory
Click For Summary
SUMMARY

The discussion centers on determining the probability density function (pdf) of the sum of two independent random variables, ##X## and ##Y##, where ##X## follows a uniform distribution on (0,1) and ##Y## follows a uniform distribution on (0,α). The derived density function for the sum, ##Z = X + Y##, is given by the convolution formula: $$ f_Z(z) = \frac{\min\{1,z\} - \max\{z-\alpha,0\}}{\alpha} $$ for ##z \in (0, 1 + \alpha)##. The discussion highlights confusion regarding the cases for ##α## and the validity of the density function when ##z < 0##, concluding that the density should be zero outside the specified range.

PREREQUISITES
  • Understanding of probability density functions (pdf)
  • Knowledge of convolution of random variables
  • Familiarity with uniform distributions, specifically U(0,1) and U(0,α)
  • Basic calculus for evaluating integrals
NEXT STEPS
  • Study the properties of convolution for independent random variables
  • Learn about the implications of different distributions on the sum of random variables
  • Explore the concept of piecewise functions in probability distributions
  • Investigate the behavior of density functions outside their defined ranges
USEFUL FOR

Statisticians, data scientists, and students studying probability theory who need to understand the behavior of sums of random variables and their distributions.

psie
Messages
315
Reaction score
40
Homework Statement
Let ##X## and ##Y## be independent r.v. such that ##X\in U(0,1)## and ##Y\in U(0,\alpha)##. Find the density function of ##Z=X+Y##. Remark: Note that there are two cases: ##\alpha\geq 1## and ##\alpha <1##.
Relevant Equations
The relevant equation is that the pdf of the sum of two continuous random variables is a convolution.
Let's recall the densities of ##X## and ##Y##:
\begin{align}
f_X(x)=\mathbf{1}_{(0,1)}(x), \quad f_Y(y)=\frac{1}{\alpha}\mathbf{1}_{(0,\alpha)}(y)
\end{align}
Let ##z\in (0,1+\alpha)##. So we know that ##f_Z(z)## is given by:
\begin{align}
f_Z(z)=\int_\mathbb{R} f_X(t)f_Y(z-t)\,dt
\end{align}
Both ##f_X## and ##f_Y## are zero most of the time. We check ##f_X## and ##f_Y## one by one. We start with ##f_X(t)##; it is nonzero when ##0<t<1##. We have that ##f_Y(z-t)## is nonzero when ##0<z-t<\alpha##. That means ##t<z## and ##z-\alpha<t##. We want to satisfy all these inequality at once. So that means ##\max\{z-\alpha,0\}<t<\min\{1,z\}##. Hence:
\begin{align*}
f_Z(z)=\int_{\mathbb{R}}f_X(t)f_Y(z-t)\,dt=\int^{\min\{1,z\}}_{\max\{z-\alpha,0\}}\frac{1}{\alpha}\,dt=\frac{\min\{1,z\}- \max\{z-\alpha,0\}}{\alpha}
\end{align*}

Now, what troubles me is the remark in the problem statement. I don't see that there are two cases to consider. For me, the density is simply the one given in the last equation, or?
 
Physics news on Phys.org
Consider the case ##\alpha = 1## and ##z = -1##. Your function would be
$$
f_Z(-1) = \min(1,-1) - \max(-1-1,0) = -1 - 0 = -1.
$$
Is this reasonable?
 
  • Like
Likes   Reactions: psie
psie said:
Homework Statement: Let ##X## and ##Y## be independent r.v. such that ##X\in U(0,1)## and ##Y\in U(0,\alpha)##. Find the density function of ##Z=X+Y##. Remark: Note that there are two cases: ##\alpha\geq 1## and ##\alpha <1##.
Relevant Equations: The relevant equation is that the pdf of the sum of two continuous random variables is a convolution.

Let's recall the densities of ##X## and ##Y##:
\begin{align}
f_X(x)=\mathbf{1}_{(0,1)}(x), \quad f_Y(y)=\frac{1}{\alpha}\mathbf{1}_{(0,\alpha)}(y)
\end{align}
Let ##z\in (0,1+\alpha)##. So we know that ##f_Z(z)## is given by:
\begin{align}
f_Z(z)=\int_\mathbb{R} f_X(t)f_Y(z-t)\,dt
\end{align}
Both ##f_X## and ##f_Y## are zero most of the time. We check ##f_X## and ##f_Y## one by one. We start with ##f_X(t)##; it is nonzero when ##0<t<1##. We have that ##f_Y(z-t)## is nonzero when ##0<z-t<\alpha##. That means ##t<z## and ##z-\alpha<t##. We want to satisfy all these inequality at once. So that means ##\max\{z-\alpha,0\}<t<\min\{1,z\}##. Hence:
\begin{align*}
f_Z(z)=\int_{\mathbb{R}}f_X(t)f_Y(z-t)\,dt=\int^{\min\{1,z\}}_{\max\{z-\alpha,0\}}\frac{1}{\alpha}\,dt=\frac{\min\{1,z\}- \max\{z-\alpha,0\}}{\alpha}
\end{align*}

Now, what troubles me is the remark in the problem statement. I don't see that there are two cases to consider. For me, the density is simply the one given in the last equation, or?
Nitpick: Convolutionof _Independent_ Random Variables.
 
  • Like
Likes   Reactions: psie
Orodruin said:
Consider the case ##\alpha = 1## and ##z = -1##. Your function would be
$$
f_Z(-1) = \min(1,-1) - \max(-1-1,0) = -1 - 0 = -1.
$$
Is this reasonable?
How can ##z=-1##? If ##\alpha=1##, then ##z\in (0,2)##, no?
 
psie said:
How can ##z=-1##? If ##\alpha=1##, then ##z\in (0,2)##, no?
Exactly. The distribution should be zero there. Your expression is not only non-zero, but negative.
 
  • Like
Likes   Reactions: psie
Orodruin said:
Exactly. The distribution should be zero there. Your expression is not only non-zero, but negative.
Ok. But couldn’t we simply say that the expression for ##f_Z(z)## I gave is the distribution for ##z\in (0,1+\alpha)## and ##0## otherwise?
 
psie said:
Ok. But couldn’t we simply say that the expression for ##f_Z(z)## I gave is the distribution for ##z\in (0,1+\alpha)## and ##0## otherwise?
Sure, but that is still kind of breaking it up into cases. So is using the min/max functions.
 
  • Like
Likes   Reactions: psie

Similar threads

  • · Replies 19 ·
Replies
19
Views
4K
Replies
12
Views
1K
Replies
7
Views
1K
  • · Replies 5 ·
Replies
5
Views
958
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
7
Views
2K
Replies
3
Views
2K