Generating Functions Will Perkins February 14, 2013 Turning a - - PowerPoint PPT Presentation

generating functions
SMART_READER_LITE
LIVE PREVIEW

Generating Functions Will Perkins February 14, 2013 Turning a - - PowerPoint PPT Presentation

Generating Functions Will Perkins February 14, 2013 Turning a Function into a Sequence Definition Let a = a 0 , a 1 , a 2 , . . . be a sequence of real numbers. Then the generating function of a is G a ( x ) = a 0 + a 1 x + a 2 x 2 + . . . This


slide-1
SLIDE 1

Generating Functions

Will Perkins February 14, 2013

slide-2
SLIDE 2

Turning a Function into a Sequence

Definition Let a = a0, a1, a2, . . . be a sequence of real numbers. Then the generating function of a is Ga(x) = a0 + a1x + a2x2 + . . . This is called a ‘formal power series’ since we define the function without worrying whether or not the series converges. (It may for some choices of x but not for others).

slide-3
SLIDE 3

Basic Examples

The sequence a = 1, 1, . . . has the generating function G(s) = 1 + s + s2 + · · · = 1 1 − s The sequence a = 1, q, q2 . . . has the generating function G(s) = 1 1 − qs The sequence a = 1/0!, 1/1!, 1/2!, . . . has the generating function G(s) = es

slide-4
SLIDE 4

Probability Generating Functions

Let X be a discrete random variable taking the values 0, 1, 2, . . . . Then there is a generating function easily associated to X: GX(s) = Pr[X = 0] + Pr[X = 1]s + Pr[X = 2]s2 + . . . This is the probability generating function of X. Examples - find the generating functions for: Bernoulli Poisson Discrete Uniform Geometric Binomial (later)

slide-5
SLIDE 5

Properties of Probability Generating Functions

Some properties of GX(s):

1 GX(1) = 1 2 GX(0) = Pr[X = 0] 3 G ′ X(0) = Pr[X = 1] 4 G ′ X(1) = EX 5 G (k) X (0) =? 6 G (k) X (1) =? 7 GX(s) = EsX

slide-6
SLIDE 6

Convolutions

Definition Let a = a0, a1, . . . and b = b0, b1, . . . . The convolution of a and b, denoted a ∗ b is the sequence c0, c1, c2, . . . in which ci =

i

  • j=0

ajbi−j I.e., a0b0, a0b1 + a1b0, a0b2 + a1b1 + a2b0, . . .

slide-7
SLIDE 7

Convolutions

Fact: If πX and πY are the probability mass sequences of two independent discrete random variables X and Y , then the probability mass sequence of X + Y is πX+Y = πX ∗ πY Proof: Pr[X + Y = k] =

k

  • j=0

Pr[X = j] Pr[Y = k − j]

slide-8
SLIDE 8

Convolutions and Generating Functions

Convolutions work nicely with generating functions: Ga∗b = Ga · Gb

slide-9
SLIDE 9

Examples

Prove that the sum of two independent Poisson RV’s is another Poisson. Find the generating function of a binomial RV.

slide-10
SLIDE 10

Composition of Generating Functions

We can use generating functions to understand sums of a random number of independent random variables: Theorem Let Z = X1 + · · · + XN where the Xi’s are iid with generating function GX and N is a random variable with generating function

  • GN. Then

GZ(s) = GN(GX(s)) Proof: Using conditional expectation.

slide-11
SLIDE 11

Example

Let N ∼ Pois(λ) and let X ∼ Bin(N, p). What is the distribution

  • f X?