01 / 21

Simulation &
Monte Carlo

Learn how random sampling and repeated trials power modern decision-making: from pricing products to managing risk.

Business Analytics

What Is a Simulation?

A simulation is a computational model that imitates a real-world process. Instead of solving a problem with a single formula, we run the process many times using random inputs and observe what happens.

Model
A simplified mathematical description of a real system
Random Input
Values drawn from probability distributions to capture uncertainty
Output
A distribution of possible results: not one answer, but thousands

Why Simulate Instead of Calculate?

Many real business problems have too many variables, nonlinear relationships, or complex interactions to solve with a neat formula. Simulation lets us explore the full range of "what could happen."

Enter the Monte Carlo Method

The Monte Carlo method is a specific simulation technique. It uses repeated random sampling to estimate a quantity that may be difficult or impossible to compute analytically. Named after the famous casino in Monaco.

Quarter Circle in a Square Green = inside arc, Red = outside arc Ratio of green to total points \(\approx \pi/4\)

The Core Idea: Law of Large Numbers

Monte Carlo relies on a powerful statistical fact: as the number of random trials \( n \) grows, the sample average converges to the true expected value.

How Estimates Converge

As we increase the number of trials \( n \), the running average stabilizes around the true value. Early estimates swing wildly; later estimates barely move.

True \(\mu\) 10 100 1K 10K Number of Trials (n) Estimate

Analytical vs Simulation

Analytical Monte Carlo Simulation
Approach Exact formula Repeated random trials
Complexity Struggles with many variables Handles high complexity
Output Single point estimate Full probability distribution
Assumptions Often requires simplification Flexible, fewer restrictions
Speed Instant (if formula exists) Requires computation time

Key Terminology

Trial / Iteration
One complete run of the model with a set of random inputs
Random Variable
An uncertain input drawn from a probability distribution
Distribution
The shape of randomness: Normal, Uniform, Triangular, etc.
Percentile / VaR
Cut-off points in the output: "5th percentile profit" = worst-case scenario

How to Run a Monte Carlo Simulation

1
Define the model. Write the formula that maps inputs to the output you care about (e.g., Profit = Revenue - Cost).
2
Identify uncertain inputs. Decide which variables are random and assign a probability distribution to each.
3
Generate random samples. Draw one value from each distribution to create a single scenario.
4
Compute the output. Plug the sampled values into the model to get one result.
5
Repeat \( n \) times. Run steps 3-4 thousands of times (e.g., \( n = 10{,}000 \)).
6
Analyze the results. Compute the mean, standard deviation, and percentiles of the output distribution.

Example 1: Lemonade Stand Profit

A student runs a weekend lemonade stand. Daily demand is uncertain. We model it as:

Example 1: 10,000 Trials

After running \( n = 10{,}000 \) trials, we get a distribution of possible daily profits:

Mean \(\approx \$90\) 5th %ile \(\approx \$41\) -$30 $30 $90 $150 $210 Daily Profit ($) Frequency

Reading the Results

Mean Profit
\( \bar{X} \approx \$90 \): the average across all 10,000 trials
Std Dev
\( s \approx \$30 \): measures spread / risk in outcomes
5th Percentile
\( \approx \$41 \): in the worst 5% of days, you earn at most this
\(P(\text{Loss})\)
\( P(\text{Profit} < 0) \approx 0.13\% \): very low chance of losing money

Example 2: Investment Risk

An investor puts \$10,000 into a stock. Annual return is uncertain. We model yearly return as \(R \sim \text{Normal}(\mu = 0.08, \sigma = 0.15)\). After one year:

Example 3: Estimating \(\pi\)

Drop random points into a unit square. Count how many fall inside a quarter circle of radius 1. The ratio estimates \( \pi / 4 \).

\( n = 100 \)
Estimate: ~3.08. Rough but in the ballpark.
\( n = 10{,}000 \)
Estimate: ~3.142. Accurate to 2 decimal places.
\( n = 1{,}000{,}000 \)
Estimate: ~3.14159. Nearly exact.

Common Mistakes

✕ Too Few Trials
Running only 50-100 iterations gives wildly unstable estimates. Use at least \( n = 1{,}000 \), ideally \( n = 10{,}000+ \).
✕ Wrong Distribution
Using a Normal distribution when data is skewed or bounded (e.g., demand can't be negative). Always validate your distributional assumption.
✕ Ignoring Correlation
Treating inputs as independent when they move together (e.g., cost and demand both rise in summer) produces misleading results.

Summary: Monte Carlo at a Glance

Concept Details
What it is Repeated random sampling to approximate a result
Foundation Law of Large Numbers: \( \bar{X}_n \to \mu \) as \( n \to \infty \)
Key input Probability distributions for each uncertain variable
Key output Distribution of outcomes: mean, spread, percentiles
Error rate Standard error \( \propto 1/\sqrt{n} \): \( 4\times \) trials = \( 2\times \) precision
Best for Complex, multi-variable, nonlinear business problems

Question 1 of 5

What is the primary advantage of Monte Carlo simulation over a single-point analytical estimate?

Question 2 of 5

In a Monte Carlo simulation with \( n \) trials, the standard error of the estimate is proportional to:

Question 3 of 5

A coffee shop models daily demand as \(D \sim \text{Normal}(100, 25)\). In a single Monte Carlo trial, what does the simulation do?

Question 4 of 5

In the \( \pi \)-estimation experiment, 7,856 out of 10,000 random points fall inside the quarter circle. What is the estimate of \( \pi \)?

Question 5 of 5

Which statistical principle guarantees that a Monte Carlo estimate improves with more trials?