Professional Documents
Culture Documents
Slides
Slides
Univariate Distributions
2-1
Univariate Case
Let
Example
Univariate Distributions
2-2
DAX (Pt )
1000 2000 3000 4000 5000 6000 7000 8000 1986
Pt
1988
1990
1992
1994
1996
1998 date
2000
2002
2004
2006 2008
Univariate Distributions
2-3
Histogram of DAX
6e04 Density 0e+00 1e04 2e04 3e04 4e04 5e04
2000
4000 P
6000
8000
Univariate Distributions
2-4
t t
1988
1990
1992
1994
1996
1998 date
2000
2002
2004
2006 2008
Univariate Distributions
2-5
0 r
Univariate Distributions
2-6
Traditional approach:
H0 : F
if test conrm
= F0
H1 : F
= F0
F0 , use F0
Univariate Distributions
2-7
0 R
Univariate Distributions
2-8
F (x ) =
n i =1
I { Xi x } ,
x Xi h K (u ) u
1 2 I{| 2 )I{|
exp
u | 1} u | 1} 1 2 2 u
Univariate Distributions
2-9
0.4
0.2
0.0
2.5
2.0
1.5
1.0
0.5
0.0
0.5
1.0
Univariate Distributions
2-10
0.4
0.2
0.0
2.5
2.0
1.5
1.0
0.5
0.0
0.5
1.0
Univariate Distributions
2-11
0.4
0.2
0.0
2.5
2.0
1.5
1.0
0.5
0.0
0.5
1.0
Univariate Distributions
2-12
Density
0.0 6
0.1
0.2
0.3
0.4
0 R
Univariate Distributions
2-13
Multivariate Case
{x1i , . . . , xdi }i =1,...,n is the realization of the vector (X1 , . . . , Xd ) F, where F is unknown.
Example
{x1i , . . . , xdi }i =1,...,n are returns of the at day ti
(x1i , x2i ) are numbers of sold albums The Man Who Sold The World by David Bowie and singles I Saved The World Today by Eurythmics at day ti
MVA: HumboldtUniversitt zu Berlin
Univariate Distributions
2-14
Multivariate Case
Univariate Distributions
2-15
Multivariate Distributions
Rp (multivariate) distribution function is
Random vector
F (x ) = P (X F (x ) =
x ) = P (X1 x1 , X2 x2 , . . . , Xp xp )
f (u )du
b a
f (u ) du = 1
(a, b)} =
P {X
f (x )dx
Univariate Distributions
2-16
= (X1 , X2 ) ,
X1 Rk X2 Rpk
marginal density of X1 is
fX1 (x1 ) =
f (x1 , x2 )dx2
Univariate Distributions
2-17
Example
f (x1 , x2 ) =
1 2 1
3 2 2
0 x1 , x2 1, otherwise.
+
0
3 2
2 x2
=
0
1 3 + = 1. 4 4
Univariate Distributions
2-18
= =
1 0 0 1
3 1 x1 + x2 2 2 1 3 x1 + x2 2 2
dx2 = x1 + dx1 = x2 +
3 1 2 1+ 2 2 3 1 2 2+ 4
1 2 3 2
3 ; 4 1 4
f (x2 | x1 ) =
x x
and
f (x1 | x2 ) =
x x
These conditional pdf's are nonlinear in joint pdf has a simple (linear) structure.
MVA: HumboldtUniversitt zu Berlin
Univariate Distributions
2-19
Denition of independence
Univariate Distributions
2-20
Example
x2 < 1,
1 1.
0
8
0.1
0.2
0.3
0.4
0.5
10
11
MVAdenbank2.xpl
2 1
2 1
Product of univariate density estimates (left) and joint density estimate (right) for
MVAdenbank3.xpl
Univariate Distributions
2-23
Summary: Distributions
The cumulative distribution function (cdf) is
F (x ) = P (X
< x ).
exists then
= (X1 , X2 ) be partitioned in subvectors X1 and X2 with joint cdf F . Then FX1 (x1 ) = P (X1 x1 ) is the marginal cdf of X1 . The marginal pdf of X1 is
fX1 (x1 ) =
f (x1 , x2 )dx2 .
Univariate Distributions
2-24
Summary: Distributions
Dierent joint pdf's may have the same marginal pdf's. The conditional pdf of X2 given X1 = x1 is f (x , x ) f (x2 | x1 ) = 1 2 fX1 (x1 ) Two random variables X1 , X2 are called independent i
This is equivalent to
Univariate Distributions
2-25
EX
EX1 EXp
. . .
xf (x )dx =
x1 f (x )dx xp f (x )dx
. . .
= .
The properties of expected value follow from the properties of the integral:
E (X + Y ) = EX + EY
Univariate Distributions
If
and
2-26
E (XY
=
)=
xf (x )dx
X X
(, )
Univariate Distributions
2-27
X:
= (X X )
i j
X X
i i
= Cov(Xi , Xj ) =
X X
Computational formula:
Var (Xi )
a X
cannot be -ve).
Univariate Distributions
2-28
a Var (X ) a =
= A = = =
i ,j
ai aj X X
i
Univariate Distributions
2-29
1 0 3 x1 0 1
=
1
x1
+
3 4
3 1 x1 + x2 2 2
2 x1 1 0
dx1 dx2
= =
x1
1 0
=
1
1 0 2 x2 0
x2
1 3 x1 + x2 2 2
3 x2 1 0
dx1 dx2
= =
3 + 2 0 2
Univariate Distributions
2-30
Covariance Matrix
X1 X1 = = =
1 2
EX12 2 1
1 1 0
with
1 3 x1 + x2 2 2
3 x1 1
EX12
3 + 4 0 4
0 4 1 1
2 x1
dx1 dx2
3 8
=
0
X2 X2
= = =
EX22 2 2
1 1 0
with
1 3 x1 + x2 2 2
4 x2 1
EX22
1 4
3 + 3 0 2
0 3 1 2
2 x2
dx1 dx2
11 24
=
0
Univariate Distributions
2-31
X1 X2
E (X1 X2 ) 1 2
1 1 0
with
E (X1 X2 )
= = =
1 6
0 0
x1 x2
1 3 x1 + x2 2 2
dx1 dx2
1 3 2 x2 + x2 6 4
1
dx2
1 0
2 x2
+
0
3 4
3 x2
1 = . 3
Univariate Distributions
2-32
=
0.0815 0.0052 0.0052 0.0677
Univariate Distributions
2-33
Conditional Expectations
= (X1 , X2 ) Conditional expectation of X2 , given
Random vector
X1 = x1 :
E (X2 | x1 ) =
and conditional expectation of
E (X1 | x2 ) =
The conditional expectation
E (X2 | x1 ) is a function of x1 .
E (Y | X
= x ) = x .
Univariate Distributions
2-34
U = X2 E (X2 | X1 )
(1) (2)
E (U ) = 0 E (X2 |X1 ) is the best approximation of X2 by a function h(X1 ) of X1 in the sense of mean squared error (MSE) when MSE (h) = E [{X2 h(X1 )} {X2 h(X1 )}] and h : Rk Rpk .
Univariate Distributions
2-35
Summary: Moments
X is = xf (x ) dx , the covariance matrix = Var (X ) = E (X )(X ) . We denote X (, ). Expectations are linear, i.e., E (X + Y ) = EX + EY . If X , Y are independent then E (XY ) = EXEY .
The expectation of a random vector
Univariate Distributions
2-36
Summary: Moments
The covariance between two random vectors
X , Y is XY = Cov(X , Y ) = E (X EX )(Y EY ) = E (XY ) EXEY . If X , Y are independent then Cov(X , Y ) = 0. The Conditional Expectation E (X2 |X1 ) is the MSE best approximation of X2 by a function of X1 .