Professional Documents
Culture Documents
6 - Simulation and Probablistic Modeling
6 - Simulation and Probablistic Modeling
Example
1. The area under a curve is deterministic (even if we can’t find it
precisely).
2. The time between arrivals of customers at an elevator on a
particular day is probabilistic.
1. Middle-Square Method
2. Linear Congruence Method
NOTE
One disadvantage is this method has a tendency to degenerate to zero.
NOTE
mod 𝑐 means to obtain the remainder after dividing the quantity
𝑎𝑥𝑛 + 𝑏 by 𝑐.
Generating Random Numbers - Random Numbers 13
EXERCISE 3
Let’s start with the seed 𝑥𝑜 = 7 where 𝑎 = 1, 𝑏 = 7, and 𝑐 = 10.
0≤𝑓 𝑥 ≤𝑀
1
The probability of obtaining heads or tails on a flip of a coin is . What
2
happens when we actually flip a coin? Will one out of every two slips
be tails?
Probability is a long run average. Thus, in the long run, the ratio of the
number of tails to the number of flips approaches 0.5.
1
heads 0 ≤ 𝑥 ≤
𝑃 𝑥 = 2
1
tails ≤𝑥≤1
2
The general rule is that in order to double accuracy of the result, four
times as many experiments are necessary.