Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: scale errors in kdensity


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: scale errors in kdensity
Date   Mon, 12 Nov 2007 17:55:56 -0000

This is not strange at all. A density need not have the same units
as probability, and usually doesn't. There is a section detailing this
point in the manual. 

Here's one demonstration. If x is uniform on [0, 1] its density 
is constant at 1 and necessarily integrates to 1. Then 0.5x will be 
uniform on [0,0.5] and its density is necessarily constant at 2.
Otherwise the density would not in turn integrate to 1. 

Nick 
n.j.cox 

Yue Li

I met a strange problem when using kdensity and hope someone could help
me.

When i use kdensity to draw density graph of my data, the scale of the
probablity excees one.  Is this the problem of the command or anything?

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index