The sample mean converges to the population mean.
library(animation)
saveHTML({
ani.options(interval = 0.1, nmax = 100)
par(mar = c(3, 3, 2, 1.5), mgp = c(1.5, 0.5, 0))
lln.ani(cex = 0.6)
}, img.name = "lln_ani", htmlfile = "lln.ani.html", ani.height = 500,
ani.width = 600, title = "Demonstration of the Law of Large Numbers",
description = c("The sample mean approaches to the population mean as\nthe sample size n grows."))
This page is maintained by Guisheng Lee.