Last chance! 50% off unlimited learning
Sale ends in
powered by
m
NadarayaWatsonkernel(x, y, h, gridpoint)
x
y
h
E. Parzen (1962) On estimation of a probability density function and mode, The Annals of Mathematical Statistics, 33(3), 1065-1076.
E. A. Nadaraya (1964) On estimating regression, Theory of probability and its applications, 9(1), 141-142.
G. S. Watson (1964) Smooth regression analysis, Sankhya: The Indian Journal of Statistics (Series A), 26(4), 359-372.
x = rnorm(100) y = rnorm(100) NadarayaWatsonkernel(x, y, h = 2, gridpoint = seq(-3, 3, length.out = 100))
Run the code above in your browser using DataLab