Probability and Statistics for Engineering Lecture 9-11 Notes
Monte Carlo Methods
Introduction and Theoretical Basis
Monte Carlo methods, or Monte Carlo experiments, are a board class of computational algorithms that rely on repeated random sampling to obtain numerical results.
The law of large numbers (or LLN for short) states that the average of the results obtained from a large number of independent random samples converges to the true mean, if it exists.
Law of Large Numbers
Let
Tip
This is actually the weak law of large numbers.
A special case of the LLN is when
Therefore, the LLN provides the theoretical basis for the Monte Carlo methods, which essentially calculate probabilities/expectation as long-run frequencies/averages.
Simulation of Random Variables
Generating random numbers is often nontrivial to do. Typically, we use the pseudo-random number generators (or PRNG for short) to generate a sequence of numbers whose properties approximate the properties of sequence of “truly random” numbers.
Example
Obtain numbers from the following distributions based on a uniform distribution random number generator:
.
Solution 1. For random variable
Solution 2. Consider the PMF of
For the continuous distributions, we utilize the inverse transformation sampling:
Example
Obtain numbers from the following distributions based on a uniform distribution random number generator:
, where is a positive integer
Solution 1. For random variable
Solution 2. The CDF of Gamma distribution has no closed-form
expression, but we can utilize the fact that
Solution 3. To sample from
To sample from more complicated distributions, we can use the
rejection sampling. The rejection sampling can be used given
the PDF
Since it is difficult to sample from the target distribution,
rejection sampling turns to sample from a distribution with PDF
Then each number generated from
Theorem
Let
Proof. It is essentially a problem of determining the
marginal distribution of
When using
- Simulate a number
from and a number from . - Then
is a point uniformly distributed on a rectangle region. - If
, then reject , otherwise is a desired number from .
However, to avoid the case where the support of
and have the same support- There is a constant
s.t. for all in the support.
Then the rejection sampling is:
- Sample
from . - Sample
from , reject if
- otherwise we accept
.
Acceptance Probability of Rejection Sampling
For each number
Proof.
Tip
We only need to know
- Title: Probability and Statistics for Engineering Lecture 9-11 Notes
- Author: Zhige Chen
- Created at : 2025-11-26 23:57:24
- Updated at : 2025-12-09 00:15:23
- Link: https://nofe1248.github.io/2025/11/26/pse-4/
- License: This work is licensed under CC BY-NC-SA 4.0.