Title: Probability Review
1Probability Review
2Probability Theory Review
- Sample space
- Bayes Rule
- Independence
- Expectation
- Distributions
3Sample 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
4Set Operations
S
- Union
- Intersection
- Complement
- Properties
- Commutation
- Associativity
- Distribution
- De Morgans Rule
5Axioms and Corollaries
- Axioms
-
-
- If
- If A1, A2, are pairwise exclusive
6Conditional Probability
- Conditional Probability of event A given that
event B has occurred - If B1, B2,,Bn a partition of S, then
-
- (Law of Total Probability)
S
B1
B2
A
B3
7Bayes Rule
- If B1, , Bn a partition of S then
8Event Independence
- Events A and B are independent if
- If two events have non-zero probability and are
mutually exclusive, then they cannot be
independent
9Random Variables
10Random 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(?) x
x
Sx
11Cumulative Distribution Function
- Defined as the probability of the event Xx
- Properties
Fx(x)
1
x
Fx(x)
1
¾
½
¼
2
1
0
3
x
12Types of Random Variables
- Continuous
- Probability Density Function
- Discrete
- Probability Mass Function
13Probability Density Function
- The pdf is computed from
- Properties
- For discrete r.v.
fX(x)
fX(x)
dx
x
14Expected Value and Variance
- The expected value or mean of X is
- Properties
- The variance of X is
- The standard deviation of X is
- Properties
15Queuing Theory
16Example
- Send a file over the internet
packet
link
(fixed rate)
Modem card
buffer
17 Delay Models
place
Computation (Queuing)
transmission
propagation
C
B
A
time
18Queue Model
19Practical Example
20Multiserver queue
21Multiple Single-server queues
22Standard Deviation impact
23Queueing Time
24Queuing Theory
- The theoretical study of waiting lines, expressed
in mathematical terms
input
output
server
queue
Delay queue time service time
25The 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.
26Common Assumptions
- The queue is FCFS (FIFO).
- We look at steady state after the system has
started up and things have settled down. - Statea vector indicating the total of
customers in each queue at a particular time
instant - (all the information necessary to completely
describe the system)
27Notation for queuing systems
Where A and B can be
D for Deterministic distribution
M for Markovian (exponential) distribution
G for General (arbitrary) distribution
28The M/M/1 System
Poisson Process
output
Exponential server
queue
29Arrivals follow a Poisson process
- Readily amenable for analysis
- Reasonable for a wide variety of situations
- 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!
30Model for Interarrivals and Service times
- Customers arrive at times t0 lt t1 lt .... -
Poisson distributed - The differences between consecutive arrivals are
the interarrival times ?n tn - 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(Sn ? s) 1 - e-?s
31System Features
- Service times are independent
- service times are independent of the arrivals
- Both inter-arrival and service times are
memoryless - Pr(Tn gt t0t Tngt t0) Pr(Tn ? t)
- future events depend only on the present state
- ? This is a Markovian System
32Exponential Distribution
33Markov Models
departure
Buffer Occupancy
arrival
34Probability of being in state n
35Steady State Analysis
36Markov Chains
0 1 ... n-1
n n1
37Substituting Utilization
38Substituting P1
- Higher states have decreasing probability
- Higher utilization causes higher probability
- of higher states
39What about P0
Queue determined by
40E(n), Average Queue Size
41Selecting Buffers
For large utilization, buffers grow exponentially
42Throughput
- Throughpututilization/service time ?/Ts
- For ?.5 and Ts1ms
- Throughput is 500 packets/sec
43Intuition on Littles 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
44Applying Littles Law
45Probability of Overflow
46Buffer with N Packets
47Example
- Given
- Arrival rate of 1000 packets/sec
- Service rate of 1100 packets/sec
- Find
- Utilization
- Probability of having 4 packets in the queue
48Example
49Application 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/N
R/N
R
50Network of M/M/1 Queues
51M/G/1 Queue
Assume that every customer in the queue pays at
rate R when his or her remaining service time is
equal to R.
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.
Total cost paid by a customer
Expected cost paid by each customer
S
0
Q
S