Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

10.4 Chapter Summary

Interactive Tools:

  1. Probability as Volume Visualizer - Use this tool to visualize probabilities as volumes under a joint distribution.

  2. Conditional Expectation Visualizer - Use this tool to visualize conditional expectations.

  3. Convolution Visualizer - Use this tool to visualize convolutions.

Iterated Integrals and Sums

All definitions and results are available in Section 10.1.

  1. The double integral of a surface f(x,y)f(x,y) over a region R\mathcal{R} in the x,yx,y plane returns the volume, under the surface, over the region.

    • If f(x,y)f(x,y) is equal to a constant, cc, over R\mathcal{R} then the the volume equals c×area(R)c \times \text{area}(\mathcal{R}).

  2. Double integrals can be computed using iterated integrals:

    [x,y]Rf(x,y)dxdy={xR(y such that [x,y]Rf(x,y)dy)dxyR(x such that [x,y]Rf(x,y)dx)dy\iint_{[x,y] \in \mathcal{R}} f(x,y) dx dy = \begin{cases} & \int_{x \in \mathcal{R}} \left(\int_{y \text{ such that } [x,y] \in \mathcal{R}} f(x,y) dy \right) dx \\ & \int_{y \in \mathcal{R}} \left(\int_{x \text{ such that } [x,y] \in \mathcal{R}} f(x,y) dx \right) dy \end{cases}
    • Note that, when expanded as an iterated integral, the inner integral treats the outer variable as if it were constant.

    • The bounds of the inner integral may depend on the value of the outer variable.

  3. Given a rectangular region, R=[a,b]×[c,d]\mathcal{R} = [a,b] \times [c,d]:

    [x,y][a,b]×[c,d]f(x,y)dxdy={x=ab(y=cdf(x,y)dy)dxy=cd(x=abf(x,y)dx)dy\iint_{[x,y] \in [a,b] \times [c,d]} f(x,y) dx dy = \begin{cases} & \int_{x =a}^b \left(\int_{y = c}^d f(x,y) dy \right) dx \\ & \int_{y =c}^d \left(\int_{x = a}^b f(x,y) dx \right) dy \end{cases}
    • If f(x,y)=g(x)×h(y)f(x,y) = g(x) \times h(y) then a double integral over a rectangle will factor into a product of univariate integrals:

    [x,y][a,b]×[c,d]f(x,y)dxdy=(x=abg(x)dx)×(y=cdh(y)dy)\iint_{[x,y] \in [a,b] \times [c,d]} f(x,y) dx dy = \left( \int_{x = a}^b g(x) dx \right) \times \left(\int_{y = c}^d h(y) dy \right)
  4. All of the same results hold for double sums

Conditional and Iterated Expectation

All definitions and results are available in Section 10.2.

  1. The conditional expectation of g(X,Y)g(X,Y) over YY given that X=xX = x is:

    EYX=x[g(x,Y)]=E[g(X,Y)X=x]={all yg(x,y)Pr(Y=yX=x) if discreteall yg(x,y)fYX=x(y) if continuous\mathbb{E}_{Y|X = x}[g(x,Y)] = \mathbb{E}[g(X,Y)|X = x] = \begin{cases} \sum_{\text{all } y} g(x,y) \text{Pr}(Y = y|X = x) & \text{ if discrete} \\ \int_{\text{all } y} g(x,y) f_{Y|X = x}(y) & \text{ if continuous} \end{cases}
    • The expression E(a)[(b)]\mathbb{E}_{\textbf{(a)}}[\textbf{(b)}] should be read “the expectation over (a) of (b).” A conditioning statement may appear in either the subscript, or inside the square brackets.

    • In general, the conditional expectation of one variable, given another, varies depending on the conditioning statement. For example, yˉ(x)=E[YX=x]\bar{y}(x) = \mathbb{E}[Y|X = x] is typically a function of xx.

  2. A joint expectation over two variables can be expressed as an iterated expectation:

    EX,Y[g(X,Y)]=EX[EYX[g(X,Y)]]=EY[EXY[g(X,Y)]]\mathbb{E}_{X,Y}[g(X,Y)] = \mathbb{E}_{X}[\mathbb{E}_{Y|X}[g(X,Y)]] = \mathbb{E}_{Y}[\mathbb{E}_{X|Y}[g(X,Y)]]
    • An iterated expectation expands a joint expectation as a nested pair of expectations.

    • This rule expresses a joint average as an average of a conditional average.

    • In the case when g(X,Y)=Yg(X,Y) = Y, E[Y]=EX[E[YX]]\mathbb{E}[Y] = \mathbb{E}_X[\mathbb{E}[Y|X]], and when g(X,Y)=Xg(X,Y) = X, E[X]=EY[E[XY]].\mathbb{E}[X] = \mathbb{E}_Y[\mathbb{E}[X|Y]].

  3. If XX and YY are independent random variables then:

    EX,Y[g(X)×h(Y)]=EX[g(X)]×EY[h(Y)]\mathbb{E}_{X,Y}[g(X) \times h(Y)] = \mathbb{E}_{X}[g(X)] \times \mathbb{E}_{Y}[h(Y)]
    • This rule does not apply when XX and YY are dependent variables

Integration on Manifolds

All definitions and results are available in Section 10.3.

  1. A manifold in the x,yx,y plane is a connected set of points, [x,y][x,y] that form a smooth (continuous, differentiable) curve that does not cross itself.

    • The set of all [x,y][x,y] such that x+y=sx + y = s is a manifold. It is equivalent to the line y=sxy = s - x.

    • The set of all [x,y][x,y] such that x2+y2=r2x^2 + y^2 = r^2 is a manifold. It is equivalent to the circle with radius rr.

  2. The marginal mass/density function of the sum of two random variables is expressed as a sum/integral over a line. Given S=X+YS = X + Y:

    Pr(S=s)=all xPr(X=x,Y=sx)\text{Pr}(S = s) = \sum_{\text{all }x} \text{Pr}(X = x,Y = s - x)

    and

    fS(s)=all xfX,Y(x,sx)dx.f_{S}(s) = \int_{\text{all }x} f_{X,Y}(x,s - x) dx.
    • If XX and YY are independent, then the marginal mass/density function of SS is a convolution of the marginal mass/density functions of XX and YY:

    Pr(S=s)=all xPMFX(x)PMFY(sx)=[PMFXPMFY](s)\text{Pr}(S = s) = \sum_{\text{all }x} \text{PMF}_X(x) \text{PMF}_Y(s - x) = \left[\text{PMF}_X * \text{PMF}_Y \right](s)

    and

    fS(s)=all xfX(x)fY(sx)dx=[fXfY](s).f_{S}(s) = \int_{\text{all }x} f_{X}(x) f_Y(s - x) dx = [f_X * f_Y](s).
  3. To integrate over a circular region, we use an iterated integral in polar coordinates:

    all x2+y2r2fX,Y(x,y)dxdy=r=0r[θ=02πfX,Y(rcos(θ),rsin(θ))dθ]rdr.\iint_{\text{all } x^2 + y^2 \leq r_*^2} f_{X,Y}(x,y) dx dy = \int_{r = 0}^{r_*} \left[\int_{\theta = 0}^{2 \pi} f_{X,Y}(r \cos(\theta), r \sin(\theta)) d\theta \right] r dr.
    • The weighting by rr before drdr accounts for the fact that a circle, of radius rr, has circumference proportional to rr.

    • If fX,Y(x,y)=g(r)f_{X,Y}(x,y) = g(r) for some nonnegative function gg, and r=x2+y2r = \sqrt{x^2 + y^2}, then the density is rotationally symmetric. Then:

    all x2+y2r2fX,Y(x,y)dxdy=2πr=0rg(r)rdr.\iint_{\text{all } x^2 + y^2 \leq r_*^2} f_{X,Y}(x,y) dx dy = 2 \pi \int_{r = 0}^{r_*} g(r) r dr.