Skip to content

Use simulation and the Law of Large Numbers to estimate a probability.

Notifications You must be signed in to change notification settings

iamgiddyaboutgit/law-of-large-numbers

Repository files navigation

Use the Law of Large Numbers to estimate E(X) and Var(X)

The code makes use of Welford's online variance method to allow for easy updating.

The file sampling-sim.R contains the main script and calls the others. The user should modify the function X() in X.R as necessary to simulate his unique use case. X() should be modified to return values of your random variable.

About

Use simulation and the Law of Large Numbers to estimate a probability.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages