Random Number and Random Variate Generation

Slides:



Advertisements
Similar presentations
Workshop Lesson 3: Terminating & Repeating Decimals 7 th Grade.
Advertisements

CONVERTING RECURRING DECIMALS INTO FRACTIONS
Random Number Generators. Why do we need random variables? random components in simulation → need for a method which generates numbers that are random.
Pseudorandom Number Generators
Random Number Generation
Compunet Corporation Programming with Visual Basic.NET Random Number Week # 12 Tariq Ibn Aziz & Kevin Jones.
Simulation Basic Concepts. NEED FOR SIMULATION Mathematical models we have studied thus far have “closed form” solutions –Obtained from formulas -- forecasting,
Rational and Irrational Numbers
The Real Number System. The natural numbers are the counting numbers, without _______. Whole numbers include the natural numbers and ____________. Integers.
Making Sense of Rational and Irrational Numbers
SIGNIFICANT FIGURES. What are SIG FIG’S Digits that carry meaning contributing to its precision. They help make our “precision” more accurate Precision-the.
Binary and Hexadecimal Numbers
Scientific Notation Section 8.5.
Section 8.5 Scientific Notation.
Rational Numbers Math 8.
NOTES 2.1 Rational Numbers VOCAB: rational number: is a number that can be written as the ratio of two integers. (a fraction) terminating decimal: is a.
Converting, Comparing and Ordering Rational Numbers
Multiplying and Dividing Decimals by 10, 100, and 1,000
Basic Math Skills Lesson 2: Reading and Writing Decimals p
One of the positive or negative numbers 1, 2, 3, etc., or zero. Compare whole numbers.
2nd Week of EOG Review Book
Real Number System.
The Real Number System.  Natural Numbers (AKA Counting Numbers): {1, 2, 3, 4, …}  Whole Numbers (Natural Numbers plus zero): {0, 1, 2, 3, …} NOTE: Both.
30 AUGUST 2013 Significant Figures Rules. Precision When completing measurements and calculations, it is important to be as precise as possible.  Precise:
Write Equivalent Fractions
Lesson 1-2.  Read the number before the decimal point.  Say “ and ” when you get to the decimal.  Read the number after the decimal.  Say the name.
AEEE2031 Data Representation and Numbering Systems.
Rational and Irrational Numbers
Random Number Generator. Random number Random number: Uniform distribution on [0,1] Random device: dice, coin -> cannot generate the equal sequence.
Unit 1-Number Sets Aa-1.1 Define and identify integers, rational, irrational, natural, whole and real numbers.
R1.1 REAL NUMBERS ORDER AND ABSOLUTE VALUE. Set – A collection of objects Sub-set – Some of the items in the set.
How Do I Solve This Thing?. You are familiar with Sudoku puzzles. For this variation, place the integers 1 – 9 into each row or column such that the.
Invasion Percolation: Randomness Copyright © Software Carpentry 2010 This work is licensed under the Creative Commons Attribution License See
Copyright © 2012, 2009, 2005, 2002 Pearson Education, Inc. Chapter 3 Decimals.
5-3(D) Real Numbers.
Reading and Writing Decimals
Random Numbers All stochastic simulations need to “generate” IID U(0,1) “random numbers” Other random variates coming from other distribution can be generated.
UNIFORM RANDOM NUMBER GENERATION Chapter 7 (first half) The goal is to generate a sequence of The goal is to generate a sequence of Uniformly distributed.
1.  How does the computer generate observations from various distributions specified after input analysis?  There are two main components to the generation.
Making Sense of Rational and Irrational Numbers
Making Sense of Rational and Irrational Numbers
Rational and Irrational Numbers
Class Notes: Significant Figures
Rational and Irrational Numbers
Rational and Irrational Numbers
Random Numbers All stochastic simulations need to “generate” IID U(0,1) “random numbers” Other random variates coming from other distribution can be generated.
REALLY BIG & REALLY small Numbers
How do you write 4.3 ÷ 104?.
Write in digits eight hundred and four thousand.
(as opposed to fake numbers?)
Rational & Irrational Numbers
Rational Vs. Irrational
All numbers that can be represented on a number line are called real numbers and can be classified according to their characteristics.
(as opposed to fake numbers?)
Rational and Irrational Numbers
Rational and Irrational Numbers
Rational and irrational subgrouping
Lesson 7.4 Real Numbers.
How is 0.41  10 related to 0.41  100?.
Scientific Notation Objective: Students will read and write numbers in
Random walk.
Rational and Irrational Numbers
Random Number Generation
RATIONAL NUMBERS CCGPS - NS.7c and 7d.
Number Sets.
Natural Numbers The first counting numbers Does NOT include zero
Irrational Numbers.
Multiplying and Dividing Decimals by 10, 100, 1000
Rational and Irrational Numbers
Rational Numbers and Irrational Numbers
Presentation transcript:

Random Number and Random Variate Generation

Random Number Generation One early method – the midsquare method (von Neumann and Metropolis 1940) Start with a four digit positive integer Z0. Square Z0 to get an integer with up to eight digits (append zeros if less than eight). Take the middle four digits as the next four digit integer Z1. Place a decimal point to the left of Z1 to form the first “U(0,1)” observation. Repeat

Random Number Generation - MidSquare Example: X0 = 7182 (seed) = 51581124 ==> R1 = 0.5811 = (5811) 2 = 33767721 ==> R2 = 0.7677 etc. 30

Random Number Generation- MidSquare Note: Cannot choose a seed that guarantees that the sequence will not degenerate and will have a long period. Also, zeros, once they appear, are carried in subsequent numbers. Ex1: X0 = 5197 (seed) = 27008809 ==> R1 = 0.0088 = 00007744 ==> R2 = 0.0077 Ex2: X0 = 4500 (seed) = 20250000 ==> R1 = 0.2500 = 06250000 ==> R2 = 0.2500 30