Preview

Nepco

Better Essays
Open Document
Open Document
7212 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Nepco
Notes For Simulation Theory (ESE 603)
Michael A. Carchidi March 14, 2013
Chapter 7 - Random-Number Generation Random number are a necessary basic ingredient in the simulation of almost all discrete systems. You may never have to write a computer program to generate random numbers because all simulation software have built-in subroutines, objects, or functions that will generate random numbers. However, it is still important to understand the basic ideas behind the generation (and testing) of random numbers. These random numbers are then used (Chapter 8) to generate other random variables. This chapter describes the generation of random numbers and their subsequent testing for randomness (uniformity and independence), but first we discuss some basic properties of random numbers. 7.1 Properties of Random Numbers A sequence of random numbers {R1 , R2 , R3 , . . . , Rn , . . .} must have two important properties: (a) uniformity and (b) independence.

Each random number Ri is an independent sample drawn from a continuous uniform distribution between zero and one (i.e., U[0, 1)) whose pdf and cdf are given by ⎧ ⎧ x≤0 x 0

(m1 − 1)/m1 , for Xi = 0

k k Y µ mj − 1 ¶ 1 Y . (mj − 1) = 2 P = k−1 2 2 j=1 j=1

Example #3: Still Another Linear Congruence Using k = 2 generators with a1 = 40, 014, a2 = 40, 692, m1 = 2, 147, 483, 563 and m2 = 2, 147, 483, 399 leads to Xi+1,1 = 40, 014Xi,1 mod(2, 147, 483, 563) 10

and Xi+1,2 = 40, 692Xi,2 mod(2, 147, 483, 399) and and Ri = ⎧ ⎨ Xi /2, 147, 483, 563, ⎩ Xi = (Xi,1 − Xi,2 ) mod(2, 147, 483, 563 − 1) for Xi > 0 .

2, 147, 483, 562/2, 147, 483, 563, for Xi = 0

Using seeds X0,1 in the range [1, 2, 147, 483, 562] and X0,2 in the range [1, 2, 147, 483, 398], this generator leads to a period of P = (2, 147, 483, 562)(2, 147, 483, 398) = 2, 305, 842, 648, 436, 451, 838 2

