






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
communication system lab manual for students
Typology: Exams
1 / 12
This page cannot be seen from the preview
Don't miss anything!







Discrete-time (or digital) signal: Deterministic and random signals:
Single Random Variables
Multiple Random Variables
Prediction and Estimation
Two Types of Random Variables: Uniform and Gaussian Random Variables
Some useful MATLAB functions:
Discrete-time (digital) signal: x ( n )= xa ( nTs ), (1) that is a function of an integer-valued variable n and may result from sampling a continuous-time (analog) signal xa ( t ) with an A/D (analog-to-digital) converter having a sampling interval Ts (or sampling rate f (^) s = 1 / Ts ) so that continuous time t becomes discrete-time nTs , i.e., t = nTs. For a digital signal x ( n ), therefore, time instant n means n Ts. The signals that we study here are always digital.
Deterministic and random signals:
Example 1. Measurements of signals using a digital oscilloscope Digital oscilloscopes are a commonly-used instrument for various signal measurements, and they are usually equipped with an averaging function that is used to reduce noise when measuring a noisy deterministic signal that is a desired deterministic signal interfered with unwanted noise.
When xa ( t )is recorded with the sampling interval Ts = T 20 , it has a digital form of x ( n )= sin( π n / 10 ). Repeating the measurement N times, we will get N sinusoidal waveforms xk ( n ) (where k = 1, 2, …, N ) that all are exactly the same, i.e., xk ( n )= sin( π n / 10 ) for all k , and the mean-value waveform (^1) ( ) sin( / 10 ) 1
x n n N
N k k =^ π =
is the same as all the N waveforms. At any time instant n , we can determine the
respectively. These show that a deterministic signal x ( n ) is repeatable and predictable. (b) Measurements of thermal noise xa ( t ) , a random signal.
The thermal noise voltage generated in a resistor is a commonly-encountered random signal. When the noise signal xa ( t )is recorded by a digital oscilloscope, it has a digital form x ( n ). Repeating the record N times, the N recorded waveforms xk ( n ) (where k = 1, 2, …, N ) will be different and the mean-value waveform (^) =
N k k^
x n N (^) 1
(^1) ( ) approaches to zero when N →∞, which demonstrates that x ( n ) is not repeatable.
At time instant n the value of x ( n ) it may take one of the N possible waveforms xk ( n )for k = 1, 2, …, N. This shows that x ( n ) is not predictable. Thus, a random signal x ( n ) is unrepeatable and unpredictable.
The characteristics of deterministic and random signals can, in general, be summarized as follows:
Single Random Variables
Definition of random variables: A random variable x is defined when each elementary event
x , and is assigned with a certain probability (Fig. 2). The sample space is defined by the set of all possible experimental outcomes (elementary events). An elementary event is the event consisting of a single element. A random variable x may be of discrete type or continuous type.
Example 2. Discrete random variables In the experiment of rolling a fair die, we have six elementary
take one of the six numbers
may happen is 1/6, and is mathematically expressed as Pr{ x = i } = 1/6, where i =1, 2, …, 6 Example 3. Continuous random variables In the case of a uniform distribution over interval ( b , c ), a random variable x is of continuous type and
infinite number of elementary events, each taking a value in the interval ( b , c ). The probability of each elementary event is
Probability distribution function and probability density function: A random variable x is characterized statistically or described probabilistically by means of the
which is a probability that x assumes a value that is less than α. A random variable can also be characterized statistically by the probability density function , f (^) x ( α),
given by f (^) x (α )= dFx (α) d α (3)
Fig. 2. Definition of a discrete random variable
We shall say that the statistics of a random variable x are known if we can determine the probability distribution function or the probability density function.
Example 4. Probability distribution function and probability density function (i) For the experiment of rolling a die in which the probability that the random variable assumes one of the six numbers k =1, 2, …, 6 is Pr{ x = k }= 1 / 6 , the distribution function and the density function of the discrete
random variable are, respectively,
α
α
α
α
6 1
k x (^) d Fx k
(ii) For the uniform distribution, the distribution function and density function of the continuous random variable are, respectively,
c
b b c c b
b Fx
0, otherwise
( ) ( )^1 , b c f (^) x dd Fx c b
Ensemble Averages of random variables
A random variable x can also be characterized by ensemble averages, e.g., mean and variance. Mean (or mean value, or expected value):
(expected value) is defined as = = = k
For a continuous random variable x , this expectation may be written in terms of the probability density
∞
The expectation is a linear operation since E { ax + by } = aE { x } + bE { y } (8)
For a complex random variable, the mean-square value is E { zz *} = E {| z |^2 }. (9)
Variance:
defined as = = { [^ − ]}^ =[ − ] = k
The n th moment of a random variable is defined by
∞ −∞
which is the expected value of x n. The first order moment, obviously, is the mean value m (^) x. The mean-square value is E { x^2 }, the second moment, that is an important statistical average and often used
as a measure for the quality of an estimate.
The n th central moment of a random variable is defined by
∞ −∞
The n th absolute moment and absolute central moment of a random variable are defined, respectively, as E {| x | n }and E {| x − mx | n } (18) Note that for a complex variable z , the second central moment E {( z − m z )^2 }is different form the second absolute central moment E {| z − mz |^2 }= E {( z − mz )( z − m z )*}, where *^ means the conjugate of a complex
value.
Multiple Random Variables
When a problem is involved with two or more random variables, it is necessary to study the statistical dependencies (or relations) that may exist between the random variables. The statistical dependencies can be joint distribution and density functions, and correlation and covariance.
Joint distribution function and joint density function: Given two random variables x ( 1 ), and x ( 2 ), the joint distribution function for the random variables is
and the joint density function is
( , ) ( 1 ),( 2 )( 1 , 2 ) 1 2
2
For a complex random variable z = x + jy the distribution function for z is given by the joint distribution
function
Joint moments: Like in the case of a single random variable, the statistical dependencies can also be described by ensemble averages. The joint moments are just used for this purpose. The correlation and covariance of two random variables are the two joints most often used in this course. The joint moment of the random variables x and y is defined by E { xk^ y * l } (22) where y *is the conjugate of y.
The joint central moment of the random variables x and y is defined by E {( x − mx ) k ( y − my )* l } (23)
The orders of the moments are k+l.
Correlation and covariance of two random variables: Correlation : rxy = E { xy^ *}, (24)
that is a second order joint moment Covariance : c (^) xy = Cov( x , y )= E {[^ x − mx ][^ y − my ]*}^ = E { xy^ *}^ − mxm * y = rxy − mxm * y , (25)
that is the second order joint central moment. The correlation and covariance are used to statistically characterize the relationship between two random variables, and they play an important role in studying signal modeling, spectrum estimation, and Wiener filters.
Correlation coefficient: The correlation coefficient , a normalized covariance,
x y
xy x y x y xy cxy r m^ m
An interesting property of the correlation coefficient is that
Relationship between random variables (Independence, Uncorrelatedness, and Orthogonality): Two random variables x and y are said to be statistically independent if
Two random variables x and y are said to be statistically uncorrelated if E { xy *}= E { x } E { y *} or rxy = mxm * y (29)
which is a weaker form of the independence. In this case, the covariance is zero, c (^) xy = rxy − mxm * y^ = 0. Thus, two random variables x and y will be s tatistically uncorrelated if their covariance is zero, c (^) xy = 0.
Note that statistically independent variables are always uncorrelated, but the converse is not true in general. A useful property of uncorrelated random variables is the following Var{ x + y }=Var{ x }+Var{ y } (30) since Var{ x + y }= E {[ x + y − mx − my ][ x + y − mx − my ]*^ } =Var{ x }+ cxy +( c (^) xy ) *+Var{ y }. Two random variables x and y are orthogonal if their correlation is zero, E { xy *}= 0 or rxy = 0.
Prediction and Estimation
Prediction and estimation are two general classes of problems encountered in statistical investigations. In the prediction case, the probabilistic model (e.g., a certain distribution, or density, function) of the problem is assumed to be known, and predictions are made concerning future observations. For example, in
Example 9. The bias and consistency of the sample mean (Example 3.2.3 on p. 74)
N x (^) n n x N m 1
ˆ (^1) has the expected value
{ } { } (^) x
N
n
x
N
n
= 1 = 1
which is an unbiased estimator. The variance of the sample mean is
{ } { } N x N N E x m N
x N m x x
N
n
n
N
n
n x
N
n
n
N
n
x n^2 1
2 1
2
1 1
= = = =
which goes to zero as N →∞. Therefore, the sample mean is an unbiased and consistent estimator.
Linear Mean-Square Estimation: The linear mean-square estimator y ˆ^ of a random variable y in terms of a random variable x is of the form, y ˆ^ = ax + b (37)
and the goal is to find the values for a and b that minimizes the mean-square error
a E a y ax b E y ax b x Exy aEx bmx
∂ (^) y ax b E y ax b m am b b
b y x
Solving the two equations for a and b , we find
x
y
and further the optimum linear estimator for y is
x x^ y
y
that y = ax + b. The random variables x and y are linearly related to each other.
Two notes from this example: (i) The correlation coefficient provides a measure of the linear predictability between random variables. The
(ii) The orthogonality principle : E { ( y − y ˆ) x } = E { ex } = 0 (where e = y − y ˆis called estimation error that is a random variable, and E { ex }is just the correlation between e and x , namely, E { ex } = rex ), which follows from ∂ξ ∂ a = E { 2 ( y − ax − b )(− x )} = − 2 E { ( y − y ˆ) x } = 0. This principle states that for the optimum linear predictor the estimation error will be orthogonal to the data x because of E { ex } = rex =0. It is fundamental in mean-square estimation problems.
Two Types of Random Variables: Uniform and Gaussian Random Variables
Uniform and Gaussian random variables are two types of important random variables in probability theory. Gaussian random variables are also called normal random variables. The random processes that are made up of a sequence of such random variables play an important role in statistical signal processing.
Uniform random variable: The statistical properties of a uniform random variable, i.e., its probability, probability distribution and probability density functions, its mean and variance, have been investigated in Examples 3-6, respectively.
Gaussian random variable: The density function of a Gaussian random variable x is of the form
2
2 2 exp ( ) 2
x
x x
x f^ m
reveals that the density function of a Gaussian random variable is completely defined once the mean and the variance are given. The joint density function of Gaussian random variables x and y is given by
2 2 2
2 , 2
exp ( ) 2 ( )( ) 2 1
y
y x
x y xy x
x x y xy
xy f m m m^ m
Gaussian random variables have a number of important properties as follows: Property 1. If x and y are jointly Gaussian, then for any constants a and b the random variable z = ax + by is Gaussian with mean mz = amx + bm y , and variance
Property 3. If x and y are jointly Gaussian random variables then the optimum nonlinear mean-square estimator for y , y ˆ^ = g ( x ), that minimizes the mean-square error ξ= E { ( y − g ( x ))^2 } is a linear estimator y ˆ = ax + b