Lecture 7
Lecture 7
generating functions
probability generating functions
orelationshiptofrequencytransfoms
wc.ie
Start from the discrete case where X and Y are independent with
pmts Px and Py respectively Then ZEE
IPC x̅ x FZ x x
p z x
For those of you who took EE 202 signals systems you may recall
this as the convolution operator
f g n
Es f n k g n f g t
if t s g s as
P x YE z P YE z x
Fy z x
Fy z x z f x
fz.ly Zlx f lx fy z x
fz z
ff z x z dx f x f z x dx
which is another convolution
out that
I n
mail.tt tEEIE
Example difference between two i i d exponential r.ve's X Y Exp X
Note that f g y f y for the exponential distribution so we
can treat x̅ 5 like the sum between x̅ and Y
fx y
z
f x z x dx
f f x f x z dx
xe tx.net ax
calculation
fy z f x y
Z
x y Z
You may realize that for more complex distributions computing the
convolution sum or
integral can become quite tedious In the rest of
G s cns
E E a b e s
a S bn i 5 Gals Gb S
substitute s et
Examples
discrete ru x̅ taking values in 0,1 2
Then G s
If skp k Note that G o 0 and G 1 1
G s 1
p so p s
ftp.t
Geometric v.v Geom p
G Ésk E Get p
_IpI
s 1
p p ps L
G s
Ésk e e
IT by Taylor series
G s
If skpy.lk G s
Efksk p k
Gx 1
fkP K E E X
by definition
My t
fet f x dx
you may notice the resemblance between this formula and the Laplace
transform from EE 202 For this reason generating functions are also
often called transforms
rather than its probability distribution the mgt may be more useful
than the pgf The change of variable sheet can be motivated for
the discrete rv case the series of My t
by expanding power
Mx.CH
E et k
E k
É E kpx.sk I E x̅
FEES 2
which is the exponential generating function of x E x̅ I
Examples
Esson r v x̅ Pois X
Mx t
E et py.lk E.tk If
e
E.ly e xexet fexEy
Following I the moments of x̅ can now be computed via
taking
the derivative
M LH
I E x̅ IE X IE x̅ ÉE x̅ E x
M t IE x̅ E X EE 3
MxCo E X
4
E M t E X E X E 2M o E x̅
E X4
M t E X E X
1M o E x
In general neIN
ÉM t
o
E x̅T
Examplescontinued continnousr.v.tt
Exponential r v x̅ Exp X
Mx t
f.be xe xxdx
xfet xxdx
it
e
My t
fetx f x dx
fxe x dx
My o
fx f x dx
fxf x dx E X
1 Mx t x etxf x dx
1 Mx o x f x dx E E X
In general Unein
f iMEfx̅If t
o
Note that in our derivation above we interchanged the derivative and
the integral For example
fetx f x dx et f x dx
fxet f x dx
This is not something you can always do Leibniz integral rule see
jointpf is defined
by
E E SET
Gxy s t s t ER
This definition can be extended to an arbitrary number of v.v s
Gs s
G s 1 p
ps
Moreover the sum of two Binomial vv s S Bin n
p S2 Bin m
p
with the same
p has generating function
ⁿtm
Gsits s 1 p
ps
My t
fitz e ets dy
tze.lk ttyd
etkf é dy by completing
the square
Thisisthepf
of distributed
a v.v
like N t 1
eᵗ by normalization probability axiom
tmt7
et tht
M t IE eat letting eat my a eᵗᵗ
Now we can compare the result from the example at thestartof
today's lecture with the mgt characterization method Suppose we
t Mx that
Mz My t My t