Random Variables and Probabilities Dr. Greg Bernstein Grotto Networking www.grotto-networking.com.

Slides:



Advertisements
Similar presentations
Fundamentals of Probability
Advertisements

STATISTICS Univariate Distributions
Data Analysis Class 4: Probability distributions and densities.
Stats for Engineers Lecture 5
Special random variables Chapter 5 Some discrete or continuous probability distributions.
Network Design and Optimization Queueing Theory Overview Dr. Greg Bernstein Grotto Networking
—————————— CACI Products Company ————————————————————————————— SimScript II.5 —————————————— 3-1 Day 2 Section 3 - Introduction to Process Simulation –Modeling.
Discrete Uniform Distribution
Statistics review of basic probability and statistics.
Chapter 5 Statistical Models in Simulation
Lec 18 Nov 12 Probability – definitions and simulation.
Chapter 1 Probability Theory (i) : One Random Variable
Probability and Statistics for Engineers (ENGC 6310) Review.
Simulation Modeling and Analysis
TDC 369 / TDC 432 April 2, 2003 Greg Brewster. Topics Math Review Probability –Distributions –Random Variables –Expected Values.
1 Module 9 Modeling Uncertainty: THEORETICAL PROBABILITY MODELS Topics Binomial Distribution Poisson Distribution Exponential Distribution Normal Distribution.
Engineering Probability and Statistics - SE-205 -Chap 3 By S. O. Duffuaa.
Probability theory 2011 Outline of lecture 7 The Poisson process  Definitions  Restarted Poisson processes  Conditioning in Poisson processes  Thinning.
A random variable that has the following pmf is said to be a binomial random variable with parameters n, p The Binomial random variable.
2. Random variables  Introduction  Distribution of a random variable  Distribution function properties  Discrete random variables  Point mass  Discrete.
Some standard univariate probability distributions
Some standard univariate probability distributions
Review of important distributions Another randomized algorithm
Chapter 21 Random Variables Discrete: Bernoulli, Binomial, Geometric, Poisson Continuous: Uniform, Exponential, Gamma, Normal Expectation & Variance, Joint.
Discrete Probability Distributions Binomial Distribution Poisson Distribution Hypergeometric Distribution.
4-1 Continuous Random Variables 4-2 Probability Distributions and Probability Density Functions Figure 4-1 Density function of a loading on a long,
Probability Distribution
Exponential Distribution & Poisson Process
A Review of Probability Models
1 Performance Evaluation of Computer Systems By Behzad Akbari Tarbiat Modares University Spring 2009 Introduction to Probabilities: Discrete Random Variables.
Al-Imam Mohammad Ibn Saud University
Standard Statistical Distributions Most elementary statistical books provide a survey of commonly used statistical distributions. The reason we study these.
CPSC 531: Probability Review1 CPSC 531:Distributions Instructor: Anirban Mahanti Office: ICT Class Location: TRB 101.
Chapter 5 Statistical Models in Simulation
Commonly Used Distributions Andy Wang CIS Computer Systems Performance Analysis.
Statistics for Engineer Week II and Week III: Random Variables and Probability Distribution.
Some standard univariate probability distributions Characteristic function, moment generating function, cumulant generating functions Discrete distribution.
Random Variables and Stochastic Processes –
CPSC 531: Probability Review1 CPSC 531:Probability & Statistics: Review II Instructor: Anirban Mahanti Office: ICT 745
ENGR 610 Applied Statistics Fall Week 3 Marshall University CITE Jack Smith.
CIS 2033 based on Dekking et al. A Modern Introduction to Probability and Statistics Michael Baron. Probability and Statistics for Computer Scientists,
Lecture 19 Nov10, 2010 Discrete event simulation (Ross) discrete and continuous distributions computationally generating random variable following various.
Math 4030 – 4a Discrete Distributions
Prob1 INTRODUCTION to PROBABILITY. prob2 BASIC CONCEPTS of PROBABILITY  Experiment  Outcome  Sample Space Discrete Continuous  Event.
1 Topic 3 - Discrete distributions Basics of discrete distributions Mean and variance of a discrete distribution Binomial distribution Poisson distribution.
STA347 - week 31 Random Variables Example: We roll a fair die 6 times. Suppose we are interested in the number of 5’s in the 6 rolls. Let X = number of.
Chapter 01 Probability and Stochastic Processes References: Wolff, Stochastic Modeling and the Theory of Queues, Chapter 1 Altiok, Performance Analysis.
Exam 2: Rules Section 2.1 Bring a cheat sheet. One page 2 sides. Bring a calculator. Bring your book to use the tables in the back.
Topic 3 - Discrete distributions Basics of discrete distributions - pages Mean and variance of a discrete distribution - pages ,
Some Common Discrete Random Variables. Binomial Random Variables.
Lec. 08 – Discrete (and Continuous) Probability Distributions.
4.3 More Discrete Probability Distributions NOTES Coach Bridges.
Random Variables Example:
5 pair of RVs.
Construction Engineering 221 Probability and Statistics Binomial Distributions.
Chap 5-1 Chapter 5 Discrete Random Variables and Probability Distributions Statistics for Business and Economics 6 th Edition.
Discrete Probability Distributions Chapter 4. § 4.3 More Discrete Probability Distributions.
4-1 Continuous Random Variables 4-2 Probability Distributions and Probability Density Functions Figure 4-1 Density function of a loading on a long,
ONE DIMENSIONAL RANDOM VARIABLES
Math 4030 – 4a More Discrete Distributions
Statistical Modelling
Chapter 7: Sampling Distributions
Probability & Statistics Probability Theory Mathematical Probability Models Event Relationships Distributions of Random Variables Continuous Random.
Some Discrete Probability Distributions
Chapter 3 : Random Variables
5 pair of RVs.
Discrete Random Variables: Basics
Discrete Random Variables: Basics
1/2555 สมศักดิ์ ศิวดำรงพงศ์
Discrete Random Variables: Basics
Presentation transcript:

Random Variables and Probabilities Dr. Greg Bernstein Grotto Networking

Outline Motivation Free (Open Source) References Sample Space, Probability Measures, Random Variables Discrete Random Variables Continuous Random Variables Random variables in Python

Why Probabilistic Models Don’t have enough information to model situation exactly Trying to model Random phenomena – Requests to a video server – Packet arrivals at a switch output port Want to know possible outcomes – What could happen…

Prob/Stat References (free) Zukerman, “Introduction to Queueing Theory and Stochastic Teletraffic Models” – July – Advanced (suitable for a whole grad course or two) Grinstead & Snell “Introduction to Probability” – – Junior/Senior level treatment Illowsky & Dean, “Collaborative Statistics” – – Web based, easy lookups, Freshman/Sophomore level

Sample Space Definition – In probability theory, the sample space, S, of an experiment or random trial is the set of all possible outcomes or results of that experiment. Networking examples: – {Working, Failed} state of an optical link – {0,1,2,…} the number of requests to a webserver in any given 10 second interval. – (0,∞] the time between packet arrivals at the input port of an Ethernet switch

Events and Probabilities The last condition needs to be extended a bit for infinite sample spaces.

Some consequences

Random Variables

Discrete Distributions Just a sum of n independent Bernoulli random variables with the same distribution

Binomial Coefficients & Distribution

Binomial Distribution How to get and generate in Python – Use the additional package SciPy – import scipy.stats – help(scipy.stats) will give you lots of information including a list of available distributions – from scipy.stats import binom Gets you the binomial distribution Can use this to get distribution, mean, variances, and random variates. See example in file “BinomialPlot.py”

How many bits till a bit Error?

Poisson Distribution

Probability of the Number of Errors in a second and an Hour See file: PoissonPlot.py

Poisson & Binomial

Continuous Random Variables

Exponential Distribution I Modeling – “The exponential distribution is often concerned with the amount of time until some specific event occurs.” – “Other examples include the length, in minutes, of long distance business telephone calls, and the amount of time, in months, a car battery lasts.” – “The exponential distribution is widely used in the field of reliability. Reliability deals with the amount of time a product lasts.” /latest /latest

Exponential Distribution II

Exponential Distribution III

Many more continuous RVs Uniform – niform_distribution_%28contin uous%29 niform_distribution_%28contin uous%29 Weibull – Weibull_distribution Weibull_distribution – We’ll see this for packet aggregation Normal – ormal_distribution ormal_distribution

Random Variables in Python I Python Standard Library – import random Mersenne Twister based – Bits – random.getrandbits(k) Discrete – random.randrange(), random.randint() Continuous – random.random() [0.0,1.0), random.uniform(a,b), random.expovariate(lambd), random.normalvariate(mu,sigma) random.weibullvariate(alpha, beta) And more…

Random Variables in Python II SciPy – import scipy.stats – ml ml Current discrete distributions: – Bernoulli, Binomial, Boltzmann (Truncated Discrete Exponential), Discrete Laplacian, Geometric, Hypergeometric, Logarithmic (Log-Series, Series), Negative Binomial, Planck (Discrete Exponential), Poisson, Discrete Uniform, Skellam, Zipf Continuous – Too many to list here. – Use help(scipy.stats) to see list or visit online documentation.