Probability Review Thinh Nguyen. Probability Theory Review Sample space Bayes’ Rule Independence Expectation Distributions.

Slides:



Advertisements
Similar presentations
Introduction to Queuing Theory
Advertisements

Continuous Random Variables Chapter 5 Nutan S. Mishra Department of Mathematics and Statistics University of South Alabama.
CS433: Modeling and Simulation
IE 429, Parisay, January 2003 Review of Probability and Statistics: Experiment outcome: constant, random variable Random variable: discrete, continuous.
1 Chapter 8 Queueing models. 2 Delay and Queueing Main source of delay Transmission (e.g., n/R) Propagation (e.g., d/c) Retransmission (e.g., in ARQ)
Probability Theory Part 1: Basic Concepts. Sample Space - Events  Sample Point The outcome of a random experiment  Sample Space S The set of all possible.
1 ELEN 602 Lecture 8 Review of Last lecture –HDLC, PPP –TDM, FDM Today’s lecture –Wavelength Division Multiplexing –Statistical Multiplexing –Preliminary.
Queueing Model 박희경.
Queuing Analysis Based on noted from Appendix A of Stallings Operating System text 6/10/20151.
Chap. 20, page 1051 Queuing Theory Arrival process Service process Queue Discipline Method to join queue IE 417, Chap 20, Jan 99.
Probability Theory Part 2: Random Variables. Random Variables  The Notion of a Random Variable The outcome is not always a number Assign a numerical.
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
Performance analysis for high speed switches Lecture 6.
1 Performance Evaluation of Computer Networks Objectives  Introduction to Queuing Theory  Little’s Theorem  Standard Notation of Queuing Systems  Poisson.
Queueing Theory: Part I
Data Communication and Networks Lecture 13 Performance December 9, 2004 Joseph Conron Computer Science Department New York University
1 Queueing Theory H Plan: –Introduce basics of Queueing Theory –Define notation and terminology used –Discuss properties of queuing models –Show examples.
Queuing Analysis Based on noted from Appendix A of Stallings Operating System text 6/28/20151.
Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar1 ECSE-4730: Computer Communication Networks (CCN) Network Layer Performance.
Queueing Theory.
7/3/2015© 2007 Raymond P. Jefferis III1 Queuing Systems.
Introduction to Queuing Theory. 2 Queuing theory definitions  (Kleinrock) “We study the phenomena of standing, waiting, and serving, and we call this.
Internet Queuing Delay Introduction How many packets in the queue? How long a packet takes to go through?

