Skip to content
Prev 132369 / 398506 Next

regression towards the mean, AS paper November 2007

On Dec 17, 2007 3:10 PM, hadley wickham <h.wickham at gmail.com> wrote:
Thanks for the example, Hadley.  To me, this suggests we should stop
teaching histograms in Stat 101 and instead use quantile plots, which
give excellent results for n=100 and even surprisingly good results
for n=10:

par(mfrow=c(2,2))
for(i in c(10, 100, 1000, 10000)) {
  qqplot(runif(i), qunif(seq(1/i, 1, length=i)), main=i,
         xlim=c(0,1), ylim=c(0,1),
         xlab="runif", ylab="Uniform distribution quantiles")
  abline(0,1,col="lightgray")
}

Kevin (drifting even further off topic)