Skip to content
Prev 175045 / 398506 Next

Density estimation: scale back for calendar time

Pradeep Raje <raje.pradeep <at> gmail.com> writes:
But not shared it.
Obviously you are having problems with interpretation which is why I suggested 
that you provide a worked example. Since you appear to be resisting that 
suggestion, let's talk about hypotheticals. Two results of a density 
estimation will be density(dat)$x and density(dat)$y. The first of these is not 
a probability and could be negative in any instances where negative numbers 
were in the domain of the dat object. And it might be negative in situations 
with postive values where an estimation extended slightly beyond the original 
dataset. It is the y values that are necessarily positive. 

The idea that dates associated with a numerical object could be used to label a 
density plot seems strange. The process of density estimation would scrample 
the order of the original data so that the densities could be calculated. In a 
sense the y-axis of the original object will become the new x-axis of the 
density object. There would be no way to restore that "date" order. It had been 
my hope that a request for an example would make that more clear. Back to you.