Salta al contenuto
Note per Studenti Absolutely Continuous Random Vectors Report

Absolutely Continuous Random Vectors

In questa pagina 7

Definition and joint density

As for random variables, absolutely continuous is the case of a joint DF that can be written as the integral of a density.

Definition. The random vector (X,Y)(X,Y) is called absolutely continuous if there exists a Riemann integrable function fXY(x,y)≥0f_{XY}(x,y)\ge0 such that

FXY(x,y)=∫−∞x∫−∞yfXY(u,v) du dv.F_{XY}(x,y)=\int_{-\infty}^x\int_{-\infty}^yf_{XY}(u,v)\,du\,dv.

Since FXY(+∞,+∞)=1F_{XY}(+\infty,+\infty)=1, it is

∫−∞+∞∫−∞+∞fXY(x,y) dx dy=1.\int_{-\infty}^{+\infty}\int_{-\infty}^{+\infty}f_{XY}(x,y)\,dx\,dy=1.

The function fXY(x,y)f_{XY}(x,y) is called the joint probability density of the vector (X,Y)(X,Y).

Remark. At any point (x,y)∈R2(x,y)\in\mathbb{R}^2 where fXYf_{XY} is continuous (fundamental theorem of calculus)

 fXY(x,y)=∂2∂x ∂yFXY(x,y) \boxed{\,f_{XY}(x,y)=\frac{\partial^2}{\partial x\,\partial y}F_{XY}(x,y)\,}

Probabilities and density

For a rectangle B=(a,b]×(c,d]B=(a,b]\times(c,d], as already proved in Joint Distribution Function of a Random VectorA general random vector is a measurable map into R^n, characterized by its joint distribution function F(x,y) = P(X <= x, Y <= y), which determines the probability of every Borel set through rectangle probabilities and has the marginal distribution functions as limits.Joint Distribution Function of a Random Vector →,

P((X,Y)∈B)=FXY(b,d)−FXY(a,d)−FXY(b,c)+FXY(a,c)P((X,Y)\in B)=F_{XY}(b,d)-F_{XY}(a,d)-F_{XY}(b,c)+F_{XY}(a,c) =∫−∞d ⁣ ⁣∫−∞b−∫−∞d ⁣ ⁣∫−∞a−∫−∞c ⁣ ⁣∫−∞b+∫−∞c ⁣ ⁣∫−∞afXY(x,y) dx dy=\int_{-\infty}^d\!\!\int_{-\infty}^b-\int_{-\infty}^d\!\!\int_{-\infty}^a-\int_{-\infty}^c\!\!\int_{-\infty}^b+\int_{-\infty}^c\!\!\int_{-\infty}^a f_{XY}(x,y)\,dx\,dy =∫−∞d ⁣ ⁣∫abfXY dx dy−∫−∞c ⁣ ⁣∫abfXY dx dy=∫cd ⁣ ⁣∫abfXY(x,y) dx dy=∬BfXY(x,y) dσ.=\int_{-\infty}^d\!\!\int_a^b f_{XY}\,dx\,dy-\int_{-\infty}^c\!\!\int_a^bf_{XY}\,dx\,dy=\int_c^d\!\!\int_a^bf_{XY}(x,y)\,dx\,dy=\iint_Bf_{XY}(x,y)\,d\sigma.

Remark (general case). For B∈B2B\in\mathcal{B}_2

 P((X,Y)∈B)=∬BfXY(x,y) dσ \boxed{\,P((X,Y)\in B)=\iint_Bf_{XY}(x,y)\,d\sigma\,}

(connection with Calculus II; it can be proved approximating BB with rectangles).

Remark. If BB is a curve in R2\mathbb{R}^2 then P((X,Y)∈B)=∬BfXY dx dy=0P((X,Y)\in B)=\iint_Bf_{XY}\,dx\,dy=0.

Physical interpretation of the joint density

