11.07.2015 Views

Preface to First Edition - lib

Preface to First Edition - lib

Preface to First Edition - lib

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

DENSITY ESTIMATION 143rectangular:⎧⎨K(x) =⎩12|x| < 10 elsetriangular:Gaussian:⎧⎨ 1 − |x| |x| < 1K(x) =⎩0 elseK(x) = 1 √2πe − 1 2 x2The three kernel functions are implemented in R as shown in lines 1–3of Figure 8.1. For some grid x, the kernel functions are plotted using the Rstatements in lines 5–11 (Figure 8.1).The kernel estima<strong>to</strong>r ˆf is a sum of ‘bumps’ placed at the observations.The kernel function determines the shape of the bumps while the windowwidth h determines their width. Figure 8.2 (redrawn from a similar plot inSilverman, 1986) shows the individual bumps n −1 h −1 K((x−x i )/h), as well asthe estimate ˆf obtained by adding them up for an artificial set of data pointsR> x n xgrid h bumps

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

Saved successfully!

Ooh no, something went wrong!