Region of Integration
The Region of Integration is the set R of points (x, y) over which a double integral of a joint density f(x, y) is taken. It is the part of the event E whose probability is wanted that lies in the support, where f(x, y) > 0. For a continuous pair (X, Y), the probability of E is
P\big((X, Y) \in E\big) = \iint_R f(x, y)\,dA
dAis the area element,dy\,dxordx\,dyin the order the limits are taken.
To evaluate it, R is cut into vertical slices, one for each x, so the integral is
\iint_R f\,dA = \int_a^b \int_{g_1(x)}^{g_2(x)} f(x, y)\,dy\,dx
aandbare the smallest and largestxinR.g_1(x)andg_2(x)are the lower and upper edges ofRthat the vertical line atxcrosses.
Horizontal slices swap the roles of x and y. Choose the order in which one formula describes every slice. If an edge changes formula part-way, split R there and add the pieces. When R is awkward, its complement is often a single slice, and P(E) = 1 - P(E^c).
What is
P(X + Y < 2)for these two report times? Two claims are reported at independent exponential times with mean 1 year. WithXthe earlier andYthe later report time, the joint density isf(x, y) = 2e^{-x-y}for0 < x < y.Answer
- The support lies above the diagonal
y = x, and the event lies below the liney = 2 - x.- They cross at
(1, 1), soRis the triangle with corners(0, 0),(1, 1)and(0, 2).- With
xoutside, every vertical slice runs fromy = xup toy = 2 - x, so one integral coversR. Withyoutside, the right edge changes aty = 1and two integrals are needed.- The inner integral is
\int_x^{2-x} 2e^{-x}e^{-y}\,dy = 2e^{-2x} - 2e^{-2}.- The outer integral is
\int_0^1 \left(2e^{-2x} - 2e^{-2}\right)dx = (1 - e^{-2}) - 2e^{-2}.- So
P(X + Y < 2) = 1 - 3e^{-2} = 0.594.- Check:
X + Yis the sum of the two report times, a Gamma(2, 1), andP(\text{Gamma}(2, 1) < 2) = 1 - e^{-2}(1 + 2), the same value.
Constant density
When f is constant on its support, as for independent uniform variables, no integral is needed. The probability of E is
P(E) = \frac{\text{area}(R)}{\text{area of the support}}
XandYare independent and uniform on(0, 10). What isP(X + Y > 12)?
- The density is the constant
\frac{1}{100}on the square, so the probability is an area ratio.- The part of the square above
x + y = 12is the triangle with corners(2, 10),(10, 10)and(10, 2).- Its legs are 8, so its area is
\frac{1}{2} \times 8 \times 8 = 32.P(X + Y > 12) = \frac{32}{100} = 0.32.- As an integral, the outer limit starts at
x = 2, because below it eveny = 10cannot reach 12.
Common regions
| Event | Region |
|---|---|
X < Y |
above the diagonal y = x |
X + Y \le s |
below the line x + y = s |
\max(X, Y) \le t |
both x \le t and y \le t; for non-negative variables the square [0, t]^2 |
\min(X, Y) > t |
both x > t and y > t, the quadrant beyond (t, t) |
X \le x_0 and Y \le y_0 |
the quadrant below and left of (x_0, y_0) |
The region below x + y = s gives the cdf of a sum, the cdf method for X + Y. The last region is the joint cdf F(x_0, y_0). The same limits give normalizing constants, marginals and expectations of a continuous pair. For a discrete pair, the region is the set of cells of the joint table to add.
Integrating over the event and ignoring the support Sketch the support, draw the event's boundary and mark where they cross before writing any limit. In the uniform example, integrating
xfrom 0 instead of 2 gives\int_0^{10} \frac{x - 2}{100}\,dx = 0.3, not 0.32.