P(a≤X≤a+h, b≤Y≤b+k)=∫bb+k ⁣ ⁣∫aa+hfXY(x,y) dx dy≃fXY(a,b) h k,P(a\le X\le a+h,\ b\le Y\le b+k)=\int_b^{b+k}\!\!\int_a^{a+h}f_{XY}(x,y)\,dx\,dy\simeq f_{XY}(a,b)\,h\,k,

the volume of the small parallelepiped of base h×kh\times k and height fXY(a,b)f_{XY}(a,b) under the surface z=fXY(x,y)z=f_{XY}(x,y) (figure). The total volume under the density is ∬R2fXY=1\iint_{\mathbb{R}^2}f_{XY}=1. In physical terms

fXY(a,b)≃P((X,Y)∈(a,a+h)×(b,b+k))hk.f_{XY}(a,b)\simeq\frac{P\big((X,Y)\in(a,a+h)\times(b,b+k)\big)}{hk}.

Think of a thin slab of total mass 11 kg lying on the (x,y)(x,y) plane: then fXY(a,b)f_{XY}(a,b) is the mass density at the point (a,b)(a,b) of the slab.

Marginals from the joint density

FX(x)=FXY(x,+∞)=∫−∞+∞∫−∞xfXY(u,v) du dv,F_X(x)=F_{XY}(x,+\infty)=\int_{-\infty}^{+\infty}\int_{-\infty}^xf_{XY}(u,v)\,du\,dv,

fX(x)=ddxFX(x)=ddxFXY(x,+∞)=∫−∞+∞fXY(x,v) dv,f_X(x)=\frac{d}{dx}F_X(x)=\frac d{dx}F_{XY}(x,+\infty)=\int_{-\infty}^{+\infty}f_{XY}(x,v)\,dv,

and by symmetry fY(y)=∫−∞+∞fXY(u,y) duf_Y(y)=\displaystyle\int_{-\infty}^{+\infty}f_{XY}(u,y)\,du.

Example

fXY(x,y)=(x2+xy3)χD(x,y),D=[0,1]×[0,2].f_{XY}(x,y)=\left(x^2+\frac{xy}{3}\right)\chi_D(x,y),\qquad D=[0,1]\times[0,2].

1. Verify that it is a density. fXY≥0f_{XY}\ge0 for all (x,y)∈D(x,y)\in D; moreover

∬R2fXY dσ=∫02 ⁣ ⁣∫01(x2+xy3)dx dy=∫02(13+y6)dy=[y3+y212]02=23+412=1.\iint_{\mathbb{R}^2}f_{XY}\,d\sigma=\int_0^2\!\!\int_0^1\left(x^2+\frac{xy}3\right)dx\,dy=\int_0^2\left(\frac13+\frac y6\right)dy=\left[\frac y3+\frac{y^2}{12}\right]_0^2=\frac23+\frac4{12}=1.

2. Compute P((X,Y)∈B)P((X,Y)\in B) with B={(x,y)∈R2: x+y≥1}B=\{(x,y)\in\mathbb{R}^2:\ x+y\ge1\}. Only B∩DB\cap D matters: in DD it is the part above the line y=1−xy=1-x (the figure shows DD with the lower triangle removed). By Fubini

P((X,Y)∈B)=∬B(x2+xy3)χD dx dy=∫01[∫1−x2(x2+xy3)dy]dx=∫01[x2y+xy26]y=1−xy=2dxP((X,Y)\in B)=\iint_B\left(x^2+\frac{xy}{3}\right)\chi_D\,dx\,dy=\int_0^1\left[\int_{1-x}^2\left(x^2+\frac{xy}3\right)dy\right]dx=\int_0^1\left[x^2y+\frac{xy^2}6\right]_{y=1-x}^{y=2}dx

=∫01(2x2+46x−x2(1−x)−x(1−x)26)dx=∫01(2x2+46x−x2+x3−x6+x23−x36)dx=\int_0^1\left(2x^2+\frac46x-x^2(1-x)-\frac{x(1-x)^2}6\right)dx=\int_0^1\left(2x^2+\frac46x-x^2+x^3-\frac x6+\frac{x^2}{3}-\frac{x^3}{6}\right)dx

