Introduction to probability Stochastic Process Queuing systems. TELE4642: Week2

Similar documents
4. Basic probability theory

Queuing Theory. Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues

Generalized Semi- Markov Processes (GSMP)

AMS570 Lecture Notes #2

NOTES ON DISTRIBUTIONS

Approximations and more PMFs and PDFs

Limit Theorems. Convergence in Probability. Let X be the number of heads observed in n tosses. Then, E[X] = np and Var[X] = np(1-p).

Lecture 1 Probability and Statistics

Random Variables, Sampling and Estimation

CEE 522 Autumn Uncertainty Concepts for Geotechnical Engineering

0, otherwise. EX = E(X 1 + X n ) = EX j = np and. Var(X j ) = np(1 p). Var(X) = Var(X X n ) =

7.1 Convergence of sequences of random variables

Probability and statistics: basic terms

Lecture 1 Probability and Statistics

4. Partial Sums and the Central Limit Theorem

EE 4TM4: Digital Communications II Probability Theory

Final Review for MATH 3510

f X (12) = Pr(X = 12) = Pr({(6, 6)}) = 1/36

Quick Review of Probability

Quick Review of Probability

Chapter 6 Principles of Data Reduction

Parameter, Statistic and Random Samples

Mathematical Statistics - MS

As stated by Laplace, Probability is common sense reduced to calculation.

A queueing system can be described as customers arriving for service, waiting for service if it is not immediate, and if having waited for service,

First come, first served (FCFS) Batch

Lecture Chapter 6: Convergence of Random Sequences

n outcome is (+1,+1, 1,..., 1). Let the r.v. X denote our position (relative to our starting point 0) after n moves. Thus X = X 1 + X 2 + +X n,

Discrete Probability Functions

PRACTICE PROBLEMS FOR THE FINAL

Expectation and Variance of a random variable

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 19

Discrete Mathematics and Probability Theory Summer 2014 James Cook Note 15

Sets and Probabilistic Models

This exam contains 19 pages (including this cover page) and 10 questions. A Formulae sheet is provided with the exam.

STAT Homework 1 - Solutions

7.1 Convergence of sequences of random variables

Reliability and Queueing

An Introduction to Randomized Algorithms

B. Maddah ENMG 622 ENMG /27/07

CS 330 Discussion - Probability

Properties of Joints Chris Piech CS109, Stanford University

f X (12) = Pr(X = 12) = Pr({(6, 6)}) = 1/36

Problems from 9th edition of Probability and Statistical Inference by Hogg, Tanis and Zimmerman:

Discrete Mathematics for CS Spring 2005 Clancy/Wagner Notes 21. Some Important Distributions

Distribution of Random Samples & Limit theorems

Discrete Mathematics and Probability Theory Spring 2012 Alistair Sinclair Note 15

Math 525: Lecture 5. January 18, 2018

Lecture 2: Poisson Sta*s*cs Probability Density Func*ons Expecta*on and Variance Es*mators

c. Explain the basic Newsvendor model. Why is it useful for SC models? e. What additional research do you believe will be helpful in this area?

Lecture 7: Properties of Random Samples

Chapter 2 The Monte Carlo Method

Lecture 19: Convergence

Randomized Algorithms I, Spring 2018, Department of Computer Science, University of Helsinki Homework 1: Solutions (Discussed January 25, 2018)

Lecture 12: November 13, 2018

CS/ECE 715 Spring 2004 Homework 5 (Due date: March 16)

IE 230 Seat # Name < KEY > Please read these directions. Closed book and notes. 60 minutes.

The Poisson Process *

Massachusetts Institute of Technology

HOMEWORK I: PREREQUISITES FROM MATH 727

January 25, 2017 INTRODUCTION TO MATHEMATICAL STATISTICS

It is always the case that unions, intersections, complements, and set differences are preserved by the inverse image of a function.

STA 348 Introduction to Stochastic Processes. Lecture 1

Chapter 6 Sampling Distributions

Modeling and Performance Analysis with Discrete-Event Simulation

Closed book and notes. No calculators. 60 minutes, but essentially unlimited time.

Advanced Stochastic Processes.

PRACTICE PROBLEMS FOR THE FINAL

Discrete Mathematics for CS Spring 2007 Luca Trevisan Lecture 22

