SlideShare a Scribd company logo
1 of 30
Kamla Nehru Institude of Technology, UP
Submitted To: Submitted By:
Dr. Aruni Singh Amit Agarwal
Assistant Professor M.Tech (FT)
Knit Sultanpur (UP) 2010202
Content
2
• Random number generation
• Properties of random numbers
• Generation of pseudo-random numbers
• Techniques for generating random numbers
• Tests for Random Numbers
• Random-Variate Generation:
• Inverse transform technique
• Acceptance-Rejection technique
• Special properties
3
Properties of RandomNumbers
• The main properties of random numbers are
• Uniformity
• Independence
• Maximum density
• Maximum period
• Maximum density means that the gaps between random numbers
should not be large, can be achieved by having maximum period.
• Maximum period refers the length of the sequence of random
numbers which are going to repeat after a certain random numbers.
4
• The following figure shows the pdf for random numbers
6
Generation of Pseudo RandomNumbers
• Pseudo means false , here it implies generating random numbers by
known method to remove the potential for true randomness.
• If the method is known then set of random numbers can be repeated.
• Which means that numbers are not random
• The main goal of random generation technique is to produce a
sequence of numbers between 0 and 1 that simulates or imitates the
ideal properties of uniform distribution and independence
• Random numbers are generated by digital computer as part of
simulation, there are numerous ways to generate these values
7
•The following are few important considerations:
• The method should be fast, simulation process requires millions of
random numbers hence it has to be fast
• The method has to be portable to different computer
• The method should have sufficiently long cycle, means there
should be long gap between the random numbers once generated
getting repeated.
• The random numbers should be repeatable
• The generatedrandomnumbersshould closely approximate the
ideal statistical properties of uniformity and independence
8
Errorsor Departuresof Pseudo Random Numbers
• The generated random numbers might not be uniformly distributed.
• Generated numbers might be discrete value instead of continuous
value.
• The mean of generated random numbers might be too high or too
low.
• The variance of generated numbers might be too high or too low.
• There might be dependence
• Authentication between numbers
• Numbers successively higher or lower than adjacent numbers
• Several numbers above the mean followed by several numbers below the
mean.
9
Techniques for Generating RandomNumbers
• Linear congruential method
• Combined linear congruential generators
• Random number streams
10
Linear CongruentialMethod
• Proposed by Lehmer, produces a sequences of integer numbers X1,X2 ,
…between zero and m-1 by following the recursive relationship:
• X i+1= (a Xi+c) mod m, i= 0,1,2,3…
• The initial value i.e. x0 is calledseed
• a is called multiplier
• c is called the increment
• m is called the modulus
• If c ≠ 0 then form is called mixed congruential method
• When c= 0, the form is called multiplicative congruential method
• The selection of the values for a, c, m and X0 affects the statistical
properties and the cycle length.
• Random numbers Ri between 0 and 1 can be generated by setting
i
• R =
11
i
m
, i=1,2
Continue
12
14
Combined Linear Congruential Generators
• Combine two or more multiplicative congruential generators in such a
way that the combined generator has good statistical properties and
longer period.
• The following result from L’Ecuyer suggest how this can be done:
15
16
17
18
Testsfor randomnumbers
of the set of numbers
Kolmogorov- Smirnov Test –for uniformity(Procedure)
1. Formulate the hypothesis
H0:Ri ~U[0,1] H1:Ri ~U[0,1]
2. Rank the data from smallest to largest
R(1) ≤ R(2) ≤R(3)…
3. Calculate the values of D+ and D-
19
20
4. Find D=max(D+,D-)
5. Find the critical value Dα from the K-S table
6. If D> Dα then
reject the hypothesis H0
else If D < Dα then
accept the hypothesis H0
Continue
Chi-square T
est–for uniformity(Procedure)
23
24
25
30
Thank You

More Related Content

What's hot

Approximation and error
Approximation and errorApproximation and error
Approximation and error
rubenarismendi
 
The monte carlo method
The monte carlo methodThe monte carlo method
The monte carlo method
Saurabh Sood
 
Monte Carlo Simulations
Monte Carlo SimulationsMonte Carlo Simulations
Monte Carlo Simulations
gfbreaux
 
Numerical approximation and solution of equations
Numerical approximation and solution of equationsNumerical approximation and solution of equations
Numerical approximation and solution of equations
Robinson
 

What's hot (20)

Random Number Generation
Random Number GenerationRandom Number Generation
Random Number Generation
 
Random number generation (in C++) – past, present and potential future
Random number generation (in C++) – past, present and potential future Random number generation (in C++) – past, present and potential future
Random number generation (in C++) – past, present and potential future
 
Error Finding in Numerical method
Error Finding in Numerical methodError Finding in Numerical method
Error Finding in Numerical method
 
Numerical Method
Numerical Method Numerical Method
Numerical Method
 
Error(Computer Oriented Numerical and Statistical Method)
Error(Computer Oriented Numerical and Statistical Method)Error(Computer Oriented Numerical and Statistical Method)
Error(Computer Oriented Numerical and Statistical Method)
 
Operations Research
Operations ResearchOperations Research
Operations Research
 
NUMERICAL METHOD
NUMERICAL METHODNUMERICAL METHOD
NUMERICAL METHOD
 
Approximation and error
Approximation and errorApproximation and error
Approximation and error
 
Operations Research
Operations ResearchOperations Research
Operations Research
 
Operations Research
Operations ResearchOperations Research
Operations Research
 
Midsquare method- simulation system
Midsquare method- simulation systemMidsquare method- simulation system
Midsquare method- simulation system
 
The monte carlo method
The monte carlo methodThe monte carlo method
The monte carlo method
 
Monte carlo simulation in food application
Monte carlo simulation in food applicationMonte carlo simulation in food application
Monte carlo simulation in food application
 
Monte Carlo Simulations
Monte Carlo SimulationsMonte Carlo Simulations
Monte Carlo Simulations
 
Numerical approximation and solution of equations
Numerical approximation and solution of equationsNumerical approximation and solution of equations
Numerical approximation and solution of equations
 
Oop lab assignment 01
Oop lab assignment 01Oop lab assignment 01
Oop lab assignment 01
 
Or ppt,new
Or ppt,newOr ppt,new
Or ppt,new
 
Error analysis
Error analysisError analysis
Error analysis
 
Mathematical Modeling for Practical Problems
Mathematical Modeling for Practical ProblemsMathematical Modeling for Practical Problems
Mathematical Modeling for Practical Problems
 
Monte carlo integration, importance sampling, basic idea of markov chain mont...
Monte carlo integration, importance sampling, basic idea of markov chain mont...Monte carlo integration, importance sampling, basic idea of markov chain mont...
Monte carlo integration, importance sampling, basic idea of markov chain mont...
 

Similar to Ppt

An Introduction to Simulation in the Social Sciences
An Introduction to Simulation in the Social SciencesAn Introduction to Simulation in the Social Sciences
An Introduction to Simulation in the Social Sciences
fsmart01
 

Similar to Ppt (20)

AN ALTERNATIVE APPROACH FOR SELECTION OF PSEUDO RANDOM NUMBERS FOR ONLINE EXA...
AN ALTERNATIVE APPROACH FOR SELECTION OF PSEUDO RANDOM NUMBERS FOR ONLINE EXA...AN ALTERNATIVE APPROACH FOR SELECTION OF PSEUDO RANDOM NUMBERS FOR ONLINE EXA...
AN ALTERNATIVE APPROACH FOR SELECTION OF PSEUDO RANDOM NUMBERS FOR ONLINE EXA...
 
Pseudo-Random Number Generators: A New Approach
Pseudo-Random Number Generators: A New ApproachPseudo-Random Number Generators: A New Approach
Pseudo-Random Number Generators: A New Approach
 
Ml ppt at
Ml ppt atMl ppt at
Ml ppt at
 
Discrete event simulation
Discrete event simulationDiscrete event simulation
Discrete event simulation
 
model simulating
model simulatingmodel simulating
model simulating
 
Random number generation
Random number generationRandom number generation
Random number generation
 
Week08.pdf
Week08.pdfWeek08.pdf
Week08.pdf
 
Unit 3 – AIML.pptx
Unit 3 – AIML.pptxUnit 3 – AIML.pptx
Unit 3 – AIML.pptx
 
4. random number and it's generating techniques
4. random number and it's generating techniques 4. random number and it's generating techniques
4. random number and it's generating techniques
 
Anomaly detection
Anomaly detectionAnomaly detection
Anomaly detection
 
Probability and random processes project based learning template.pdf
Probability and random processes project based learning template.pdfProbability and random processes project based learning template.pdf
Probability and random processes project based learning template.pdf
 
Outlier analysis and anomaly detection
Outlier analysis and anomaly detectionOutlier analysis and anomaly detection
Outlier analysis and anomaly detection
 
Introduction to simulation modeling
Introduction to simulation modelingIntroduction to simulation modeling
Introduction to simulation modeling
 
Estimating default risk in fund structures
Estimating default risk in fund structuresEstimating default risk in fund structures
Estimating default risk in fund structures
 
Data Structures - Lecture 1 [introduction]
Data Structures - Lecture 1 [introduction]Data Structures - Lecture 1 [introduction]
Data Structures - Lecture 1 [introduction]
 