=∫01(56x3+43x2+36x)dx=524+49+312=5⋅9+4⋅24+3⋅2⋅924⋅9=195216.=\int_0^1\left(\frac56x^3+\frac43x^2+\frac36x\right)dx=\frac5{24}+\frac49+\frac3{12}=\frac{5\cdot9+4\cdot24+3\cdot2\cdot9}{24\cdot9}=\frac{195}{216}.

(Here 36x\frac{3}{6}x is the collected coefficient of xx: 46−16=36\frac46-\frac16=\frac36; and 312=14\frac{3}{12}=\frac14.)

Special random vector: uniform

Definition. Let D⊂R2D\subset\mathbb{R}^2 be a bounded set (contained in a ball of finite radius centred at the origin). The random vector (X,Y)(X,Y) is called uniform over DD, (X,Y)∼U(D)(X,Y)\sim\mathcal{U}(D), if its density is

fXY(x,y)=c χD(x,y).f_{XY}(x,y)=c\,\chi_D(x,y).

Remark. By the normalization constraint ∬R2fXY dσ=∬Dc dσ=c⋅area(D)=1\iint_{\mathbb{R}^2}f_{XY}\,d\sigma=\iint_Dc\,d\sigma=c\cdot\mathrm{area}(D)=1, therefore c=1area(D)c=\frac1{\mathrm{area}(D)} and for (X,Y)∼U(D)(X,Y)\sim\mathcal{U}(D)

 fXY(x,y)=1area(D)χD(x,y) \boxed{\,f_{XY}(x,y)=\frac1{\mathrm{area}(D)}\chi_D(x,y)\,}

Probabilities for (X,Y)∼U(D)(X,Y)\sim\mathcal{U}(D)

Let B∈B2B\in\mathcal{B}_2 be any Borel set. Then

P((X,Y)∈B)=∬BfXY dσ=∬R21area(D)χDχB dσ=∬R21area(D)χD∩B dσ=area(D∩B)area(D).P((X,Y)\in B)=\iint_Bf_{XY}\,d\sigma=\iint_{\mathbb{R}^2}\frac{1}{\mathrm{area}(D)}\chi_D\chi_B\,d\sigma=\iint_{\mathbb{R}^2}\frac1{\mathrm{area}(D)}\chi_{D\cap B}\,d\sigma=\frac{\mathrm{area}(D\cap B)}{\mathrm{area}(D)}.

In particular, for B⊂DB\subset D: P((X,Y)∈B)=area(B)area(D)P((X,Y)\in B)=\dfrac{\mathrm{area}(B)}{\mathrm{area}(D)}. The probability of BB depends only on the area of BB and not on its location, as long as B⊂DB\subset D (figure: two equal discs inside DD). This is the intuitive meaning of the uniform density.

Example: half disc

(X,Y)∼U(D)(X,Y)\sim\mathcal{U}(D) with D={(x,y)∈R2: x2+y2≤1, y≥0}D=\{(x,y)\in\mathbb{R}^2:\ x^2+y^2\le1,\ y\ge0\} (upper half of the unit disc, area π2\frac\pi2), so fXY(x,y)=2πχD(x,y)f_{XY}(x,y)=\dfrac2\pi\chi_D(x,y).

Marginals:

fX(x)=∫−∞+∞fXY(x,y) dy=∫01−x22πχD(x,y) dy=2π1−x2 χ[−1,1](x),f_X(x)=\int_{-\infty}^{+\infty}f_{XY}(x,y)\,dy=\int_0^{\sqrt{1-x^2}}\frac2\pi\chi_D(x,y)\,dy=\frac2\pi\sqrt{1-x^2}\ \chi_{[-1,1]}(x),