IE 230 Probability & Statistics in Engineering I. Closed book and notes. No calculators. 120 minutes.

( ) = p and P( i = b) = q.

Lecture 6: Coupon Collector s problem

Lecture 6 Simple alternatives and the Neyman-Pearson lemma

Econ 325: Introduction to Empirical Economics

FACULTY OF MATHEMATICAL STUDIES MATHEMATICS FOR PART I ENGINEERING. Lectures

Lecture 2: Probability, Random Variables and Probability Distributions. GENOME 560, Spring 2017 Doug Fowler, GS

Introduction to Probability and Statistics Twelfth Edition

PH 425 Quantum Measurement and Spin Winter SPINS Lab 1

What is Probability?

Topic 9: Sampling Distributions of Estimators

AMS 216 Stochastic Differential Equations Lecture 02 Copyright by Hongyun Wang, UCSC ( ( )) 2 = E X 2 ( ( )) 2

Introduction to Probability. Ariel Yadin. Lecture 7

kp(x = k) = λe λ λ k 1 (k 1)! = λe λ r k e λλk k! = e λ g(r) = e λ e rλ = e λ(r 1) g (1) = E[X] = λ g(r) = kr k 1 e λλk k! = E[X]

Binomial Distribution

Module 1 Fundamentals in statistics


Axioms of Measure Theory

MASSACHUSETTS INSTITUTE OF TECHNOLOGY 6.436J/15.085J Fall 2008 Lecture 19 11/17/2008 LAWS OF LARGE NUMBERS II THE STRONG LAW OF LARGE NUMBERS

MATH 320: Probability and Statistics 9. Estimation and Testing of Parameters. Readings: Pruim, Chapter 4

Kurskod: TAMS11 Provkod: TENB 21 March 2015, 14:00-18:00. English Version (no Swedish Version)

UNIT 2 DIFFERENT APPROACHES TO PROBABILITY THEORY

IIT JAM Mathematical Statistics (MS) 2006 SECTION A

Sets and Probabilistic Models

Discrete Mathematics and Probability Theory Fall 2016 Walrand Probability: An Overview

Discrete probability distributions

This section is optional.

Chapter 6 Infinite Series

Random Models. Tusheng Zhang. February 14, 2013

The Poisson Distribution

The standard deviation of the mean

Transcription:

Itroductio to probability Stochastic Process Queuig systems TELE4642: Week2

Overview Refresher: Probability theory Termiology, defiitio Coditioal probability, idepedece Radom variables ad distributios Cotiuous r.v.: Expoetial Discrete r.v.: Poisso Momets ad momet geeratig fuctios Network Performace 2-2

Why formal models of performace? Why ot just use commo sese or ituitio? ca mislead may ot scale Stochastic theory more broadly applicable i the world: Games: aciet Greeks to moder poker Boltzma / Maxwell: thermodyamic etropy Quatum mechaics: everythig is ucertai! Shao: iformatio theory Erlag: telephoe switch capacity Questios pertiet to the Iteret: How to uatify ed-to-ed loss ad delay for Iteret traffic? How big should router buffers be? How may voice calls ca be admitted? How to tue commuicatio protocol parameters? How to exploit Iteret topology structure? How to make moey? Akamai ad Google did J Network Performace 2-3

Probability: termiology A radom experimet is a experimet for which the result is ot kow a priori E.g.: How may heads will occur i 10 flips of a fair coi? A possible outcome is a sample poit The sample space S is the set of all sample poits, i.e., the set of all possible outcomes There are 2 10 = 1024 differet outcomes of flippig a coi 10 times A simplified sample space with 11 outcomes (0 to 10 occurreces of heads) is valid for our experimet A evet A is a subset of S For example, we could defie the evet that there are 5 heads ; a odd umber of heads ; 7 or more heads, etc Network Performace 2-4

Probability: defiitio A probability measure defied o S is a fuctio that associates to each possible evet A a real umber P(A) such that: ( i ) 0 ( ii ) P ( iii ) P ( P ( A) ( S ) = 1 1! Ai ) = å i = 1 i = 1 P ( A i ) if A i ' s mutually exclusive Network Performace 2-5

