10.4 Chapter Summary
Iterated Integrals and Sums ¶ All definitions and results are available in Section 10.1 .
The double integral of a surface f ( x , y ) f(x,y) f ( x , y ) over a region R \mathcal{R} R in the x , y x,y x , y plane returns the volume, under the surface, over the region.
If f ( x , y ) f(x,y) f ( x , y ) is equal to a constant, c c c , over R \mathcal{R} R then the the volume equals c × area ( R ) c \times \text{area}(\mathcal{R}) c × area ( R ) .
Double integrals can be computed using iterated integrals:
∬ [ x , y ] ∈ R f ( x , y ) d x d y = { ∫ x ∈ R ( ∫ y such that [ x , y ] ∈ R f ( x , y ) d y ) d x ∫ y ∈ R ( ∫ x such that [ x , y ] ∈ R f ( x , y ) d x ) d y \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} ∬ [ x , y ] ∈ R f ( x , y ) d x d y = ⎩ ⎨ ⎧ ∫ x ∈ R ( ∫ y such that [ x , y ] ∈ R f ( x , y ) d y ) d x ∫ y ∈ R ( ∫ x such that [ x , y ] ∈ R f ( x , y ) d x ) d y 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.
Given a rectangular region, R = [ a , b ] × [ c , d ] \mathcal{R} = [a,b] \times [c,d] R = [ a , b ] × [ c , d ] :
∬ [ x , y ] ∈ [ a , b ] × [ c , d ] f ( x , y ) d x d y = { ∫ x = a b ( ∫ y = c d f ( x , y ) d y ) d x ∫ y = c d ( ∫ x = a b f ( x , y ) d x ) d y \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} ∬ [ x , y ] ∈ [ a , b ] × [ c , d ] f ( x , y ) d x d y = ⎩ ⎨ ⎧ ∫ x = a b ( ∫ y = c d f ( x , y ) d y ) d x ∫ y = c d ( ∫ x = a b f ( x , y ) d x ) d y If f ( x , y ) = g ( x ) × h ( y ) f(x,y) = g(x) \times h(y) f ( x , y ) = g ( x ) × 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 ) d x d y = ( ∫ x = a b g ( x ) d x ) × ( ∫ y = c d h ( y ) d y ) \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) ∬ [ x , y ] ∈ [ a , b ] × [ c , d ] f ( x , y ) d x d y = ( ∫ x = a b g ( x ) d x ) × ( ∫ y = c d h ( y ) d y ) All of the same results hold for double sums
Conditional and Iterated Expectation ¶ All definitions and results are available in Section 10.2 .
The conditional expectation of g ( X , Y ) g(X,Y) g ( X , Y ) over Y Y Y given that X = x X = x X = x is:
E Y ∣ X = x [ g ( x , Y ) ] = E [ g ( X , Y ) ∣ X = x ] = { ∑ all y g ( x , y ) Pr ( Y = y ∣ X = x ) if discrete ∫ all y g ( x , y ) f Y ∣ X = 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} E Y ∣ X = x [ g ( x , Y )] = E [ g ( X , Y ) ∣ X = x ] = { ∑ all y g ( x , y ) Pr ( Y = y ∣ X = x ) ∫ all y g ( x , y ) f Y ∣ X = x ( y ) if discrete if continuous The expression E (a) [ (b) ] \mathbb{E}_{\textbf{(a)}}[\textbf{(b)}] E (a) [ (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 [ Y ∣ X = x ] \bar{y}(x) = \mathbb{E}[Y|X = x] y ˉ ( x ) = E [ Y ∣ X = x ] is typically a function of x x x .
A joint expectation over two variables can be expressed as an iterated expectation:
E X , Y [ g ( X , Y ) ] = E X [ E Y ∣ X [ g ( X , Y ) ] ] = E Y [ E X ∣ Y [ 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)]] E X , Y [ g ( X , Y )] = E X [ E Y ∣ X [ g ( X , Y )]] = E Y [ 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 ) = Y g(X,Y) = Y g ( X , Y ) = Y , E [ Y ] = E X [ E [ Y ∣ X ] ] \mathbb{E}[Y] = \mathbb{E}_X[\mathbb{E}[Y|X]] E [ Y ] = E X [ E [ Y ∣ X ]] , and when g ( X , Y ) = X g(X,Y) = X g ( X , Y ) = X , E [ X ] = E Y [ E [ X ∣ Y ] ] . \mathbb{E}[X] = \mathbb{E}_Y[\mathbb{E}[X|Y]]. E [ X ] = E Y [ E [ X ∣ Y ]] .
If X X X and Y Y Y are independent random variables then:
E X , Y [ g ( X ) × h ( Y ) ] = E X [ g ( X ) ] × E Y [ h ( Y ) ] \mathbb{E}_{X,Y}[g(X) \times h(Y)] = \mathbb{E}_{X}[g(X)] \times \mathbb{E}_{Y}[h(Y)] E X , Y [ g ( X ) × h ( Y )] = E X [ g ( X )] × E Y [ h ( Y )] Integration on Manifolds ¶ All definitions and results are available in Section 10.3 .
A manifold in the x , y x,y x , y plane is a connected set of points, [ x , y ] [x,y] [ x , y ] that form a smooth (continuous, differentiable) curve that does not cross itself.
The set of all [ x , y ] [x,y] [ x , y ] such that x + y = s x + y = s x + y = s is a manifold. It is equivalent to the line y = s − x y = s - x y = s − x .
The set of all [ x , y ] [x,y] [ x , y ] such that x 2 + y 2 = r 2 x^2 + y^2 = r^2 x 2 + y 2 = r 2 is a manifold. It is equivalent to the circle with radius r r r .
The marginal mass/density function of the sum of two random variables is expressed as a sum/integral over a line. Given S = X + Y S = X + Y S = X + Y :
Pr ( S = s ) = ∑ all x Pr ( X = x , Y = s − x ) \text{Pr}(S = s) = \sum_{\text{all }x} \text{Pr}(X = x,Y = s - x) Pr ( S = s ) = all x ∑ Pr ( X = x , Y = s − x ) and
f S ( s ) = ∫ all x f X , Y ( x , s − x ) d x . f_{S}(s) = \int_{\text{all }x} f_{X,Y}(x,s - x) dx. f S ( s ) = ∫ all x f X , Y ( x , s − x ) d x . Pr ( S = s ) = ∑ all x PMF X ( x ) PMF Y ( s − x ) = [ PMF X ∗ PMF Y ] ( 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) Pr ( S = s ) = all x ∑ PMF X ( x ) PMF Y ( s − x ) = [ PMF X ∗ PMF Y ] ( s ) and
f S ( s ) = ∫ all x f X ( x ) f Y ( s − x ) d x = [ f X ∗ f Y ] ( s ) . f_{S}(s) = \int_{\text{all }x} f_{X}(x) f_Y(s - x) dx = [f_X * f_Y](s). f S ( s ) = ∫ all x f X ( x ) f Y ( s − x ) d x = [ f X ∗ f Y ] ( s ) . To integrate over a circular region, we use an iterated integral in polar coordinates :
∬ all x 2 + y 2 ≤ r ∗ 2 f X , Y ( x , y ) d x d y = ∫ r = 0 r ∗ [ ∫ θ = 0 2 π f X , Y ( r cos ( θ ) , r sin ( θ ) ) d θ ] r d r . \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. ∬ all x 2 + y 2 ≤ r ∗ 2 f X , Y ( x , y ) d x d y = ∫ r = 0 r ∗ [ ∫ θ = 0 2 π f X , Y ( r cos ( θ ) , r sin ( θ )) d θ ] r d r . The weighting by r r r before d r dr d r accounts for the fact that a circle, of radius r r r , has circumference proportional to r r r .
If f X , Y ( x , y ) = g ( r ) f_{X,Y}(x,y) = g(r) f X , Y ( x , y ) = g ( r ) for some nonnegative function g g g , and r = x 2 + y 2 r = \sqrt{x^2 + y^2} r = x 2 + y 2 , then the density is rotationally symmetric . Then:
∬ all x 2 + y 2 ≤ r ∗ 2 f X , Y ( x , y ) d x d y = 2 π ∫ r = 0 r ∗ g ( r ) r d r . \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. ∬ all x 2 + y 2 ≤ r ∗ 2 f X , Y ( x , y ) d x d y = 2 π ∫ r = 0 r ∗ g ( r ) r d r .