Professional Documents
Culture Documents
Examples:
X = number of heads when the experiment is flipping a coin 20
times.
C = the daily change in a stock price.
R = the number of miles per liter you get in your bike.
2
Types of Random Variables
A discrete random variable can take on only a
finite number of values or a countable number of
values.
- you can sit down and list all possible outcomes without missing any,
5
Probability Distributions
6
Discrete
Probability Distribution
1.List of All possible [x, P(x)] pairs
x = Value of Random Variable (Outcome)
P(x) = Probability Associated with Value
2.Mutually Exclusive (No Overlap)
3.Collectively Exhaustive (Nothing Left Out)
4. 0 P(x) 1
5. P(x) = 1
7
Mean and Variance of a
discrete probability distribution
E( X ) xi p(xi )
i
V ( X ) E X E( X ) xi E(xi ) p(xi )
2 2 2
X
i
2
E ( X ) [ E ( X )] xi p ( xi ) xi p ( xi )
2 2 2
i i
8
A few notes about Expected Value
If c= a constant number (i.e., not a variable) and X and Y are any random
variables…
• E(c) = c
• E(cX)=cE(X)
• E(c + X)=c + E(X)
• E(X+Y)= E(X) + E(Y)
9
A few notes about Variance
If c= a constant number (i.e., not a variable) and X and Y are random
variables, then
V(c) = 0
V(c+X)= V(X)
V(cX)= c2V(X)
V(X+Y)= V(X) + V(Y) Only if X and Y are independent
V(X+Y)= V(X) + V(Y)+2COV(X,Y), If X and Y are not
independent
10
The Expected Value and variance of
a continuous Random Variable
If dx is an infinitely small number, the probability that X is included within the interval
(x, x + dx) is equal to f(x)dx, i.e. P(x< X < x+dx) = Prob(x ≤ X ≤ x+dx) = f(x)dx
Where f(x) : Probability density function, a piecewise continuous function, f(x)≥0
f ( x)dx 1
Rx
b
P(a X b) f ( x)dx
a
E( X ) xf ( x)dx
V ( X ) E ( X ) 2
( x ) 2 f ( x)dx
The Poisson Distribution
The distribution was derived by the French
mathematician Siméon Poisson in 1837,
and the first application was the description
of the number of deaths by horse kicking in
the Prussian army.
2
For a Poisson random variable, the
variance and mean are the same!
average number of events on per unit basis that happen over specified area,
volume, time, etc. (shape parameter)
e x
p ( x) with =4.5
x!
4.5 0
e 4.5
p (0) So p(0) = 0.01111
0!
Similarly p(1)=0.04999 and p(2)=0.11248
So the probability of fewer than 3 arrivals
is 0.01111+ 0.04999 + 0.11248 =0.17358
Mean of Poisson Distribution
e x
p ( x) x 0,1, 2,...
x!
e x
E ( X ) xp( x) x
x 0 x 0 x !
e x e x
x
x 1 x ! x 1 ( x 1)!
x 1
e e e
x 1 ( x 1)!
Variance of Poisson Distribution
V ( X ) E X 2 E ( X ) E X ( X 1) E ( X ) E ( X )
2 2
e x
x( x 1) 2
x 0 x
e x
x( x 1) 2
x2 x
e x
2
x2 x 2
x2
e 2
x2 x2
2
2 e e 2 2 2
V (X )
Exponential Distribution
• A continuous random variable X follows the exponential
distribution with parameter , if its probability density
function is:
e x if x 0
f ( x)
0 if x 0
2-20
Exponential Distribution
• Mean and Variance:
1 1
E[ X ] , Var( X )
2
Proof:
E[ X ] x f ( x ) dx x e x dx
0 0
1
xe x
e x dx
0 0
2 2
E[ X ] x e
2 2 x
dx x e 2 x
2 xe x dx E[ X ]
0 0 0 2
2 1 1
Var( X ) E[ X 2 ] ( E[ X ]) 2
2 2 2
2-21
Graphing Exponential Distribution
f (x)
X=t
e x if x 0
f ( x)
0 if x 0
Model Queuing System
Queuing System
Customer Customer
Arrival Departure
Queue Server
Performance Measures