fY(y)=∫−1−y2+1−y22πχD(x,y) dx=2π⋅21−y2 χ[0,1](y).f_Y(y)=\int_{-\sqrt{1-y^2}}^{+\sqrt{1-y^2}}\frac2\pi\chi_D(x,y)\,dx=\frac2\pi\cdot2\sqrt{1-y^2}\ \chi_{[0,1]}(y).

The indicators χ[−1,1](x)\chi_{[-1,1]}(x) and χ[0,1](y)\chi_{[0,1]}(y) are essential. The graph of fXf_X has height 2π\frac2\pi at x=0x=0 and is not a half circle (it is 2π1−x2\frac{2}{\pi}\sqrt{1-x^2}); fYf_Y starts at 4π\frac4\pi at y=0y=0 and is not a quarter circle.

Expected value of scalar functions

Let g:R2→Rg:\mathbb{R}^2\to\mathbb{R} and (X,Y)∼fXY(x,y)(X,Y)\sim f_{XY}(x,y) an absolutely continuous random vector. Then

E(g(X,Y))=∬R2g(x,y)fXY(x,y) dσ.E\big(g(X,Y)\big)=\iint_{\mathbb{R}^2}g(x,y)f_{XY}(x,y)\,d\sigma.

Special cases:

  1. g(x,y)=x+yg(x,y)=x+y gives E(X+Y)=E(X)+E(Y)E(X+Y)=E(X)+E(Y) via marginalizations.
  2. g(x,y)=xyg(x,y)=xy: E(XY)=∬R2xy fXY(x,y) dσE(XY)=\displaystyle\iint_{\mathbb{R}^2}xy\,f_{XY}(x,y)\,d\sigma.

The density of scalar functions

Computing the density of Z=g(X,Y)Z=g(X,Y) is more complicated than in the discrete case (see Discrete Random VectorsA discrete random vector (X,Y) is described by its joint discrete density p_XY(x_i,y_j) = P(X = x_i, Y = y_j), whose marginals are obtained by summing over the other variable and which gives expectations of any function g(X,Y), including E(XY), covariance and the density of X + Y.Discrete Random Vectors →). It is convenient to first compute the DF of ZZ:

FZ(z)=P(Z≤z)=P(g(X,Y)≤z)=∬ΩzfXY(x,y) dσ,Ωz={(x,y)∈R2: g(x,y)≤z}.F_Z(z)=P(Z\le z)=P(g(X,Y)\le z)=\iint_{\Omega_z}f_{XY}(x,y)\,d\sigma,\qquad\Omega_z=\{(x,y)\in\mathbb{R}^2:\ g(x,y)\le z\}.

The density is then obtained by differentiating with respect to zz:

fZ(z)=ddz[∬ΩzfXY(x,y) dσ].f_Z(z)=\frac d{dz}\left[\iint_{\Omega_z}f_{XY}(x,y)\,d\sigma\right].

