[R] Strange results from dbeta function

Bert Gunter gunter.berton at gene.com
Sat Oct 26 20:41:59 CEST 2013


I suggest you review your stat101 text:

A cdf is between 0 and 1, not a pdf, which is a **density** function.

> dnorm(0, sd=.01)
[1] 39.89423

-- Bert


On Sat, Oct 26, 2013 at 11:31 AM, Noah Silverman <noahsilverman at ucla.edu> wrote:
> Hello,
>
> I’m seeing some strange behavior from the dbeta() function in R.
>
> For example:
>
>> dbeta(0.0001, .4, .6 )
> [1] 76.04555
>
>
> How is it possible to get a PDF that is greater than 1??
>
> Am I doing something wrong here, or is this a quirk of R.
>
> Thanks,
>
> --
> Noah Silverman, M.S., C.Phil
> UCLA Department of Statistics
> 8117 Math Sciences Building
> Los Angeles, CA 90095
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



-- 

Bert Gunter
Genentech Nonclinical Biostatistics

(650) 467-7374



More information about the R-help mailing list