5.2. We can apply two-dimensional kernel analysis directly, as well as using ASH. This is most straightforward

Question:

5.2. We can apply two-dimensional kernel analysis directly, as well as using ASH. This is most straightforward for the normal kernel aligned with axes, that is with variance diag(h2x, h2y) . Then the kernel estimate is

image text in transcribed

which can be evaluated on a grid as XyT where Xis = ¢ ((gxi - X s) / hx)
and (gxi) are the grid points, and similarly for y. Write a function kde2d to implement this, and try it on the f ai thful examples. How would you choose the bandwidths?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Modern Applied Statistics With S-Plus

ISBN: 9781489928191

1st Edition

Authors: W. N. Venables, B. D. Ripley

Question Posted: