Lecture 5
1
Random Numbers
Agenda
2
1. Properties of Random Numbers
3
1. Properties of Random Numbers
4
1. Properties of Random Numbers
5
1. Properties of Random Numbers
6
2. Generation of Pseudo-Random Numbers (PRN)
7
2. Generation of Pseudo-Random Numbers (PRN)
8
2. Generation of Pseudo-Random Numbers (PRN)
9
2. Generation of Pseudo-Random Numbers (PRN)
10
3. Techniques for Generating Random Numbers
11
3. Techniques for Generating Random Numbers : Linear Congruential Method๏ฟฝ
12
The multiplier
The increment
The modulus
3. Techniques for Generating Random Numbers: Linear Congruential Method ๏ฟฝ
13
3. Techniques for Generating Random Numbers: Linear Congruential Method ๏ฟฝ
โฆ
14
3. Techniques for Generating Random Numbers : Linear Congruential Method
15
3. Techniques for Generating Random Numbers: Mid Square Random Number Generator
16
3. Techniques for Generating Random Numbers: Mid Square Random Number Generator
17
4. Random Numbers Sample Applications๏ฟฝ๏ฟฝComputation of Irregular Area using Monte Carlo Simulation
18
4. Random Numbers Sample Applications๏ฟฝComputation of Irregular Area using Monte Carlo Simulation
1. Randomly select a location (point) within the rectangle.
2. If it is within the black area, record this instance a hit.
3. Generate a new location and follow 2.
4. Repeat this process 10,000 times.
19
4. Random Numbers Sample Applications๏ฟฝComputation of Irregular Area using Monte Carlo Simulation
20
Exercise
21
Exercise
22
Thank You
23
Exercise
Q1. Explain the properties of Random Numbers.
Q2. What is Uniformity?
Q3. What is Independence?
Q4. What is the goal of generation of Pseudo Random Numbers?
Q5. Explain the problems that occur in generation of pseudo-random numbers.
Q6. Explain Linear Congruential Method.
Q7. Explain Mid Square Random Number Generator.
24
Q8. The probability of observing a value in a particular interval is
Q9. Generating numbers using a known method removes the potential for true randomness thatโs why it is
25