Professional Documents
Culture Documents
Pattern 3333
Pattern 3333
0.7
0.6
0.5
0.4
0.3
0.2
0.1
−0.1
−0.2
−5 −4 −3 −2 −1 0 1 2 3 4 5
2
0.2
0.15
0.1
0.05
0
2
1 2
0 1
0
−1 −1
−2 −2
3
Density estimation
P = k/n
Thus we arrive at the following obvious esti-
mate for p(x),
k/n
p(x) =
V
5
h
( x 1 −h/2, x 2+h/2 ) ( x 1 +h/2, x 2 +h/2 )
Introduce
|xik −xk |
(
xi − x 1 ≤ 1/2,
k = 1, 2
φ( )= h
h 0 otherwise
which indicates whether xi is inside the square
(centered at x, width h) or not.
6
The Parzen probability density estimation for-
mula (for 2-D) is given by
k/n
p(x) =
V
n
1 X 1 xi − x
= 2
φ( )
n i=1 h h
7
Example: Given a set of five data points x1 =
2, x2 = 2.5, x3 = 3, x4 = 1 and x5 = 6, find
Parzen probability density function (pdf) esti-
mates at x = 3, using the Gaussian function
with σ = 1 as window function.
Solution:
(x1 − x)2
!
1
√ exp −
2π 2
(2 − 3)2
!
1
=√ exp − = 0.2420
2π 2
(x2 − x)2
!
1
√ exp −
2π 2
(2.5 − 3)2
!
1
= √ exp − = 0.3521
2π 2
8
(x3 − x)2
!
1
√ exp − = 0.3989
2π 2
(x4 − x)2
!
1
√ exp − = 0.0540
2π 2
(x5 − x)2
!
1
√ exp − = 0.0044
2π 2
so
9
0.6
0.5
0.4
0.3
p(x)
0.2
0.1
−0.1
−0.2
−2 −1 0 1 2 3 4 5 6
x
0.5
0.4
0.3
p(x)
0.2
0.1
−0.1
−0.2
−2 −1 0 1 2 4 5 6
x