Lect14
Lect14
Overview
The aim is to introduce the fundamental concepts
behind Monte Carlo methods. The specific learning
objectives are:
a) To become familiar with the general scope of Monte
Carlo methods;
b) To understand the key components of the Monte Carlo
method;
c) To understand to role of “randomness” in Monte Carlo;
d) To understand the importance of careful choice of
random number generators;
e) To be able to write simple Monte Carlo programs.
1
2024/12/26
2
2024/12/26
3
2024/12/26
4
2024/12/26
Introduction
The Monte Carlo method provides approximate solutions
to a variety of mathematical problems by performing
statistical sampling experiments on a computer.
5
2024/12/26
6
2024/12/26
𝑥𝑦𝑧(𝑥 + 𝑦 + 𝑧 ) 𝑥 𝑦 𝑧
=
3 𝑥 𝑦 𝑧
7
2024/12/26
8
2024/12/26
Simpson’s rule
A Simple Integral
Consider the simple integral:
𝐼= 𝑓 𝑥 𝑑𝑥
9
2024/12/26
A Simple Integral
(continued…)
𝑅 =
{(𝑥, 𝑦): 𝑎 𝑥 𝑏, 0 𝑦 max 𝑓(𝑥)}
Randomly tossing 100 or so
darts we could approximate the
integral…
𝐼 = [fraction under 𝑓(𝑥)] *
(𝑎𝑟𝑒𝑎 𝑜𝑓 𝑅)
A Simple Integral
(continued…)
Generally, the more iterations of the game the better the
approximation will be. 1000 or more darts should yield a
more accurate approximation of the integral than 100 or
fewer.
10
2024/12/26
11