Coditioal Probability 2-6 The coditioal probability of evet A give that evet B has occurred, deoted by P(A B), is defied as Q: A coi is tossed twice. What is the probability that both tosses were heads give that at least oe toss was heads? Bayes theorem: Give a partitio {G 1, G 2, } ad evet E Refiig a hypothesis based o additioal evidece ) ( ) ( ) ( B P B A ad P B A P = å = j j j i i i G P G E P G P G E P E G P ) ( ) ( ) ( ) ( ) ( Network Performace

Applicatio of Bayes Theorem Imagie you are a cotestat i a game-show. The host shows you three boxes, oe of which has treasure iside, ad asks you to pick oe. Say you pick box 1. He ow opes box 2 ad shows that the treasure is ot iside that box. He ow asks if you wat to chage your mid. Should you chage to box 3 or stay with box 1 to maximize your chaces of wiig? G i : treasure is i box-i E: you pick box 1 ad the host opes box 2 P(G 1 ) = P(G 2 ) = P(G 3 ) = 1/3 P(E G 1 ) = ½; P(E G 2 ) = 0; P(E G 3 ) = 1 Apply Bayes theorem to determie P(G 1 E) ad P(G 3 E) Network Performace 2-7

Idepedet evets Two evets are statistically idepedet iff P(A B) = P(A) ad P(B A) = P(B) Q: Two fair dice are throw simultaeously. Let A be the evet that the first die shows a 6 ad B the evet that the sum of the dice is 9. Are A ad B idepedet? What if B deotes the evet that the sum is 7? Network Performace 2-8

Radom Variables A radom variable X maps each outcome s i the sample space S to a real umber X(s) A radom variable is thus a measuremet of a experimet Network Performace 2-9

Cotiuous radom variables Ca take o a ucoutably ifiite umber of distict values Example: time betwee packet arrivals Cumulative distributio fuctio (cdf): F ( x) = P( X x) Probability desity fuctio (pdf): f ( x) = df ( x) / dx F ( x) = x f ( y) dy ò - Network Performace 2-10

Example: expoetial r.v. pdf: cdf: f(x) - µx f ( x) = µ e, x ³ 0 F - µ x ( x) = 1 - e pdf x Most commoly used cotiuous r.v. Models: Time elapsed sice arrival of task at a computer system Time betwee arrivals of buses at a bus-stop Time betwee arrivals of packets/coectios at a etwork switch Network Performace 2-11

Expoetial r.v.: memoryless property Memoryless: future is idepedet of the past! Mathematically:! " > $ + & " > &) =! " > $, $, & > 0 Proof:! " > $ + & " > &) =! " > $ + &,-. " > & /!(" > &) =! " > $ + & /!(" > &) = e e - µ ( s+ t ) - µ t = 1 234 =!(" > $) Network Performace 2-12

Exercise: Geerate Expoetial r.v. Usig a uiformly distributed radom variable i the iterval [0,1) (such as geerated by the rad() ad drad48() fuctios), how would you geerate a expoetial radom variable with parameter!? Method: Euate cdf of the two distributios Aswer: y = -l(1-x)/! where x is uiformly distributed i [0,1) ad y is expoetial with parameter!. Network Performace 2-13

Discrete radom variables Ca take o a fiite or coutably ifiite umber of values Example: umber of packet arrivals i a 1-hour iterval p ( x) = P[ X = x] Probability mass fuctio (pmf): F ( x) = å y x p( y) Cumulative distributio fuctio (cdf): Network Performace 2-14

Example: Beroulli ad Biomial r.v. Beroulli r.v.: P[X=1] = p ad P[X=0] = Coi toss (biased coi) where 1 deotes head ad 0 tail Biomial r.v.: sum of Beroulli radom variables Number of heads i coi tosses P[ X = i] = æö ç è i ø p i -i Network Performace 2-15

Mea / Momets The mea (or expected value or expectatio or first momet) of a cotiuous r.v. is E [ X ] = xf ( x) dx ò - Example: mea of expoetial r.v. is 1/µ The mea of a discrete r.v. is E [ X ] = å " kp( X = k) k Example: mea of biomial r.v. is p Secod, -th momets Variace, stadard deviatio Network Performace 2-16

Stochastic Process

Stochastic Processes A stochastic process (or radom process) is a family of radom variables {X(t): t Î T} idexed by parameter t over idex set T The typical iterpretatio is that T is the time dimesio ad r.v. X is a fuctio of time Cotiuous-time versus discrete-time The r.v. takes ew values some poit of time i cotiuous versus discrete space Cotiuous-value versus discrete-value The r.v. takes o cotiuous versus discrete values We will oly study statioary processes, i.e. those i euilibrium Network Performace 2-18

Markov Process A stochastic process havig the Markov property: P ( X s+ t = j X u = xu; u s) = P( X s+ t = j X s = xs) Sample path followed by the process after ay time t depeds oly o the state X t existig at that time, ad ot o past history We cosider: cotiuous-time, discrete-value Importat Markov process: Poisso process Simplest, mathematically well-behaved example of a Markov process It is a coutig process for the umber of radomly occurrig poitevets observed i a give iterval of time, e.g. Tasks arrivig at a processor Messages arrivig to a etwork Customers arrivig at a supermarket checkout Radioactive particles from a source Network Performace 2-19

Poisso Process: Defiitio Let the r.v. N(t,t) deote umber of arrivals i (t,t] Let o(h) deotes a expressio f(h) such that A Poisso process {N(0,t)}, t 0, with rate l is such that: 1. P[N(t,t+h)=0] = 1 - lh + o(h) 2. P[N(t,t+h)=1] = lh + o(h) 3. P[N(t,t+h)=2] = o(h) 4. N(0,t) ad N(t,t+h) are idepedet for all t, h > 0 Every small iterval has eual likelihood of arrival occurrece Arrivals are thus completely radom i time Time-homogeeity property: for all t: P[N(t, t+t)] = P[N(0,t)] = P[N(t)] Network Performace 2-20

Poisso Process: pmf Claim: The umber of arrivals N(t) i ay iterval of legth t is a Poisso r.v. with parameter lt: -lt k P[ N( t) = k] = e ( lt) k! Claim: Mea umber of arrivals i ay iterval of legth t: E[ N( t)] = å k= 0 kp[ N( t) = k] = lt Claim: Poisso is a limitig approximatio of biomial (λt = p) : i æö ( lt) Claim: Iter-arrival time (i.e. time betwee successive arrivals) is a expoetial r.v. with parameter l [Proof?] Ø Ø lim i -i ç p (1 - p) = e èi ø Time to first arrival is expoetial Time to ext arrival is expoetial -lt i! Network Performace 2-21

Poisso Process: Superpositio If k idepedet Poisso processes A 1,..., A k, with rates l 1,..., l k, are merged ito a sigle process, A = A 1 + + A k,, the combied process A is Poisso with rate l = l 1 + + l k l 2 l 1... l k + l Network Performace 2-22

Poisso Process: Decompositio If a Poisso process (with rate l) is split ito k other processes by idepedetly assigig each arrival to the ith process with probability p i, where p 1 +... + p k = 1, the resultig k processes are each Poisso with rate p i l for the ith process l p 1 l p 2 l... p k l Network Performace 2-23

Queuig systems

Queuig Systems Notatio Server System parameters: arrival process, service time, service capacity, waitig room Iput Queue Output Kedall otatio: a/b/c a: iter-arrival time distributio (M: memoryless, G: geeral) b: service time distributio (D: determiistic) c: umber of servers Extra letter ca deote waitig room capacity E.g.: M/M/1, M/M/c, M/G/1, M/D/1, M/M/1/K, Performace measures: wait time, sojour time, umber i ueue, work i system, Network Performace 2-25

PASTA: Radom Observer Property I ay ueueig system with Poisso arrivals: Probability that a radom arrivig customer fids the system i state A is exactly idetical to the probability that the system is i state A. PASTA (Poisso Arrivals See Time Averages) property This does ot hold for arbitrary systems, e.g. cosider a system where customers arrive at time 1, 3, 5,, each reuirig oe uit time of service, ad the system starts idle at time 0. Each arrival fid the system empty, but probability of empty system is 0.5 Network Performace 2-26

Little s Result The mea umber of customers i the system euals the product of the arrival rate ad the mea sojour time i the system E E[ ] N = le[ t ] = l T Ca be applied to sub-systems: Ø Ø Queue: Server: [ ] = le[ t ] r le[ t ] = l / µ = s The server utilisatio ρ deotes mea umber of customers at the server, which is the same as the fractio of time the server is workig Network Performace 2-27