or P = 2.3 × 1018 , which (in seconds) is 4.6 times larger than the accepted age of the known universe (5 × 1017 seconds). ¥ Perhaps surprisingly, even

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Qb/501 Individual Assignment

    • 2325 Words
    • 10 Pages

    Each time that a new set of random numbers is generated, the graph changes accordingly. However, in all of these graphs we can…

    • 2325 Words
    • 10 Pages
    Satisfactory Essays
  • Good Essays

    15. Random numbers generated by a __________ process instead of a __________ process are pseudorandom numbers.…

    • 850 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    MAT100.Syll

    • 1309 Words
    • 7 Pages

    P121. 13, 15, 21, 27, 33, 35, 41, 49, 55, 31, 39, 47, 59, 67, 6971, 73and 75,…

    • 1309 Words
    • 7 Pages
    Powerful Essays
  • Better Essays

    Mat 126 Week 1 Assignment

    • 1084 Words
    • 5 Pages

    1, 3, 5, 7, 9, 11, … (The common difference is 2. (Bluman, A. G. 2500, page 221)…

    • 1084 Words
    • 5 Pages
    Better Essays
  • Satisfactory Essays

    Math 302 Mid Term

    • 469 Words
    • 2 Pages

    A. lists all of the possible values of the random variable and their corresponding probabilities…

    • 469 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Quiz Stat

    • 758 Words
    • 4 Pages

    7. Excel’s RAND() function produces random numbers that are uniformly distributed from 0 to 1. The standard deviation of this distribution is about…

    • 758 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    Sst4e Tif 07

    • 7361 Words
    • 28 Pages

    7) Suppose a uniform random variable can be used to describe the outcome of an experiment with the outcomes…

    • 7361 Words
    • 28 Pages
    Good Essays
  • Good Essays

    Assignment12 1

    • 596 Words
    • 4 Pages

    1. You roll a pair of standard dice. Create the sample space for a single roll of the dice and use the sample space to compute the following probabilities. (8 points)…

    • 596 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Gcse Math Question Paper

    • 1821 Words
    • 8 Pages

    4 -3 3 14 a 8 k = a 27 k = d3 27 n = a 3 k = 81 27 8 8 2 16 -2 2 -2 0.25 = a 1 k = 4 = 16 4 81 # 16 = 81 16…

    • 1821 Words
    • 8 Pages
    Good Essays
  • Good Essays

    Chapter 9

    • 30243 Words
    • 121 Pages

    Exam 1. 1. All continuous random variables are normally distributed. False. 2. The actual weight of hamburger patties is an example of a continuous random variable. True 3. The college of business administration at acorn University offers a major in finance. Based on historical records, 30% of the college of business students major in Finance. A random sample of 20 students is selected. What is the probability that exactly 3 of the selected students are majoring in Finance? .0716 4. Assume that we have selected a random sample of 25 units from a normally distributed large population. If u = 15, and c2=4, what is the probability that we will obtain a sample mean of less than 14? .0062 5. The normal approximation of the binomial distribution is appropriate when. Np> 5 and n(1-p) >5 6. A newly married couple plans to have four children. Suppose that boys and girls are equal likely each time a child is born. What is the probability the couple will have no more than 2 boys? 62.5% 7. A random variable is said to be discrete if: Its outcome are countable 8. The mean life of pair of shoes is 40 months with a standard deviation of 8 months. If the life of the shoes is normally distributed, how many pairs of shoes out of one million will need replacement before 36 months? 308,500 9. If the sampled population has a mean of 48 and standard deviation 16, then the mean and the standard deviation for the sampling distribution x for n=16 48 and 4 10. The MPG (MILES PER GALLON) for a mid-size car is normally distributed with a mean of 32 and a standard deviation of .8. what is the probability that the MPG for a selected mid-size car would be less that 33.2? 93.32% 11. If the random variable X has a mean of u and a standard deviation g, then (X-u)/g) has a mean and standard deviation respectively. 0 and 1 12. For a binomial probability experiment, with n=150 and p=.2, it is appropriate to use the normal approximation to the binomial distribution. TRUE 13. A computer system uses 4…

    • 30243 Words
    • 121 Pages
    Good Essays
  • Good Essays

    Problem of the Week

    • 587 Words
    • 3 Pages

    91 didn’t because 4 didn’t have a remainder of 1. 161 didn’t work because 2 didn’t have a remainder of 1. 231 didn’t work because 2 didn’t have a remainder of 1. Then I got to 301, and 2, 3, 4, 5, and 6 all had a remainder of 1 when I divided them.…

    • 587 Words
    • 3 Pages
    Good Essays
  • Good Essays

    neptue

    • 515 Words
    • 3 Pages

    Stuck with excess inventory, Neptune Gourmet Seafood is toying with the idea of launching a second, inexpensive product line. But if Neptune stoops to conquer, rivals might retaliate with price cuts, and the new line might end up cannibalizing the old. HBR's cases, which are fictional, present common managerial dilemmas and offer concrete solutions from experts. JIM HARGROVE'S startled expression would have been amusing had he not been in such a pitiable state. He was standing in the yacht's magnificently appointed galley, wondering if his stomach would be able to hold down the cola he was pouring into a crystal flute, when his colleague, Rita Sanchez, said something outrageous. Now the drink had spilled down the length of his pleated khakis, and he was sputtering. "You aren't seriously suggesting that we reduce prices by 50%. Are you?” It had been a long day for Hargrove, marketing director of $820 million Neptune Gourmet Seafood, North America's third-largest seafood producer. When the firm's chairman and CEO, Stanley Renser, had invited his senior managers to sail with him to inspect one of Neptune's new freezer trawlers, Hargrove had demurred. He hated sailing on small boats-they made him sick, he told his boss. Renser had pointed out that the 120-foot yacht he owned wasn't exactly small. Besides, Poseidon II never rolled, even in a storm; the renowned Tommaso Spadolini had designed it. In fact, it was one of the last boats built by Italy's famous Tecnomarine boatyard! Eventually, Renser had won him over, and Hargrove had arrived that Friday morning as eager to see the yacht as he was to visit one of the state-of-the-art fishing vessels on which Neptune had bet its future. Hargrove hadn't felt seasick all morning. There were no swells that day. Flat and glassy, the ocean glittered in shades of turquoise, silver, and gold. Aboard the freezer trawler, he had been fascinated by the technologies that allowed the vessel to catch fish in an environ- mentally…

    • 515 Words
    • 3 Pages
    Good Essays
  • Good Essays

    simulation

    • 541 Words
    • 7 Pages

    Building a cumulative probability distribution for each random variable. 3. Generate random numbers . 4. Conduct the simulation experiment by means of random sampling 5.…

    • 541 Words
    • 7 Pages
    Good Essays
  • Good Essays

    Deterministic Systems

    • 641 Words
    • 3 Pages

    Before answering the question asked in this essay, it is important to understand what exactly a “Deterministic System” is. A Deterministic System is a system in which no randomness is involved in the development of future states of the system. It is the system in which we can predict the coming output or behavior of the system with the help of analyzing the previous behavior or outputs. A Deterministic System will always produce the same output, however this doesn’t really spell out that in the later stages of the system are predictable. Unpredictable system is such system for which we can’t predict the upcoming outcome or behavior. Stochastic or random system is the example of unpredictable systems because we can’t tell or predict the upcoming states of these systems. For example a fair coin is tossed then the result is not predicted by the previous outcomes of the coin. In this essay I will explore how the deterministic system yields unpredictability through examples discussed throughout this semester.…

    • 641 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Price sheet

    • 4287 Words
    • 18 Pages

    The group of independent of options is known as random sampling. The random sampling has analogous independent chances. The random sampling is used to achieve the unbiased sample. The sample of n elements may be selected through the N elements of population. It involves the unpredictable components.…

    • 4287 Words
    • 18 Pages
    Satisfactory Essays