Mid
Random Variable¶
- The result of experiments (random events)
Markov's Inequality¶
- for
and
Proof¶
Define a lower bound r.v.
thus,
then,
Chebyshev's Inequality¶
- for
is r.v. having mean and variance , then for ,
Proof¶
and by Markov's inequality, we now have,
Law of Large Number¶
Weak Law of Large Number¶
Let
Proof¶
First of all,
- since i.i.d.,
then by Chebyshev's inequality,
Central Limit Theorem¶
- The sum of samples is also an normal distribution when
. - The sample mean is normal distributed.
Let
in which
Monte Carlo Approach¶
Acceptance-Rejection Method¶
- required
To solve
Normally, we hope
Standard Normal R.V. Example
- absolute value of Z
and let say
then,
thus
MM1 queue¶
First of all, with the entering rate
and the server would be stable iff
graph LR
s0((0))
s1((1))
s2((2))
sn-1((n-1))
sn((n))
sn+1((n+1))
s0 --"λ"--> s1
s1 --"λ"--> s2
s1 --"μ"--> s0
s2 --"μ"--> s1
sn-1 --"λ"--> sn
sn --"λ"--> sn+1
sn --"μ"--> sn-1
sn+1 --"μ"--> sn
The states transition graph have to follow the rule that the outgoing probability must be equal to ingoing probability. Thus it yields the following equations
in which
Recursively, we would have
and since we known that
and thus we know that the stable state probability of number of customers
Number of Customers in System¶
Average Departure Rate¶
Waiting Time¶
- overall time spent in system
- time wait in queue
Sample Stats.¶
Sample Mean¶
- denotation
– popluation mean – population variance – sample mean
Binomial and Negative Binomial¶
Binomial Distribution¶
- distribution of number of success
given number of trails
Negative Binomial Distribution¶
- distribution of number of trails
given number of success- namely, distribution of number of failures
given number of success
- namely, distribution of number of failures
Geometric Distribution¶
- number of trails
until success
Generation Method¶
- CMF
let
thus
Poisson Distribution¶
- Considering events occur with rate
, with time interval , there would be average number of events per interval.- say that
, expected rate of occurrences - Split the time interval
in to pieces and make the sub-interval very small(i.e. very large). - if
, it approximates to do one Bernoulli trails in each time interval .
- say that
, indicates is the number of events occurs in unit time interval (and the event rate is ).
hint
Generation Method¶
- Generate several exponential random variable
- until
Exponential Distribution¶
- time between events in Poisson process
-
continuous analogue of the geometric distribution.
-
CDF
- take
- split unit time interval to
, where is large - then
- take
Generation Method¶
Since,
identically,