| oldFaith | R Documentation |
The oldFaith numerical vector has 107 observations corresponding to durations in minutes of the Old Faithful geyser, Yellowstone National Park, U.S.A.
data(oldFaith)
Weisberg (1980). Applied Linear Regression. New York: Wiley.
Silverman, B.W. (1986). Density Estimation for Statistics and Data Analysis. London: Chapman and Hall.
data(oldFaith)
hist(oldFaith,breaks = 20,col = "gold")
library(KernSmooth)
selectedBandwidth <- dpik(oldFaith)
densEst <- bkde(oldFaith,bandwidth = selectedBandwidth)
plot(densEst,col = "blue",lwd = 2,type = "l",xlab = "duration (minutes)",
ylab = "density")
rug(oldFaith,col = "red")
abline(h = 0,col = "green3")