Sum of parabolic random variables

Suppose X is an RV with PDF given by:

fX(x)={34(1x2)x[1,1]0otherwise

Let Y be an independent copy of X. So fY=fX, but Y is independent of X.

Find the PDF of X+Y.

Solution

The graph of fX(wx) matches the graph of fX(x) except (i) flipped in a vertical mirror, (ii) shifted by w to the left.

When w[2,0], the integrand is nonzero only for x[1,w+1]:

fX+Y(w)=(34)21w+1(1(wx)2)(1x2)dx=916(w5302w334w23+1615)

When w[0,+2], the integrand is nonzero only for x[w1,+1]:

fX+Y(w)=(34)2w1+1(1(wx)2)(1x2)dx=916(w530+2w334w23+1615)

Final result is:

fX+Y(w)={916(w5302w334w23+1615)w[2,0]916(w530+2w334w23+1615)w[0,2]0otherwise

center

Discrete PMF formula for a sum

Verify the discrete formula for the PMF of a sum. (Apply the general formula for the PMF of g(X,Y).)

Vandermonde’s identity from the binomial sum rule

Show that this “Vandermonde identity” holds for positive integers n,m,:

j+k=(nj)(mk)=(n+m)

Hint: The binomial sum rule is:

Bin(n,p)+Bin(m,p)Bin(n+m,p)

Set p=q=1/2. Compute the PMF of the left side using convolution. Compute the PMF of the right side directly. Set these PMFs equal.

PDF of sums practice

Suppose X is an RV with density:

fX={2xx[0,1]0otherwise

Suppose Y is uniform on [0,1] and independent of X.

Find the PDF of X+Y. Sketch the graph of this PDF.

Solution

(1) Write the CDF of W=X+Y as a double integral:

FW(w)=P[X+Yw]=x+ywfX,Ydxdy

The joint density on the unit square x[0,1],y[0,1] is:

fX,YfXfY2x12x

There is positive density in the region x+yw only for xw (otherwise y<0).

  • When w[0,1], there is positive density in the region (only) when ywx.
  • When w[1,2], there is positive density in the region whenever y1.

(2) Evaluate FW(w) for w[0,1]:

Here x[0,w] and wx1, so y[0,wx].

FW(w)=0w0wx2xdydx0w2x(wx)dx[wx22x33]0ww32w33w33

Differentiate:

fW(w)=ddww33w2

(3) Evaluate FW(w) for w[1,2]:

Now x ranges over [0,1]. Split by whether the y-bound is 1 or wx:

  • x[0,w1]: wx1, so y[0,1]
  • x[w1,1]: wx<1, so y[0,wx]
FW(w)=0w1012xdydx+w110wx2xdydx0w12xdx+w112x(wx)dx(w1)2+[wx22x33]w11(w1)2+(w23)(w(w1)22(w1)33)13x3+w213

(4) Differentiate for the final PDF:

fW(w)=ddw(13x3+w213)w2+2w

Therefore:

fX+Y(w)={w2w[0,1]w2+2ww[1,2]0otherwise

Convolution practice

Suppose X is an RV with density:

fX={2xx[0,1]0otherwise

Suppose Y is uniform on [0,1] and independent of X.

Find the PDF of X+Y. Sketch the graph of this PDF.

Solution

(1) Set up the convolution integral:

fX+Y(w)=+fX(wy)fY(y)dy

Since fY(y)=1 on [0,1], this reduces to 01fX(wy)dy. The integrand fX(wy)=2(wy) is nonzero when wy[0,1], i.e. y[w1,w]. Intersecting with [0,1] gives the limits of integration.


(2) Evaluate for w[0,1]:

Integration region: y[0,w].

fX+Y(w)=0w2(wy)dy[2wyy2]0w2w2w2w2

(3) Evaluate for w[1,2]:

Integration region: y[w1,1].

fX+Y(w)=w112(wy)dy[2wyy2]w11(2w1)(2w(w1)(w1)2)2w1(w21)w2+2w

(4) Write the final piecewise PDF:

fX+Y(w)={w2w[0,1]w2+2ww[1,2]0otherwise

Exp plus Exp equals Erlang - Without Convolution

Let us verify this formula by direct calculation:

Exp(λ)+Exp(λ)Erlang(2,λ)

Solution

Let X,YExp(λ) be independent RVs, and let W=X+Y.

Therefore:

fX,Y(x,y)=λeλxλeλy=λ2eλ(x+y)x0,y0

(1) Write the CDF as a double integral over the region x0,y0,x+yw:

For w0, the region is x[0,w], y[0,wx].

FW(w)=0w0wxλ2eλ(x+y)dydx

(2) Evaluate the inner integral:

0wxλ2eλxeλydyλ2eλx[1λeλy]0wxλeλx(1eλ(wx))λ(eλxeλw)

(3) Evaluate the outer integral:

FW(w)=λ0w(eλxeλw)dxλ[1λeλxxeλw]0wλ[(1λeλwweλw)(1λ)]1eλwλweλw

(4) Differentiate for the PDF:

fW(w)=ddw(1eλwλweλw)λeλwλeλw+λ2weλwλ2weλw

This is the Erlang(2,λ) density function:

λ(1)!t1eλt|=2

Exp plus Exp equals Erlang - With Convolution

Let us verify this formula by direct calculation:

Exp(λ)+Exp(λ)Erlang(2,λ)

Solution

Let X,YExp(λ) be independent RVs.

Therefore:

fX=fY={λeλxx00otherwise

Now compute the convolution, assuming w0:

fX+Y(w)=+fX(wx)fY(x)dx0wλ2eλ(wx)eλxdxλ20weλwdxλ2weλw

This is the Erlang PDF:

fX(t)=λ(1)!t1eλt|=2

Combining normals

Suppose X𝒩(40,16), Y𝒩(15,9). Find the probability that X2Y.

Solution

Define W=X2Y. Using the formulas above, we see W𝒩(10,52), or W52Z+10 for a standard normal Z. Then:

P[X2Y]P[W0]P[Z1052]P[Z1.39]0.918