The formula is correct but very abstract; the possibility to compute fZ(z)f_Z(z) in explicit form must be evaluated case by case (the one-variable analogue is in Functions of a Random VariableTo find the distribution of Y = g(X) one computes the distribution function of Y first (always works, also for mixed results) or, for piecewise invertible g and absolutely continuous X, uses the density formula with the sum of f_X(a) divided by the absolute value of g'(a) over the preimages.Functions of a Random Variable →).

Special case: Z=X+YZ=X+Y

Ωz={(x,y):x+y≤z}\Omega_z=\{(x,y):x+y\le z\} is the half plane below the line y=z−xy=z-x (figure). Then

FZ(z)=∬x+y≤zfXY dσ=∫−∞+∞[∫−∞z−yfXY(x,y) dx]dy,F_Z(z)=\iint_{x+y\le z}f_{XY}\,d\sigma=\int_{-\infty}^{+\infty}\left[\int_{-\infty}^{z-y}f_{XY}(x,y)\,dx\right]dy,

fZ(z)=ddz∫−∞+∞[∫−∞z−yfXY(x,y) dx]dy=∫−∞+∞fXY(z−y,y) dyf_Z(z)=\frac d{dz}\int_{-\infty}^{+\infty}\left[\int_{-\infty}^{z-y}f_{XY}(x,y)\,dx\right]dy=\boxed{\int_{-\infty}^{+\infty}f_{XY}(z-y,y)\,dy}

Exchanging xx and yy one gets the alternative expression

fZ(z)=∫−∞+∞fXY(x,z−x) dx.f_Z(z)=\int_{-\infty}^{+\infty}f_{XY}(x,z-x)\,dx.

A special case of these formulas will play a major role later on (the notes announce it without further detail).

Versione ripasso

Definition. (X,Y)(X,Y) is absolutely continuous if FXY(x,y)=∫−∞x∫−∞yfXY(u,v) du dvF_{XY}(x,y)=\int_{-\infty}^x\int_{-\infty}^yf_{XY}(u,v)\,du\,dv with fXY≥0f_{XY}\ge0 Riemann integrable; ∬R2fXY=1\iint_{\mathbb{R}^2}f_{XY}=1; where fXYf_{XY} is continuous, fXY=∂2FXY∂x ∂yf_{XY}=\dfrac{\partial^2F_{XY}}{\partial x\,\partial y}.

Probabilities. P((X,Y)∈B)=∬BfXY dσP((X,Y)\in B)=\iint_Bf_{XY}\,d\sigma (rectangles from the 4-term DF formula, then approximate BB); a curve has probability 00. Interpretation: fXY(a,b)≃P((X,Y)∈(a,a+h)×(b,b+k))/(hk)f_{XY}(a,b)\simeq P((X,Y)\in(a,a+h)\times(b,b+k))/(hk), mass density of a slab of total mass 11.

Marginals. fX(x)=∫fXY(x,v) dvf_X(x)=\int f_{XY}(x,v)\,dv, fY(y)=∫fXY(u,y) duf_Y(y)=\int f_{XY}(u,y)\,du.

Example. f=(x2+xy3)χ[0,1]×[0,2]f=(x^2+\frac{xy}3)\chi_{[0,1]\times[0,2]}: integrates to 11; P(X+Y≥1)=195216P(X+Y\ge1)=\frac{195}{216} (integrate yy from 1−x1-x to 22, then xx from 00 to 11).

Uniform on DD (bounded): fXY=1area(D)χDf_{XY}=\frac1{\mathrm{area}(D)}\chi_D; P((X,Y)∈B)=area(D∩B)area(D)P((X,Y)\in B)=\frac{\mathrm{area}(D\cap B)}{\mathrm{area}(D)} (only area matters, not position). Half unit disc: fXY=2πχDf_{XY}=\frac2\pi\chi_D, fX=2π1−x2χ[−1,1]f_X=\frac2\pi\sqrt{1-x^2}\chi_{[-1,1]}, fY=4π1−y2χ[0,1]f_Y=\frac4\pi\sqrt{1-y^2}\chi_{[0,1]} (not a half or quarter circle; indicators essential).

Expectation. E(g(X,Y))=∬g fXY dσE(g(X,Y))=\iint g\,f_{XY}\,d\sigma; E(X+Y)=E(X)+E(Y)E(X+Y)=E(X)+E(Y); E(XY)=∬xy fXYE(XY)=\iint xy\,f_{XY}.

Density of Z=g(X,Y)Z=g(X,Y). FZ(z)=∬g(x,y)≤zfXY dσF_Z(z)=\iint_{g(x,y)\le z}f_{XY}\,d\sigma, then differentiate. For Z=X+YZ=X+Y: fZ(z)=∫fXY(z−y,y) dy=∫fXY(x,z−x) dx.f_Z(z)=\int f_{XY}(z-y,y)\,dy=\int f_{XY}(x,z-x)\,dx.

Typical mistakes. Forgetting the indicator of the support in a marginal (wrong limits of integration); drawing fXf_X as the shape of DD; wrong limits when integrating over B∩DB\cap D; forgetting c=1/area(D)c=1/\mathrm{area}(D).

Teoria collegata