08.10.2016 Views

Foundations of Data Science

2dLYwbK

2dLYwbK

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Let<br />

Substituting (12.2) into (12.1) yields<br />

f(x) =<br />

∞∑<br />

f i x i . (12.2)<br />

i=0<br />

Thus, f(x) =<br />

x<br />

1−x−x 2<br />

f(x) − f 0 − f 1 x = x (f(x) − f 0 ) + x 2 f(x)<br />

f(x) − x = xf(x) + x 2 f(x)<br />

f(x)(1 − x − x 2 ) = x<br />

is the generating function for the Fibonacci sequence.<br />

Note that generating functions are formal manipulations and do not necessarily converge<br />

outside some region <strong>of</strong> convergence. Consider the generating function f (x) =<br />

∞∑<br />

∑<br />

f i x i = for the Fibonacci sequence. Using ∞ f i x i ,<br />

i=0<br />

x<br />

1−x−x 2<br />

and using f(x) =<br />

Asymptotic behavior<br />

x<br />

1−x−x 2 f(1) =<br />

i=0<br />

f(1) = f 0 + f 1 + f 2 + · · · = ∞<br />

1<br />

1 − 1 − 1 = −1.<br />

To determine the asymptotic behavior <strong>of</strong> the Fibonacci sequence write<br />

f (x) =<br />

√<br />

x<br />

5<br />

1 − x − x = 5<br />

2 1 − φ 1 x + − √ 5<br />

5<br />

1 − φ 2 x<br />

where φ 1 = 1+√ 5<br />

and φ<br />

2 1 = 1−√ 5<br />

are the reciprocals <strong>of</strong> the two roots <strong>of</strong> the quadratic<br />

2<br />

1 − x − x 2 = 0.<br />

Then<br />

Thus,<br />

f (x) =<br />

√<br />

5<br />

5<br />

(<br />

1 + φ 1 x + (φ 1 x) 2 + · · · − ( 1 + φ 2 x + (φ 2 x) 2 + · · ·)) .<br />

f n =<br />

√<br />

5<br />

5 (φn 1 − φ n 2) .<br />

√<br />

Since φ 2 < 1 and φ 1 > 1, for large n, f n<br />

∼ = 5<br />

5 φn 1. In fact, since f n = √ 5<br />

⌊<br />

5 (φn 1 − φ n 2) is an<br />

integer and φ 2 < 1, it must be the case that f n = f n + √ ⌋<br />

⌊ √5 ⌋<br />

5<br />

2 φn 2 . Hence f n =<br />

5 φn 1 for<br />

all n.<br />

Means and standard deviations <strong>of</strong> sequences<br />

420

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!