CMPE 252A: Computer Networks Review Set:
Introduction to Queuing Theory
Queueing Theory I. Summary Little’s Law Queueing System Notation Stationary Analysis of Elementary Queueing Systems  M/M/1  M/M/m  M/M/1/K  …
Network Analysis A brief introduction on queues, delays, and tokens Lin Gu, Computer Networking: A Top Down Approach 6 th edition. Jim Kurose.
Introduction to Queuing Theory
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
Queuing models Basic definitions, assumptions, and identities Operational laws Little’s law Queuing networks and Jackson’s theorem The importance of think.
MIT Fun queues for MIT The importance of queues When do queues appear? –Systems in which some serving entities provide some service in a shared.
Introduction to Operations Research
Queueing Analysis of Production Systems (Factory Physics)
Introduction to Queueing Theory
Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang.
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
IE 429, Parisay, January 2010 What you need to know from Probability and Statistics: Experiment outcome: constant, random variable Random variable: discrete,
TexPoint fonts used in EMF.
1 Elements of Queuing Theory The queuing model –Core components; –Notation; –Parameters and performance measures –Characteristics; Markov Process –Discrete-time.
1 Systems Analysis Methods Dr. Jerrell T. Stracener, SAE Fellow SMU EMIS 5300/7300 NTU SY-521-N NTU SY-521-N SMU EMIS 5300/7300 Queuing Modeling and Analysis.
Modeling and Analysis of Computer Networks
CS433 Modeling and Simulation Lecture 12 Queueing Theory Dr. Anis Koubâa 03 May 2008 Al-Imam Mohammad Ibn Saud University.
1 Chapters 8 Overview of Queuing Analysis. Chapter 8 Overview of Queuing Analysis 2 Projected vs. Actual Response Time.
Traffic Flow Fundamentals
Modeling and Simulation Queuing theory
Chapter 01 Probability and Stochastic Processes References: Wolff, Stochastic Modeling and the Theory of Queues, Chapter 1 Altiok, Performance Analysis.
CS352 - Introduction to Queuing Theory Rutgers University.
Chapter 2 Probability, Statistics and Traffic Theories
Random Variables. Numerical Outcomes Consider associating a numerical value with each sample point in a sample space. (1,1) (1,2) (1,3) (1,4) (1,5) (1,6)
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
1 Queuing Delay and Queuing Analysis. RECALL: Delays in Packet Switched (e.g. IP) Networks End-to-end delay (simplified) = End-to-end delay (simplified)
Queuing Theory.  Queuing Theory deals with systems of the following type:  Typically we are interested in how much queuing occurs or in the delays at.
1 Review of Probability and Random Processes. 2 Importance of Random Processes Random variables and processes talk about quantities and signals which.
Chap 2 Network Analysis and Queueing Theory 1. Two approaches to network design 1- “Build first, worry later” approach - More ad hoc, less systematic.
© 2015 McGraw-Hill Education. All rights reserved. Chapter 17 Queueing Theory.
Queueing Fundamentals for Network Design Application ECE/CSC 777: Telecommunications Network Design Fall, 2013, Rudra Dutta.
Random Variables r Random variables define a real valued function over a sample space. r The value of a random variable is determined by the outcome of.
Mohammad Khalily Islamic Azad University.  Usually buffer size is finite  Interarrival time and service times are independent  State of the system.
Simulation Statistics
Al-Imam Mohammad Ibn Saud University
Internet Queuing Delay Introduction
Lecture on Markov Chain
ECE 358 Examples #1 Xuemin (Sherman) Shen Office: EIT 4155
Internet Queuing Delay Introduction
Handling Routing Transport Haifa JFK TLV BGN To: Yishay From: Vered
TexPoint fonts used in EMF.
Queueing Theory 2008.
Lecture 11 – Stochastic Processes
Presentation transcript:

Probability Review Thinh Nguyen

Probability Theory Review Sample space Bayes’ Rule Independence Expectation Distributions

Sample Space - Events Sample Point  The outcome of a random experiment Sample Space S  The set of all possible outcomes  Discrete and Continuous Events  A set of outcomes, thus a subset of S  Certain, Impossible and Elementary

Set Operations Union Intersection Complement Properties  Commutation  Associativity  Distribution  De Morgan’s Rule S

Axioms and Corollaries Axioms If If A 1, A 2, … are pairwise exclusive Corollaries

Conditional Probability Conditional Probability of event A given that event B has occurred If B 1, B 2,…,B n a partition of S, then (Law of Total Probability) S B1B1 B3B3 B2B2 A

Bayes’ Rule If B 1, …, B n a partition of S then

Event Independence Events A and B are independent if If two events have non-zero probability and are mutually exclusive, then they cannot be independent

Random Variables

The Notion of a Random Variable  The outcome is not always a number  Assign a numerical value to the outcome of the experiment Definition  A function X which assigns a real number X(ζ) to each outcome ζ in the sample space of a random experiment S x SxSx ζ X(ζ) = x

Cumulative Distribution Function Defined as the probability of the event {X≤x} Properties x 2 1 F x (x) ¼ ½ ¾ x

Types of Random Variables Continuous  Probability Density Function Discrete  Probability Mass Function

Probability Density Function The pdf is computed from Properties For discrete r.v. dx f X (x) x

Expected Value and Variance The expected value or mean of X is Properties The variance of X is The standard deviation of X is Properties

