generate pseudorandom and quasi-random numbers
statistically, random numbers exhibit no predictable pattern or regularity. sequences of statistically random numbers are used to simulate complex mathematical and physical systems.
random number generators can be used to approximate a random integer from a uniform distribution. when generated by a machine, these numbers are pseudorandom, which means they are deterministic and can be replicated in the same sequence. this allows for the ability to recreate an experiment or simulation with repeatable results, typically by specifying the algorithm as well as starting seeds.
many types of monte carlo simulations require sequences that approximate other parametric or nonparametric distributions. some common probability distributions include:
- normal (or gaussian) distribution
- weibull distribution: used for reliability and survivability analysis
- generalized extreme value (gev) distribution: used in financial risk and insurance modeling
- logistic distribution: used to model categorical response variables in logistic regression
- kernel distribution: used to model when the data generating process is unknown
- copulas (multivariate distributions): used to model dependency structure between variables
when common random generation methods are inadequate, such as in bayesian data analysis, then a markov chain monte carlo (mcmc) simulation using metropolis hastings and slice sampling algorithms are the preferred choice for generating posterior distributions.
quasi-random numbers can be generated from solbol or halton sequences that produce uniform space filling numbers. these are useful for monte carlo simulations and experimental designs where space filling properties are more desirable than statistical randomness.
for more information, please see statistics and machine learning toolbox™.
examples and how to
software reference
see also: machine learning, smoothing, data analysis, mathematical modeling