Beruflich Dokumente
Kultur Dokumente
Random Variables
for Communications
EN 2072
Semester 4 May 2011
Prof. Dileeka Dias
Department of Electronic & Telecommunication
Engineering
University of Moratuwa
Contents
Introduction
Random Variables
Discrete
Continuous
Example 2
1 10
2 20
3 30
4 40
5 50
6 60
1, i " Heads"
xi
0, i "Tails "
xi 10 i
X ( xi ) 1
where
Discrete CDF:
Discrete PDF:
1
6 , x 1
3
PX ( xi ) , x 2
6
2 , x 4
6
FX ( x) P( X x)
x 1
0,
1
, 1 x 2
6
4
, 2 x4
6
1,
x4
CDF
e( ) k
PN (t ) N (t ) k
k!
Where is the average call
arrival rate
f X ( x)dx 1
fU (u )du
f X ( x) d FX ( x)
dx
( x ) 2
1
2
2 2 ,
N ( , 2 )
Mean:
Variance: 2
Source: Wikipedia
FX ( x)
X (u ) du
x (u ) 2
2 2 du
2 2
0 (u ) 2
2 2 du
2 2
u
2
1
1
2 2 du
2 2 0
x /
x (u ) 2
2 2
t 2
e
0
1 1
x
erf
2 2
2
2
dt
erf x
t 2
dt
1 1
x
FX ( x) erf
2 2
2
2
x
1 Q
erf x
t 2
dt
x
1
Qx 1 erf
2
2
Received signal
Probability of error
P(e|0) = P(-AP + n) > 0
= P(n > Ap )
P(e|1) = P(AP + n) < 0
= (n< - AP)
P(n< - AP)
P(n > Ap )
n
n
P( X n) 1 1 Q
Q
A
P(e | 0) P(n AP ) Q P
A
P(e | 1) P(n AP ) Q P
X |Y ( xi | y j )
Conditional
Probability
Y | X ( y j | xi ) 1
PXY ( xi , y j ) PX |Y ( xi | y j ) PY ( y j ) PY | X ( y j | xi ) PX ( xi )
Joint Probability
Using
XY ( xi , y j )
X |Y ( xi | y j ) PY ( y j )
PY ( y j )
X |Y ( xi | y j )
PY ( y j )
Similarly
XY ( xi , y j ) PX ( xi )
Marginal Probabilities
Joint
Random
Variables
:
Discrete
y =0
x 0
2
2=
PY (0 ) = ??
PX (0 ) = 1-a
x1 = 1
PX (1 ) = a
y1 = 1
PY (1 ) = ??
Probability of error
PY | X (0 | 1) PY | X (1 | 0) p
PY | X (0 | 0) PY | X (1 | 1) 1 p
PY ( y j )
XY ( xi , y j )
Probability of
correct reception
Y | X ( y j | xi ) PX ( xi )
for j 1
PY (1) PY | X (1 | 1) P(1) PY | X (1 | 0) P(0) (1 p)a p (1 a)
( p a) 2 pa
for j 2
PY (0) PY | X (0 | 1) P(1) PY | X (0 | 0) P(0) pa (1 p)(1 a)
1 ( p a) 2 pa 1 PY (1)
x2 y 2
P( x1 X x2 , y1 Y y2 )
x1 y1
f XY ( x, y )dxdy 1
f XY ( x, y )dxdy
f XY ( x, y ) f X |Y ( x | y ) fY ( y )
f XY ( x, y ) fY | X ( y | x) f X ( x)
Conditional PDFs
Hence,
f X |Y ( x | y )
fY | X ( y | x ) f X ( x )
fY ( y )
f XY ( x, y) f X ( x) fY ( y)
E[ X ]
( x ) 2
xe
2 2 dx
( y) 2
( y )e
xf
X ( x)dx
or
x P( x )
i
( y ) 2
2 2 dy
( y) 2
2 2 dy e
ye
2
Odd function
of y
DC value of a
signal
E[ X ] X
2 2
Let x y
E[ X ]
__
2 2 dy
E[Y ] Y
A function of a RV
g ( x) f
X ( x) dx
or
g ( x ) P( x )
i
Therefore:
E[Y ] Y
A function of a RV
g ( x) f
X ( x) dx
or
g ( x ) P( x )
i
Therefore:
E[ X 2 ]
x 2 f X ( x)dx
E[ X 2 ]
P(q
Uniform Distribution
X A cos
1/2
X A cos
2
E[ X ]
1
dq 0
2
A cosq
0
2
2
E[ X ]
1
A cos q
dq
2
2
A2 A2
2
2
2
2
__
_
2
Variance( X ) X
E X X x X f X ( x)dx
__
Std. Deviation ( X ) E X X
Average AC power
of a signal
__
X2 E X X
__ __ 2
EX 2 2X X X
__ 2
2
E[ X ] 2 E[ X ] X E X
__
__ 2
E[ X 2 ] X
E[ X 2 ] E[ X ]2
__
n
E[ X n ] X
x n f X ( x)dx
__
n
E[( X X ) ] x x f X ( x)dx
R XY E[ XY ]
xyf
XY ( x, y )dxdy
R XY
xf
X ( x)dx
yf ( y)dy E[ X ]E[Y ]
Y
X Y
__
__
__
__
C XY XY E X X Y Y x X y Y f XY ( x, y )dxdy
__
__
C XY XY E X X Y Y
__
__
__ __
E[ XY ] X E[Y ] Y E[ X ] X Y
__ __
E[ XY ] E[ X ]E[Y ] R XY X Y
Correlation can be
Positive
Zero or
Negative
For Independent RVs
__ __
R XY E[ X ]E[Y ] X Y
C XY 0
__ __
C XY RXY X Y
Correlation can be
Positive
Zero or
Negative
R XY E[ X ]E[Y ] X Y
C XY 0
Scatter
Plots
Correlation Coefficient
XY
C XY
XY
1 XY 1