Queuing Theory

Example Send a file over the internet Send a file over the internet packetlink buffer Modem card (fixed rate)

Delay Models time place A B C propagation transmission Computation (Queuing)

Queue Model

Practical Example

Multiserver queue

Multiple Single-server queues

Standard Deviation impact

Queueing Time

Queuing Theory The theoretical study of waiting lines, expressed in mathematical terms inputoutput queue server Delay= queue time +service time

The Problem Given One or more servers that render the service A (possibly infinite) pool of customers Some description of the arrival and service processes. Describe the dynamics of the system Evaluate its Performance If there is more than one queue for the server(s), there may also be some policy regarding queue changes for the customers.

Common Assumptions The queue is FCFS (FIFO). We look at steady state : after the system has started up and things have settled down. State=a vector indicating the total # of customers in each queue at a particular time instant (all the information necessary to completely describe the system)

Notation for queuing systems M for Markovian (exponential) distribution D for Deterministic distribution G for General (arbitrary) distribution :Where A and B can be omitted if infinite omitted if infinite

The M/M/1 System Poisson Process output queue Exponential server

Arrivals follow a Poisson process a(t) = # of arrivals in time interval [0,t] = mean arrival rate t = k  ; k = 0,1,…. ;  0 Pr(exactly 1 arrival in [t,t+  ]) =  Pr(no arrivals in [t,t+  ]) = 1-  Pr(more than 1 arrival in [t,t+  ]) = 0 Pr(a(t) = n) = e - t ( t) n /n! Readily amenable for analysis Readily amenable for analysis Reasonable for a wide variety of situations Reasonable for a wide variety of situations

Model for Interarrivals and Service times  Customers arrive at times t 0 < t 1 < Poisson distributed  The differences between consecutive arrivals are the interarrival times :  n = t n - t n-1   n in Poisson process with mean arrival rate, are exponentially distributed, Pr(  n  t) = 1 - e - t Service times are exponentially distributed, with mean service rate  : Pr(S n  s) = 1 - e -  s

System Features Service times are independent service times are independent of the arrivals Both inter-arrival and service times are memoryless Pr(T n > t 0 +t | T n > t 0 ) = Pr(T n  t) future events depend only on the present state  This is a Markovian System

Exponential Distribution

Markov Models Buffer Occupancy n+1 n n-1 n departure arrival

Probability of being in state n

Steady State Analysis

Markov Chains n-1 n n+1

Substituting Utilization

Substituting P 1 Higher states have decreasing probability Higher utilization causes higher probability of higher states

What about P 0 Queue determined by

E(n), Average Queue Size

Selecting Buffers For large utilization, buffers grow exponentially

Throughput Throughput=utilization/service time =  /T s For  =.5 and T s =1ms Throughput is 500 packets/sec

Intuition on Little’s Law If a typical customer spends T time units, on the overage, in the system, then the number of customers left behind by that typical customer is equal to

Applying Little’s Law

Probability of Overflow

Buffer with N Packets

Example Given  Arrival rate of 1000 packets/sec  Service rate of 1100 packets/sec Find  Utilization  Probability of having 4 packets in the queue

Example

Application to Statistcal Multiplexing Consider one transmission line with rate R. Time-division Multiplexing  Divide the capacity of the transmitter into N channels, each with rate R/N. Statistical Multiplexing  Buffering the packets coming from N streams into a single buffer and transmitting them one at a time. R/N R

Network of M/M/1 Queues

M/G/1 Queue Q S 0 S Assume that every customer in the queue pays at rate R when his or her remaining service time is equal to R. Total cost paid by a customer: Expected cost paid by each customer: At a given time t, the customers pay at a rate equal to the sum of the remaining service times of all the customer in the queue. The queue begin first come-first served, this sum is equal to the queueing time of a customer who would enter the queue at time t. The customers pat at rate since each customer pays on the average and customers go through the queue per unit time.