Monte Carlo Simulation - An Introduction
Monte Carlo Simulation - An Introduction
2
Introduction to Monte Carlo Methods
What is Monte Carlo Simulation
• The essential idea is just to use repeated random sampling in order to obtain a
reliable result.
happening without
method or
conscious decision
3
Introduction to Monte Carlo Methods
What is Monte Carlo Simulation An example
𝝈=
52.9
Tuesday
• Based on the last 1 or 2 years (> Wednesday 4.86
600 results) Thursday
• Get the mean (average) no of calls Friday
for each period and the standard Saturday
deviation (how far from the mean) Sunday
OR
we can simulate the future likelihood
of calls based on the historical pattern
of data – using Monte Carlo
simulation
4
Introduction to Monte Carlo Methods
What is Monte Carlo Simulation An example
Question: Why do we need to simulate the variable, rather than just looking at its
historical behavior?
50
𝝁 = 52.9
𝝈 = 4.86
250 - we will randomly simulate the no. of
calls in the 775 days
200 - And repeat this many, many times
to represent different paths (trials)
No of days
50
Day
No of emergency calls on Monday mornings 1 2 3 4 ….775 Average
Trial 1 20 40 76 67 51
Trial 2 94 58 75 120 87
59
Trial 3 15 30 58 104 52 simulated
Trial 4 6 118 31 25 45 average
Trial 5 51 26 119 101 74
Trial 6 23 25 77 19 36
calls on
Trial 7 56 104 110 3 68 Monday
Trial 8 8 25 69 109 53 mornings
Trial 9 95 69 97 102 91
Trial 10 34 109 69 16 57
Trial 11 12 2 27 25 17
Trial 12 114 90 36 49 72
.
.
.. Trial 10,000
7
Introduction to Monte Carlo Methods
Understanding probability spaces
8
Introduction to Monte Carlo Methods
Applying Monte Carlo to Business Risk and Finance
9
Introduction to Monte Carlo Methods
Application example – determining profitability of a business
Company Galaxy is developing a new smartphone named HomTom. The company wants to
predict the first year profits of this new phone by considering the following factors:
• Selling price per unit (p). The price for the new phone is RM 249 each.
• First-year administrative and advertising costs (ca). Currently, this cost is RM 1,000,000.
fixed
10
Derive a simple formulae for profit Source: Bos Class: Data analysis modeling and analytical software (R, Python)
Introduction to Monte Carlo Methods
Application example – determining profitability of a business
11
Introduction to Monte Carlo Methods
Application example – determining profitability of a business
$43 0.1
$44 0.2
$45 0.4
$46 0.2
$47 0.1
12
Introduction to Monte Carlo Methods
Application example – determining profitability of a business
13
Introduction to Monte Carlo Methods
Application example – determining profitability of a business
0.3
0.2
0.1
14
Introduction to Monte Carlo Methods
Application example – determining profitability of a business
Step 2 – Generate a random number for every variable from their respective probability
distributions
15
Introduction to Monte Carlo Methods
Application example – determining profitability of a business
Step 2 – Generate a random number for every variable from their respective probability
distributions
16
Introduction to Monte Carlo Methods
Application example – determining profitability of a business
Step 2 – Generate a random number for every variable from their respective probability
distributions
17
Introduction to Monte Carlo Methods
Application example – determining profitability of a business
Step 4 – Repeat the same steps 2 & 3 and get thousands of trials.
With the simulated profits, you can do several analysis, for example:
Advantages
We can simulate realities that have different scenarios with different probabilities.
We can simulate realities in which real experiments are impossible (e.g. climate change)
Addresses some analysts’ narrow subjective opinions
A good substitute when (i) data is scarce ; (ii) using deterministic mathematical formulas are
cumbersome
Disadvantages
Can take a lot of computing power – but now with the “cloud” it gets easier
Simulated results can go horribly wrong if the underlying distributions of the simulated
variables (unknown) are not truly represented
20