Chapter 4 Random Number Generator Speaker : H.M. Liang.

Slides:



Advertisements
Similar presentations
Random BuiltIn Function in Stella
Advertisements

Lectures prepared by: Elchanan Mossel Yelena Shvets Introduction to probability Stat 134 FAll 2005 Berkeley Follows Jim Pitman’s book: Probability Section.
JMB Chapter 6 Part 1 v4 EGR 252 Spring 2012 Slide 1 Continuous Probability Distributions Many continuous probability distributions, including: Uniform.
Random variables 1. Note  there is no chapter in the textbook that corresponds to this topic 2.
CPSC 531:Random-Variate Generation
EXAMPLE 1 Construct a probability distribution
EXAMPLE 1 Construct a probability distribution Let X be a random variable that represents the sum when two six-sided dice are rolled. Make a table and.
Decision and Risk Analysis Financial Modelling & Risk Analysis II Kiriakos Vlahos Spring 2000.
Chapter 6 Chapter 16 Sections , 4.0, Lecture 11 GRKS.XLSX Lecture 11 Low Prob Extremes.XLSX Lecture 11 Uncertain Emp Dist.XLSX Materials for.
Statistics Lecture 16. Gamma Distribution Normal pdf is symmetric and bell-shaped Not all distributions have these properties Some pdf’s give a.
Statistics 200b. Chapter 5. Chapter 4: inference via likelihood now Chapter 5: applications to particular situations.
Basic Probability and Stats Review
Submitters: Stella Pantofel Michael Halperin Igor Berman
2003/04/24 Chapter 5 1頁1頁 Chapter 5 : Sums of Random Variables & Long-Term Averages 5.1 Sums of Random Variables.
Chapter 5. Operations on Multiple R. V.'s 1 Chapter 5. Operations on Multiple Random Variables 0. Introduction 1. Expected Value of a Function of Random.
Chapter 4 Joint Distribution & Function of rV. Joint Discrete Distribution Definition.
Today Today: More Chapter 5 Reading: –Important Sections in Chapter 5: Only material covered in class Note we have not, and will not cover moment/probability.
1 times table 2 times table 3 times table 4 times table 5 times table
Simulation Examples ~ By Hand ~ Using Excel
DAY 3 14 Jan Today is A.January 14, 2014 B.January 13, 2013.
Chapters 7 and 10: Expected Values of Two or More Random Variables
Lesson 1.7 Dividing Integers Standards: NS 1.2 and AF 2.1 Objectives: Dividing Integers Evaluate variable expressions.
CSIS 113A Lecture 5 Random Numbers, while, do-while.
Continuous Random Variables Continuous random variables can assume the infinitely many values corresponding to real numbers. Examples: lengths, masses.
ETM 607 – Random-Variate Generation
The Sampling Distribution of
NS2-TCP Internet Computing KUT ( Youn-Hee Han It is licensed under a Creative Commons Attribution.
Chapter 6 The Normal Distribution and Other Continuous Distributions.
Copyright © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 3 Random Variables and Probability Distributions.
Copyright © 2013 Pearson Education, Inc. All rights reserved Chapter 4 Discrete Random Variables.
Rounding scheme if r * j  1 then r j := 1  When the number of processors assigned in the continuous solution is between 0 and 1 for each task, the speed.
Applications and transport agent API 許庭瑋.
$100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300.
Tables Learning Support
Copyright © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 3 Random Variables and Probability Distributions.
Module 9.2 Simulations. Computer simulation Having computer program imitate reality, in order to study situations and make decisions Applications?
基 督 再 來 (一). 經文: 1 你們心裡不要憂愁;你們信神,也當信我。 2 在我父的家裡有許多住處;若是沒有,我就早 已告訴你們了。我去原是為你們預備地去 。 3 我 若去為你們預備了地方,就必再來接你們到我那 裡去,我在 那裡,叫你們也在那裡, ] ( 約 14 : 1-3)
Chapter 14 Single-Population Estimation. Population Statistics Population Statistics:  , usually unknown Using Sample Statistics to estimate population.
4.3 Probability Distributions of Continuous Random Variables: For any continuous r. v. X, there exists a function f(x), called the density function of.
Chapter 7 Estimation. Chapter 7 ESTIMATION What if it is impossible or impractical to use a large sample? Apply the Student ’ s t distribution.
Review Continuous Random Variables –Density Curves Uniform Distributions Normal Distributions –Probabilities correspond to areas under the curve. –the.
 Y = sin x  Y = cos x  Complete the table for y = tanx 1 x-2π -3π 2 -π 2 0 π2π2 π 3π 2 2π y.
Statistics – Chapter 1 Data Collection
Chapter 5 Confidence Interval
Chapter 7 The Normal Probability Distribution
5.2 Normal Distributions: Finding Probabilities
4.3 Probability Distributions of Continuous Random Variables:
Times Tables.
STAT 1301 Chapter 5(a) The Normal Curve
اختر أي شخصية واجعلها تطير!
The Normal Probability Distribution Summary
Section 1-6: Multiplying Integers
Слайд-дәріс Қарағанды мемлекеттік техникалық университеті
.. -"""--..J '. / /I/I =---=-- -, _ --, _ = :;:.
Controlling the Chunk Size in Deduplication Systems
II //II // \ Others Q.
I1I1 a 1·1,.,.,,I.,,I · I 1··n I J,-·
Discrete Random Variables
4.3 Probability Distributions of Continuous Random Variables:
Continuous Random Variable Normal Distribution
L8-2 Notes: Adding Integers
Bernoulli Trials Two Possible Outcomes Trials are independent.
Aggregate Functions.
Frequency polygons. Score 1 to to to to to 50
3 times tables.
6 times tables.
Sec 4.3: HOW DERIVATIVES AFFECT THE SHAPE OF A GRAPH
. '. '. I;.,, - - "!' - -·-·,Ii '.....,,......, -,
Midterm Statistics.
Normal Distribution Objectives: (Chapter 7, DeCoursey)
Presentation transcript:

Chapter 4 Random Number Generator Speaker : H.M. Liang

Background Why random number is necessary? Seed and distribution  Random number generator is controlled by seed and distribution  In NS-2, different table is generated if seed is set to 0

TCL Create a random number generator set rng [new RNG] Set the random seed $rng seed 0 or n, n is an integer  seed 0 uses current time of day and counter The name of new generator

TCL Create an instance of a random variable object with specific distribution set rv [new Randomvariable/ ] Associate a RandomVariable with non-default RNG $rv use-rng $rng Generate a number $rv value

TCL - type of random-variable UniformRandomVariabletools/ranvar.h min_, max_ ExponentialRandomVariabletools/ranvar.h avg_ ParetoRandomVariabletools/ranvar.h avg_, shape_ ParetoIIRandomVariabletools/ranvar.h avg_, shape_ ConstantRandomVariabletools/ranvar.h val_ HyperExponentialRandomVariabletools/ranvar.h avg_, cov_ NormalRandomVariabletools/ranvar.h avg_, std_ LogNormalRandomVariabletools/ranvar.h avg_, std_

Distribution – Part I

Distribution – Part II

Example