Documente Academic
Documente Profesional
Documente Cultură
= P (T T ) + P (HT ) + P (T H) = 0.75
S = {s : s ≥ 0}
If the random variable X is the lifetime of this
battery, then
The function
4
Joint Distribution Function
P (X ≤ x, Y ≤ y) = P (X ≤ x)P (Y ≤ y).
Equivalently, in terms of the joint distribution
function F of X and Y , the random variables
X and Y are independent if, for all x and y,
6
Discrete Random Variables
Y = u(X),
where u : R → R is some function, such that
E[Y ] exists. Then, for each yj in the range of
Y , there exists xi in the range of X such that
yj = u(xi). We have
∑
E[Y ] = yj P (Y = yj )
j
∑
= yj P (∪{i: u(xi)=yj }{s : X(s) = xi})
j
∑ ∑
= yj P ({s : X(s) = xi})
j {i: u(xi )=yj }
∑ ∑ ∑
= yj p(xi) = u(xi)p(xi)
j {i: u(xi)=yj } i
Hence,
∑
E[u(X)] = u(xi)p(xi).
i
8
Let X be a random variable with expected
value µ. The variance of X is defined as
9
z-Transforms
Many random variables assume only integral
values 0, 1, 2, 3, ... . Let X be such a variable.
In order to simplify the notation we replace p(i)
by pi. Consider the power series
∞
∑
g(z) = pi z i
i=0
which is called the probability generating func-
tion. The series g(z) converges for |z| ≤ 1. In
particular, g(1) = 1, and since
∞
∑
d
g(z) = ipiz i−1,
dz i=1
we have ∞ ∞
∑ ∑
E[X] = ipi = ipi = g ′(1).
i=0 i=1
Moreover, since
∞
∑
d2 i−2 ,
g(z) = i(i − 1)p i z
dz 2 i=2
we have
∞
∑ ∞
∑
g ′′(1) = i(i − 1)pi = i(i − 1)pi
i=2 i=0
10
∞
∑ ∞
∑
= i2pi − ipi = E[X 2] − g ′(1).
i=0 i=0
Hence,
( )2
′′ ′ ′
V ar[X] = g (1) + g (1) − g (1) .
11
Consider
∞
∑
g1(z) = P (X1 = j)z j
j=0
and ∞
∑
g2(z) = P (X2 = j)z j .
j=0
Then
∞
∑ k
∑
g1(z)g2(z) = P (X1 = j)P (X2 = k − j) z k
k=0 j=0
∞
∑
= P (Y = k)z k = g(z)
k=0
Hence, for Y = X1 + X2,
g(z) = g1(z)g2(z).
Example. A Bernoulli random variable has two
possible values: 1 with probability p and 0 with
probability q = 1 − p. Then
E[X] = 0 · q + 1 · p = p
12
and
V ar[X] = E[X 2] − (E[X])2
g(z) = q + pz.
Therefore,
E[X] = g ′(1) = p
and
( )2
′′ ′ ′
V ar[X] = g (1) + g (1) − g (1)
= 0 + p − p2 = pq.
13
Binomial Distribution
Some experiments can be viewed as a sequence
of identical and independent trials, each re-
sulting in one of two outcomes called “suc-
cess” and “failure”. Such trials are often called
Bernoulli trials. Let p be the probability of suc-
cess in any single Bernoulli trial and Y be the
number of successes observed in n such trials.
Then
Y = X1 + X2 + ... + Xn,
where all X1, X2, ..., Xn are mutually inde-
pendent and identically distributed Bernoulli
random variables. Therefore Y has generat-
ing function
n
∑
g(z) = P (Y = k)z k = (q + pz)n
k=0
n ( ) n ( )
∑ n ∑ n
= k
(pz) q n−k = pk q n−k z k ,
k k
k=0 k=0
where ( )
n n!
= .
k k!(n − k)!
14
Hence, for k = 0, 1, ..., n,
( )
n k n−k
P (Y = k) = p q .
k
We will say that Y has a binomial distribution
(is a binomial random variable). We have
d d
g(z) = (q + pz)n = np(q + pz)n−1
dz dz
= np(1 − p + pz)n−1
Hence
E[Y ] = g ′(1) = np.
Similarly
15
Alternatively
n n ( )
∑ ∑ n i
E(Y ) = i · P (X = i) = i· p (1 − p)n−i
i
i=0 i=0
n
∑ n!
= i· pi(1 − p)n−i
i=1 (n − i)!i!
n
∑ n!
= pi(1 − p)n−i
i=1 (n − i)!(i − 1)!
n
∑ (n − 1)!
= np pi−1(1 − p)n−i
i=1 (n − i)!(i − 1)!
n−1
∑ (n − 1)!
= np pj (1 − p)n−1−j
j=0 (n − 1 − j)!(j)!
n−1 ( )
∑ n−1
= np pj (1 − p)n−1−j
j
j=0
16
Poisson Distribution
Let X be a discrete random variable that can
take on the values 0, 1, 2, ... . Then X is
a Poisson random variable (X is Poisson dis-
tributed or X has a Poisson distribution) if
λk e−λ
P (X = k) = ,
k!
where P (X = k) is a probability that X = k
and λ is a positive constant. The probability
generating function is given by
∞ ∞
∑ λk e−λ k −λ
∑ (λz)k
g(z) = z =e
k=0
k! k=0
k!
= e−λeλz = eλ(z−1).
Hence,
g ′(z) = λeλ(z−1) and g ′′(z) = λ2eλ(z−1),
and therefore,
17
The idea of z-transform is applicable not only
to random variables with positive integer val-
ues but to any sequences of real numbers. Thus,
let a0, a1, a2, ... be a sequence of real num-
bers. If
∞
∑
g(z) = a0 + a1z + a2z 2 + a3z 3 + ... = ai z i
i=0
converges in some interval |z| < b, then g(z) is
called the generating function of the sequence
a0, a1, a2, ... .
g(z) = 1 + z + z 2 + ...
This series converges for |z| < 1 and
1
g(z) = .
1−z
18
Example Consider a sequence where
{
0 if i is either 0 or 1
ai =
1 otherwise
Then, the generating function
∞
∑ ∞
∑
g(z) = 0 + 0z + 1z 2 + ... = zi = z2 zi
i=2 i=0
This series converges for |z| < 1 and
z2
g(z) = .
1−z
19
∑∞ i and q(z) =
Theorem 1 If g(z) = p i z
∑∞ i=0
i=0 qi z , then for |z| < 1
i
1 − g(z)
q(z) =
1−z
22