Probability and Stochastic Processes
Probability and Stochastic Processes
Probability and Stochastic Processes
Processes
References:
Wolff, Stochastic Modeling and the Theory of
Queues, Chapter 1
Altiok, Performance Analysis of Manufacturing
Systems, Chapter 2
Chapter 0 1
Basic Probability
• Envision an experiment for which the result is unknown. The
collection of all possible outcomes is called the sample space. A set of
outcomes, or subset of the sample space, is called an event.
• A probability space is a three-tuple ( ,, Pr) where is a sample
space, is a collection of events from the sample space and Pr is a
probability law that assigns a number to each event in . For any
events A and B, Pr must satsify:
– Pr() = 1
– Pr(A) 0
– Pr(AC) = 1 – Pr(A)
– Pr(A B) = Pr(A) + Pr(B), if A B = .
• If A and B are events in with Pr(B) 0, the conditional probability
of A given B is Pr A B
Pr A B
Pr B
Chapter 0 2
Random Variables
A random variable is “a number that you don’t know… yet”
Sam Savage, Stanford University
• Discrete vs. Continuous
• Cumulative distribution function
• Density function
• Probability distribution (mass) function
• Joint distributions
• Conditional distributions
• Functions of random variables
• Moments of random variables
• Transforms and generating functions
Chapter 0 3
Functions of Random Variables
Chapter 0 4
Conditioning (Wolff)
• Frequently, the conditional distribution of Y given X is
easier to find than the distribution of Y alone. If so,
evaluate probabilities about Y using the conditional
distribution along with the marginal distribution of X:
Pr Y A Pr Y A
X x f X x dx
Chapter 0 5
Convolution
• Let X = Y+Z.
Pr X x Z z Pr Y Z x Z z Pr Y x z Z z
FX x Pr Y x z Z z f Z z dz fY Z y Z z f Z z dydz
xz
– Example: Poisson
– Note: above is cdf. To get density, differentiate:
d d x z
fX x FX x f Z z fY y dy dz fZ z fY x z dz
dx dx
Chapter 0 6
Moments of Random Variables
• Expectation = “average” E X xf X x dx or x Pr X x
E g X g x f X x dx or
g x Pr X x
• Variance = “volatility” Var X E X E X E X 2 E X
2 2
Cv X Var X E X
(s.c.v.) Cv X2 Var X E 2 X
Chapter 0 7
Linear Functions of Random Variables
E X Y E X EY
E aX aE X
Var aX a 2 Var X
Var X Y Var X Var Y 2Cov X , Y
Chapter 0 8
Transforms and Generating Functions
• Moment-generating function M * E e X e x f X x dx
d k E e X
E X k
d k
0
• Laplace transform (nonneg. r.v.) E e sX e sx f x dx, s 0
0 X
d k E e sX
E X k 1
k
ds k
• Generating function (z – transform) s 0
dz z 1
dz 2 z 1
Chapter 0 9
Special Distributions
• Discrete
– Bernoulli
– Binomial
– Geometric
– Poisson
• Continuous
– Uniform
– Exponential
– Gamma
– Normal
Chapter 0 10
Bernoulli Distribution
E N p
Var N p 1 p
1 p
CvN2
p
M * 1 p pe
Chapter 0 11
Binomial Distribution
k
E N np
Var N np 1 p
1 p
Cv
2
N
np
M 1 p pe
* n
Chapter 0 12
Geometric Distribution
Chapter 0 13
z-Transform for Geometric Distribution
Given Pn = (1-p) p, n = 1, 2, …., find G z n 0 Pn z
n
n-1
G z n 1 1 p pz n pz n 1 1 p z pz n 0 1 p z
n 1 n 1 n
pz 1
n0
, using geometric series a n
for a 1
1 1 p z 1 a
dG z p 1
Then, E N
1 p pz z 1
2
dz z 1
p
d 2
G z 21 p 2 p
E N2 E N , so E N2 and
dz 2 z 1
p2 p 2
1 p
Var N E N E N
2
2
2
p
Chapter 0 14
Poisson Distribution
E N
Var N
CvN2 1
Chapter 0 15
Uniform Distribution
ab
E X
2
b a
2
Var X
12
b a
2
Cv X2
3 b a
2
a b
Chapter 0 16
Exponential Distribution
X is nonnegative and it is most likely to fall near 0
f X x e x , x 0
FX x 1 e x , x 0
1
E X
1
Var X 2
Cv X2 1
Also memoryless; more on this later…
Chapter 0 17
Gamma Distribution
X is nonnegative, by varying parameter b get a variety of shapes
b x b 1e x
fX x , x 0, where b x e dx for b 0
b 1 x
b 0
b
E X
b
Var X 2
1
Cv X
2
b
When b is an integer, k, this is called the Erlang-k distribution,
and k k 1 ! Erlang-1 is same as exponential.
Chapter 0 18
Normal Distribution
X follows a “bell-shaped” density function
1
fX x
x
2
2 2
e , x
2
E X
Var X 2
Chapter 0 19
m.g.f.’s of Exponential and Erlang
Chapter 0 20
Stochastic Processes
A stochastic process is a random variable that changes over time,
or a sequence of numbers that you don’t know yet.
• Poisson process
• Continuous time Markov chains
Chapter 0 21
Stochastic Processes
pn t ,n 0
n!
Chapter 0 23
Poisson Process and Exponential Dist’n
Chapter 0 25
More Exponential Distribution Facts
1. Suppose T1 and T2 are independent with T1 exp 1 , T2 exp 2
1
Then Pr T1 T2
1 2
2. Suppose (T1, T2, …, Tn ) are independent with Ti exp i
Let Y = min(T1, T2, …, Tn ) . Then Y exp 1 2 ... n
3. Suppose (T1, T2, …, Tk ) are independent with Ti exp
Let W= T1 + T2 + … + Tk . Then W has k 1 an Erlang-k distribution with
density function fW w e w , w 0 with
w
k 1 !
k
EW and
k
Var W 2
Chapter 0 26
Continuous Time Markov Chains
Then 0 pij t 1, p t 1
j
ij
Chapter 0 27
CTMC Another Way
Then t Pr X t j p t 0
j ij i
i
Chapter 0 28
CTMC Infinitesimal Generator
Chapter 0 29
Long Run (Steady State) Probabilities
Let limt pij t j
• Under certain conditions these limiting probabilities can be
shown to exist and are independent of the starting state;
• They represent the long run proportions of time that the
process spends in each state,
• Also the steady-state probabilities that the process will be
found in each state.
Then Q 0 with 1
i i
or, equivalently, q j j qi pij i for all j 0,1, 2,...
i j
• Erlang distribution
• Hyperexponential distribution
• Coxian (mixture of generalized Erlang) distributions
Chapter 0 31