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

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

f(x,y) = , ((xx)/h) ((y-ys)/hy) nhng

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?

f(x,y) = , ((xx)/h) ((y-ys)/hy) nhng

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Statistics Principles And Methods Questions!