9.4 Random Numbers from Various Distributions. Distributions A distribution of numbers is a description of the portion of times each possible outcome.

Slides:



Advertisements
Similar presentations
Lab #2-4 Follow-Up: Further into Python. Part 3: Random Numbers.
Advertisements

Probability Distributions CSLU 2850.Lo1 Spring 2008 Cameron McInally Fordham University May contain work from the Creative Commons.
Statistics review of basic probability and statistics.
© 2003 Prentice-Hall, Inc.Chap 5-1 Business Statistics: A First Course (3 rd Edition) Chapter 5 Probability Distributions.
Sampling Distributions (§ )

Continuous Probability Distributions.  Experiments can lead to continuous responses i.e. values that do not have to be whole numbers. For example: height.
DENSITY CURVES and NORMAL DISTRIBUTIONS. The histogram displays the Grade equivalent vocabulary scores for 7 th graders on the Iowa Test of Basic Skills.
Continuous Random Variables. For discrete random variables, we required that Y was limited to a finite (or countably infinite) set of values. Now, for.
Probability Densities
CS 351/ IT 351 Modelling and Simulation Technologies Random Variates Dr. Jim Holten.
Basic Probability and Stats Review
CHAPTER 6 Statistical Analysis of Experimental Data
QMS 6351 Statistics and Research Methods Probability and Probability distributions Chapter 4, page 161 Chapter 5 (5.1) Chapter 6 (6.2) Prof. Vera Adamchik.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 6-1 Chapter 6 The Normal Distribution and Other Continuous Distributions.
Probability Distributions and Frequentist Statistics “A single death is a tragedy, a million deaths is a statistic” Joseph Stalin.
Continuous Probability Distributions
Chapter 5: Continuous Random Variables
1 ECE310 – Lecture 23 Random Signal Analysis 04/27/01.
Lecture II-2: Probability Review
Continuous Probability Distribution  A continuous random variables (RV) has infinitely many possible outcomes  Probability is conveyed for a range of.
© 2003 Prentice-Hall, Inc.Chap 6-1 Basic Business Statistics (9 th Edition) Chapter 6 The Normal Distribution and Other Continuous Distributions.
B AD 6243: Applied Univariate Statistics Understanding Data and Data Distributions Professor Laku Chidambaram Price College of Business University of Oklahoma.
TELECOMMUNICATIONS Dr. Hugh Blanton ENTC 4307/ENTC 5307.
Continuous Probability Distributions  Continuous Random Variable  A random variable whose space (set of possible values) is an entire interval of numbers.
PROBABILITY & STATISTICAL INFERENCE LECTURE 3 MSc in Computing (Data Analytics)
Statistics for Engineer Week II and Week III: Random Variables and Probability Distribution.
Continuous Random Variables
Topics: Statistics & Experimental Design The Human Visual System Color Science Light Sources: Radiometry/Photometry Geometric Optics Tone-transfer Function.
Topics Covered Discrete probability distributions –The Uniform Distribution –The Binomial Distribution –The Poisson Distribution Each is appropriately.
Modeling and Simulation
Theory of Probability Statistics for Business and Economics.
ENGR 610 Applied Statistics Fall Week 3 Marshall University CITE Jack Smith.
Fundamentals of Data Analysis Lecture 3 Basics of statistics.
NORMAL DISTRIBUTION AND ITS APPL ICATION. INTRODUCTION Statistically, a population is the set of all possible values of a variable. Random selection of.
One Random Variable Random Process.
June 11, 2008Stat Lecture 10 - Review1 Midterm review Chapters 1-5 Statistics Lecture 10.
COMP155 Computer Simulation September 8, States and Events  A state is a condition of a system at some point in time  An event is something that.
MATH 4030 – 4B CONTINUOUS RANDOM VARIABLES Density Function PDF and CDF Mean and Variance Uniform Distribution Normal Distribution.
B AD 6243: Applied Univariate Statistics Data Distributions and Sampling Professor Laku Chidambaram Price College of Business University of Oklahoma.
Probability Refresher COMP5416 Advanced Network Technologies.
IE 300, Fall 2012 Richard Sowers IESE. 8/30/2012 Goals: Rules of Probability Counting Equally likely Some examples.
CY1B2 Statistics1 (ii) Poisson distribution The Poisson distribution resembles the binomial distribution if the probability of an accident is very small.
Summarizing Risk Analysis Results To quantify the risk of an output variable, 3 properties must be estimated: A measure of central tendency (e.g. µ ) A.
Computer simulation Sep. 9, QUIZ 2 Determine whether the following experiments have discrete or continuous out comes A fair die is tossed and the.
CONTINUOUS RANDOM VARIABLES
Risk Analysis Simulate a scenario of possible input values that could occur and observe key financial impacts Pick many different input scenarios according.
BASIC STATISTICAL CONCEPTS Statistical Moments & Probability Density Functions Ocean is not “stationary” “Stationary” - statistical properties remain constant.
Continuous Probability Distribution By: Dr. Wan Azlinda Binti Wan Mohamed.
Chapter 20 Statistical Considerations Lecture Slides The McGraw-Hill Companies © 2012.
Warsaw Summer School 2015, OSU Study Abroad Program Normal Distribution.
Lecture 3 Types of Probability Distributions Dr Peter Wheale.
Central Limit Theorem Let X 1, X 2, …, X n be n independent, identically distributed random variables with mean  and standard deviation . For large n:
PATTERN RECOGNITION LAB 2 TA : Nouf Al-Harbi::
Module 9.4 Random Numbers from Various Distributions -MC requires the use of unbiased random numbers.
5.2 Euler’s Method.
Chapter 5: Continuous Random Variables
Introductory Statistics and Data Analysis
MECH 373 Instrumentation and Measurements
Review of Probability Theory
Oliver Schulte Machine Learning 726
CONTINUOUS RANDOM VARIABLES
Chapter 7: Sampling Distributions
Continuous Statistical Distributions: A Practical Guide for Detection, Description and Sense Making Unit 3.
Warsaw Summer School 2017, OSU Study Abroad Program
Chapter 5: Continuous Random Variables
Sampling Distributions (§ )
Chapter 5: Continuous Random Variables
Continuous Random Variables
Uniform Probability Distribution
Presentation transcript:

9.4 Random Numbers from Various Distributions

Distributions A distribution of numbers is a description of the portion of times each possible outcome or range of outcomes occurs on average. A histogram is a display of a given distribution. In a uniform distribution all outcomes are equally likely.

Uniform Distribution: Hypothetical Consider a hospital at which there are an average of 100 births per day:

Uniform Distribution: Random- Number Simulation

Discrete vs. Continuous Distributions A discrete distribution is one in which the values (x, y axis values) are discrete (countable, finite in number). A continuous distribution is one in which the values (x, y axis values) are continuous (not countable). In practice, we can model continuous distributions discretely by binning….

Binning

Probability Density Function For a discrete distribution, a probability density function (or density function or probability function) tells us the probability of occurrence of its input. For a continuous distribution, the PDF indicates the probability that a given outcome falls inside a specific range of values.

Probability Density Function For a discrete distribution, we just report the value at that bin. For a continuous distribution, we integrate between the ends of the interval (Fundamental Theorem of Calculus), or approximate that using numerical methods (Euler, RK4)

Generating Random Numbers in Non-Uniform Distributions Imagine a biased roulette wheel for picking events (outcomes) e 1, e 2, …. e1e1 e2e2 e3e3 e4e4 e1e1 60% e3e3 e4e4 e2e2 8% 10% 22%

Generating Random Numbers in Non-Uniform Distributions Given probabilities p 1, p 2, …. for events e 1, e 2, …. : Generate rand, a uniform random floating-point number in [0,1); that is, from zero up to but excluding 1. If rand < p 1 then use e 1 Else if rand < p 1 +p 2 then use e 2 … Else if rand < p 1 +p 2 +…+p n-1 + then use e n-1 Else use e n

Carl Friedrich Gauss ( ) Levy Pollack Waltz Winston Minsky Tucker Lefschetz Story Klein Plücker Y’all Gerling Gauss Normal (Gaussian) Distributions

The standard deviation  of a set of values is their average difference from their mean . In a normal distribution (so-called because it is so common) 68.3% of the values are within ±  (one standard deviation) of  ; 95.5% are within ±2  ; and 99.7% are within ±3 . I.e., extreme values are rare. Where do these strange percentages come from?

Normal (Gaussian) Distributions Normal distribution has probability density function Random number generators typically use  = 0,  = 1, so this simplifies to

is a constant, so the shape is given by ; i.e., something that reaches a peak at x = 0 and tapers off rapidly as x grows positive or negative: Normal (Gaussian) Distributions How can we build such a distribution from our uniformly-distributed random numbers?

Box-Muller-Gauss Method for Normal Distributions with Mean  And Standard Deviation  Start with two uniform random numbers: a in [0,2  ) rand in [0,1) Then compute Obtain two normally distributed numbers b sin(a) +  b cos(a) + 

Exponential Distributions Common pattern is exponentially decaying PDF, also called 1/f noise (a.k.a. pink noise) noise = random f = frequency; i.e., larger events are less common pink because uniform distribution is “white” (white light = all frequencies) “Universality” is a current topic of controversy (Shalizi 2006)

Exponential Method for PDF |r|e rt where t>0, r<0 Start with uniform random rand in [0,1) Compute ln(rand)/r E.g., ln(rand) / (-2) gives 1/f noise

Rejection Method To get random numbers in interval [a, b) for distribution f(x): Generate randInterval, a uniform random number in [a, b) Generate randUpperBound, a uniform random number in [0, upper bound for f ) If f(randInterval) > randUpperBound then use randInterval E.g. for normal distribution with  = 0,  = 1, upperBound = 1 randInterval = approx. [-3,3)