Kernel Density Estimation for Dynamical Systems