Review of Random Processes
Lecture 14
EEE 352 Analog Communication Systems Mansoor Khan
Electrical Engineering Dept. CIIT Islamabad Campus
Random Variable
A random variable is a mapping function which assigns
outcomes of a random experiment to real numbers.
Occurrence of the outcome follows certain probability
distribution. Therefore, a random variable is completely
characterized by its probability density function (PDF).
Random Process
A random variable that is a function of
time is called a random or stochastic
process. Thus a random process is a
collection of infinite number of random
variables.
Examples of random processes
Daily stream flow
Hourly rainfall of storm events
Stochastic process
Example: Let X(t) be the number of people in a particular railway
station from 8Am to t (>=8). Clearly, for each given t, X(t) is a random variable. Table below lists some possible values that X(t) could take:
date X(9) X(10) X(11) X(12) X(13) X(14) … Oct. 12 1360 1412 1750 1603 1598 1821 … Oct. 13 1362 1490 1713 1641 1601 1845 … Oct. 14 1289 1472 1739 1593 1614 1864 … Oct. 15 1313 1453 1721 1631 1622 1871 … Oct. 16 1368 1481 ? ? ? ? ? Oct. 17 ? ? ? ? ? ? ?
Stochastic Process
• Stochastic processes are processes that proceed randomly in time. • Rather than consider fixed random variables X, Y, etc. or even
sequences of random variables, we consider sequences X0, X1,
X2, …. Where Xt represent some random quantity at time t.
• In general, the value Xt might depend on the quantity Xt-1 at time t-1, or even the value Xs for other times s < t.
Continuous and Discrete Time Stochastic
Process
• A stochastic process is a family of time indexed random variables Xt where t belongs to an index set. Formal notation, where I is an index set that is a subset of R.
• Examples of index sets:
1) I = (-∞ to ∞ or I = [0, ∞. In this case Xt is a continuous time stochastic process.
2) I = {0, ±1, ±2, ….} or I = {0, 1, 2, …}. In this case Xt is a discrete time stochastic process.
• We use uppercase letter {Xt } to describe the process. A time series, {xt } is a realization or sample function from a certain process.
• We use information from a time series to estimate parameters and properties of process {Xt }.
Probability Distribution of a Process
• For any stochastic process with index set I, its probability distribution function is uniquely determined by its finite dimensional distributions.
• The k dimensional distribution function of a process is defined by
for any and any real numbers x1, …, xk .
• The distribution function tells us everything we need to know about the process {Xt }.
k
t t k
X X x x P X x X x F k k t t1,..., 1,..., 1 1,..., I t t1,..., k Statistical Averages Summary
• The first moment of a
probability distribution of a random variable X is called mean value mX, or expected value of a random variable X
• The second moment of a
probability distribution is the mean-square value of X
• Central moments are the moments of the difference between X and mX and the second central moment is the
variance of X
• Variance is equal to the difference between the mean-square value and the square of the mean
mX = E{X} = ∫ x pX(x) dx -∞ ∞ E{X2} = ∫ x2 p X(x) dx -∞ ∞ Var(X) = E{(X – mX)2 } = ∫ (x – mX)2 px(x) dx -∞ ∞
Stationary Processes
• A process is said to be strictly stationary if has the same joint distribution as . That is, if
• If {Xt } is a strictly stationary process and then, the mean function is a constant and the variance function is also a constant.
• Moreover, for a strictly stationary process with first two moments finite, the covariance function, and the correlation function depend only on the time difference s.
X ,...,t1 Xtk
Xt1,..., Xtk
k
X X
k
X X x x F x x F k t t k t t1,..., 1,..., 1,..., 1,...,
2 t X EWeak Stationarity
• Strict stationary is too strong of a condition in practice. It is often
difficult assumption to assess based on an observed time series x1,…,xk. • In time series analysis we often use a weaker sense of stationary in
terms of the moments of the process.
• A process is said to be nth-order weakly stationary if all its joint
moments up to order n exists and are time invariant, i.e., independent of time origin.
• For example, a second-order weakly stationary process will have constant mean and variance, with the covariance and the correlation being functions of the time difference along.
• A strictly stationary process with the first two moments finite is also a second-ordered weakly stationary. Also called Wide sense Stationary
First order stationary process
The probability density function of a first
order stationary process satisfies
If x(t) is a first order stationary process
then
(
,
)
,
)
,
(
x
1t
1p
x
1t
1for
all
t
1p
x xconstant
)}
(
{
)}
(
{
x
t
E
x
t
x
E
Second order stationary process
The Second order density function of a
second order stationary process satisfies
If x(t) is a second order stationary
process then
,
,
)
,
,
,
(
)
,
,
,
(
2 1 2 1 2 1 2 1 2 1t
t
all
for
t
t
x
x
p
t
t
x
x
p
x x)
(
)}
(
)
(
{
}
,
(
1 1
1 1
xx
xxt
t
E
x
t
x
t
R
R
Wide Sense Stationary
A process is Wide Sense Stationary process if
Second order stationary Wide Sense Stationary
process. •
)
(
)}
(
)
(
{
constant
}
)
(
{
1 1x
t
R
xx
t
x
E
x
t
x
E
Estimation of the mean
• Given a single realization {xt} of a stationary process {Xt}, a natural estimator of the mean is the sample mean
which is the time average of n observations.
Xt E
n t t x n x 1 1Sample Autocovariance Function
• Given a single realization {xt} of a stationary process {Xt}, the sample autocovariance function given by
is an estimate of the autocavariance function.
n k t k t t x x x x n k 1 1 ˆ
Correlation Functions
)}
(
)
(
{
)
,
(
)
(
),
(
2
2
1
1
2
1
2
1
t
x
t
x
E
t
t
R
t
x
and
t
x
of
n
correlatio
The
xx
Time Average
The time average of x(t)
T T T T T Tdt
t
x
t
x
T
dt
t
x
T
x
of
A
T
)
(
)
(
2
1
lim
)
(
R
is
function
ation
autocorrel
time
The
)
(
2
1
lim
.
.
xx
Ergodic Process
If the time average and time autocorrelation are
equal to the statistical average and statistical
autocorrelation then the process is ergodic.