Modeling & Simulation Lecture Notes
Modeling & Simulation Lecture NotesModeling & Simulation Lecture Notes
Modeling & Simulation Lecture Notes
 
An Introduction to Simulation in the Social Sciences
An Introduction to Simulation in the Social SciencesAn Introduction to Simulation in the Social Sciences
An Introduction to Simulation in the Social Sciences
 
Machine Learning techniques used in AI.
Machine Learning  techniques used in AI.Machine Learning  techniques used in AI.
Machine Learning techniques used in AI.
 
Introduction
IntroductionIntroduction
Introduction
 
Streaming Algorithms
Streaming AlgorithmsStreaming Algorithms
Streaming Algorithms
 

Recently uploaded

VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 

Recently uploaded (20)

chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 

Ppt

  • 1. Kamla Nehru Institude of Technology, UP Submitted To: Submitted By: Dr. Aruni Singh Amit Agarwal Assistant Professor M.Tech (FT) Knit Sultanpur (UP) 2010202
  • 2. Content 2 • Random number generation • Properties of random numbers • Generation of pseudo-random numbers • Techniques for generating random numbers • Tests for Random Numbers • Random-Variate Generation: • Inverse transform technique • Acceptance-Rejection technique • Special properties
  • 3. 3 Properties of RandomNumbers • The main properties of random numbers are • Uniformity • Independence • Maximum density • Maximum period • Maximum density means that the gaps between random numbers should not be large, can be achieved by having maximum period. • Maximum period refers the length of the sequence of random numbers which are going to repeat after a certain random numbers.
  • 4. 4
  • 5. • The following figure shows the pdf for random numbers
  • 6. 6 Generation of Pseudo RandomNumbers • Pseudo means false , here it implies generating random numbers by known method to remove the potential for true randomness. • If the method is known then set of random numbers can be repeated. • Which means that numbers are not random • The main goal of random generation technique is to produce a sequence of numbers between 0 and 1 that simulates or imitates the ideal properties of uniform distribution and independence • Random numbers are generated by digital computer as part of simulation, there are numerous ways to generate these values
  • 7. 7 •The following are few important considerations: • The method should be fast, simulation process requires millions of random numbers hence it has to be fast • The method has to be portable to different computer • The method should have sufficiently long cycle, means there should be long gap between the random numbers once generated getting repeated. • The random numbers should be repeatable • The generatedrandomnumbersshould closely approximate the ideal statistical properties of uniformity and independence
  • 8. 8 Errorsor Departuresof Pseudo Random Numbers • The generated random numbers might not be uniformly distributed. • Generated numbers might be discrete value instead of continuous value. • The mean of generated random numbers might be too high or too low. • The variance of generated numbers might be too high or too low. • There might be dependence • Authentication between numbers • Numbers successively higher or lower than adjacent numbers • Several numbers above the mean followed by several numbers below the mean.
  • 9. 9 Techniques for Generating RandomNumbers • Linear congruential method • Combined linear congruential generators • Random number streams
  • 10. 10 Linear CongruentialMethod • Proposed by Lehmer, produces a sequences of integer numbers X1,X2 , …between zero and m-1 by following the recursive relationship: • X i+1= (a Xi+c) mod m, i= 0,1,2,3… • The initial value i.e. x0 is calledseed • a is called multiplier • c is called the increment • m is called the modulus
  • 11. • If c ≠ 0 then form is called mixed congruential method • When c= 0, the form is called multiplicative congruential method • The selection of the values for a, c, m and X0 affects the statistical properties and the cycle length. • Random numbers Ri between 0 and 1 can be generated by setting i • R = 11 i m , i=1,2 Continue
  • 12. 12
  • 13.
  • 14. 14 Combined Linear Congruential Generators • Combine two or more multiplicative congruential generators in such a way that the combined generator has good statistical properties and longer period. • The following result from L’Ecuyer suggest how this can be done:
  • 15. 15
  • 16. 16
  • 17. 17
  • 19. Kolmogorov- Smirnov Test –for uniformity(Procedure) 1. Formulate the hypothesis H0:Ri ~U[0,1] H1:Ri ~U[0,1] 2. Rank the data from smallest to largest R(1) ≤ R(2) ≤R(3)… 3. Calculate the values of D+ and D- 19
  • 20. 20 4. Find D=max(D+,D-) 5. Find the critical value Dα from the K-S table 6. If D> Dα then reject the hypothesis H0 else If D < Dα then accept the hypothesis H0 Continue
  • 21.
  • 22.
  • 24. 24
  • 25. 25
  • 26.
  • 27.
  • 28.
  • 29.