So, I have some idea how to smooth a set of points to produce a smooth estimate of the conditional mean.
Suppose that I want to estimate the standard deviation locally. That is, I have a set of points (x,y) and in different regions of the x space, the standard deviation of y might vary. I would like to produce a smooth estimate of the standard deviation.
My guess would be to do something like nearest neighbours. So, at every value of x, pick the 10 nearest points, say, and calculate the standard deviation.
Is that right? Is there any theory that bears on this?
I suppose answers will apply to any statistic, not just the s.d., but I chose the s.d. because it clearly has to be calculated from more than just individual points.