Description Usage Arguments Value References Examples
Provides a demonstration of the law of large numbers using draws from a
gamma distribution with shape 20 and scale 1/20.
The mean and variance, then, are kθ = 120 and
kθ^2 = 2400 for each i.
Draws from the distribution used here can be made by rgamma(n, 6, 1/20)
;
see ?rgamma
for more details about the function.
The law of large numbers essentially states that, for independent samples from some parent distribution, the sample mean (variance) converges in probability towards the expected value of a population statistic. More precise statements can be found in the references or from Wikipedia.
The Law of Large Numbers is useful because it gives conditions under which an estimator converges to its population value.
1 | lln_demo(n = 5000)
|
n |
A positive integer greater than 100. |
A list with
data |
The constructed dataset used for plotting |
plot |
A ggplot plot object showing convergence of the mean and variance |
Billingsley, Patrick. Probability and measure. John Wiley & Sons, 2008.
1 | lln_demo()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.