confusion on 2 dimension kernel density estimation in R
问题 A kernel density estimator is used to estimate a particular probability density function (see mvstat.net and sckit-learn docs for references) My confusion is about what exactly does kde2d() do? Does it estimate the joint distribution probability density function of two random variables f(a,b) in the below example? And what does the color mean? Here is the code example I am referring to. b <- log10(rgamma(1000, 6, 3)) a <- log10((rweibull(1000, 8, 2))) density <- kde2d(a, b, n=100) colour_flow