SlideShare a Scribd company logo
1 of 6
Download to read offline
Stochastic Section # 4
Random Signals & Random Signal Models
Eslam Adel
March 21, 2018
1 Random Signals
1. Random signal is a sequence of random variables [x1, x2, x3, . . . , xN ].
2. Mean of the random signal E[x] can be approximated as
E[x] =
1
N
N−1
i=0
xi (1)
3. Sample Autocorrelation Rxnxn+k
is defined as:
Rxnxn+k
=
1
N
N−1−k
i=0
xi+kxi k = 0, 1, 2, . . . N (2)
4. We always assume that the signal is zero mean. If the signal is not zero mean, subtract the mean from it.
x → x − E[x]
Note: for zero mean signal Rxx = σ2
5. For random signal it is assumed that it is a wide sense stationary signal (WSS) Where :
1. E[x] = constant
2. Rxn+kxn = E[xn+kxn] = Rxx(k) (not a function of time variable n)
6. Stationarity means that for different windows of the same signal, statistical parameters are almost the
same.
7. For WSS signal Rxx(k) = Rxx(−k)
1.1 Example
Assume signal x[n] = [1, 2, 3, 4, 5]
Evaluate the following:
1. Rxx(0)
2. Rxx(−1)
3. Rxx(1)
Solution :
At first make sure that signal is zero mean
m = 3 so x[n] will be
x[n] = [−2, −1, 0, 1, 2]
1
1. Rxx(0)
Rxx(0) = 1
5 [−2, −1, 0, 2, 1] × [−2, −1, 0, 1, 2] = 10
5 = 2
2. Rxx(1)
Rxx(1) = 1
5 [−2, −1, 0, 2, 1] × [0, −2, −1, 0, 1] = 4
5
3. Rxx(−1)
Rxx(−1) = 1
5 [−2, −1, 0, 2, 1] × [−1, 0, 1, 2, 0] = 4
5
Note:
For WSS signal Rxx(k) = Rxx(−k)
1.2 Problem 1.25
A random signal x(n) is defined as a linear function of time by
x(n) = an + b (3)
where a and b are independent zero-mean gaussian random variables of variances σ2
a and σ2
b , respectively.
1. Compute E[x(n)]2
.
2. Is x(n) a stationary process? Explain.
3. For each fixed n, compute the probability density p(x(n))
Solution :
1. E[x(n)]2
E[x(n)2
] = E[(an + b)2
] = E[a2
n2
+ 2anb + b2
]
E[x(n)2
] = n2
E[a2
] + E[b2
] + 2nE[ab]
E[a2
] = σ2
a − 0 = σ2
a,E[b2
] = σ2
b and E[ab] = E[a]E[b] = 0:
E[x(n)2
] = n2
σ2
a + σ2
b
2. To check a signal is WSS or not
1. E[x] = 0 = const So we have to check the correlation
2. Rxx
Rxn+kxn
= E[xn+kxn] = E[(a(n + k) + b)(an + b)] = n(n + k)E[a2
] + E[b2
]
Rxn+kxn
= n(n + k)σ2
a + σ2
b
Rxx(k) is a function in time variable So x(n) is not WSS
3. p(x(n))
x(n) = an + b where a ∼ N(0, σ2
a) and b ∼ N(0, σ2
b )
So x ∼ N(0, σ2
x) and σ2
x = E[x2
] − m2
x = n2
σ2
a + σ2
b
p(x(n)) = 1√
2πσx
e
−x2
2σ2
x
2
2 Random Signal Models
The idea is that I don’t need to store the whole signal. I can model it and store only model parameters. Then
I can genrate my signal again using random signal generator and stored model. see figure 1
Applications :
1. Signal synthesis :
for example speech synthesis.
2. Classification :
Model parameters are considered as feature vector that used in classification process of different signals.
3. Data Compression
For data transmission, no bandwidth for transmission of all data. Only model parameters are transmitted
and signal will be recovered from model at the reciever.
Figure 1: General Block Diagram for signal modeling
2.1 Moving Average Model (MA)
X(Z) = C(Z) (Z)
Where (Z) is uncorrelated white gaussian noise (WGN)
In time domain
x(n) = N−1
i=0 cn−i i
2.2 Auto Regressive Model (AR)
X(Z) = b0
A(Z) (Z)
In time domain
N−1
i=0 an−ixi = b0 (n)
2.3 Auto Regressive Moving Average Model (ARMA)
X(Z) = B(Z)
A(Z) (Z)
In time domain
N−1
i=0 an−ixi =
N−1
i=0 bn−i i
3
2.4 Problem 1.30
A random signal yn is generated by sending unit-variance zero-mean white noise n through the filters defined
by the following difference equations:
1. yn = −0.9yn−1 + n
2. yn = 0.9yn−1 + n + n−1
3. yn = n + 2 n−1 + n−2
4. yn = −0.81yn−2 + n
5. yn = 0.1yn−1 + 0.72yn−2 + n − 2 n−1 + n−2
a) For each case, determine the transfer function of the filter, decide whether the model is ARMA, MA, or
AR.
b) Write explicitly the power spectrum Syy(w)
Solution:
1. Taking Z transform for both sides
Y (Z) = −0.9Y (Z)Z−1
+ (Z)
(1 + 0.9Z−1
)Y (Z) = (Z)
Y (Z) = 1
1+0.9Z−1 (Z)
So the transfer function is 1
1+0.9Z−1
Model type is AR.
Power Spectrum Syy(w) = 1
1+0.9e−jw
2
2. Taking Z transform for both sides
Y (Z) = 0.9Y (Z)Z−1
+ (Z) + (Z)Z−1
(1 − 0.9Z−1
)Y (Z) = (1 + Z−1
) (Z)
Y (Z) = 1+Z−1
1−0.9Z−1 (Z)
So the transfer function is 1+Z−1
1−0.9Z−1
Model type is ARMA.
Power Spectrum Syy(w) = 1+e−jw
1−0.9e−jw
2
3. Taking Z transform for both sides
Y (Z) = (Z) + 2 (Z)Z−1
+ (Z)Z−2
Y (Z) = (1 + 2Z−1
+ Z−2
) (Z)
So the transfer function is 1 + 2Z−1
+ Z−2
Model type is MA.
Power Spectrum Syy(w) = 1 + 2e−jw
+ e−2jw
2
4. Solve as above
5. Solve as above
4
Figure 2: Linear Estimation of signal
3 Linear Estimation of Signal
What’s beyond building signal model? We have to determine model parameters. But How to select them ?.
There is different ways to determine model parameters. Different methods are proposed. We will have two of
them.
So the case now is that we have a signal x that is changed due to noise to be another signal y. We applied
our model on y to estimate x so we got ˜x. see figure 2
3.1 Maximum Likelihood Method (ML)
The idea is to maximize the joint probability function of all random variables f(x1, x2, . . . , xN )
Applying this on first order autoregressive model AR(1)
X(Z) = 1
1−aZ−1 (Z)
model parameters are a and σ2
Solution will be :
a =
N−1
n=1 xnxn−1
N−1
n=1 x2
n−1
σ2
= 1
N
N−1
n=1 (x(n) − ax(n − 1))
3.2 Mean Square Error Method (MS)
Error is defined as :
e = x − ˜x
So the mean square error will be
E[(x − ˜x)2
]
to minimize the error differentiation of MSe with respect to model parameters must be zero.
Lets see an example:
3.2.1 Example 1
Assume
˜x = ay
Determine value of a that minimize the mean square error.
Solution:
MSe = E[e2
] = E[(x − ˜x)2
] = E[(x − ay)2
]
∂MSe
∂a = 0
E[2(x − ay) × −y] = 0
−E[xy] + aE[y2
] = 0
a = E[xy]
E[y2]
a =
Rxy(0)
Ryy(0)
5
3.2.2 Example 2
Given
˜x = ay(n) + by(n − 1)
Determine values of a and b to minimize the mean square error.
Solution:
MSe = E[e2
] = E[(x − ˜x)2
] = E[(x − ayn − byn−1)2
]
∂MSe
∂a = 0
E[2(x − ayn − byn−1) × −yn] = 0
−E[xy] + aE[y2
] + bE[yn−1yn] = 0
aRyy(0) + bRyy(1) = Rxy(0) (4)
Similarly for b
∂MSe
∂b = 0
E[2(x − ayn − byn−1) × −yn−1] = 0
−E[xyn−1] + aE[y2
ny2
n−1] + bE[y2
n−1] = 0
aRyy(1) + bRyy(0) = Rxy(1) (5)
We can put it in matrix form
Ryy(0) Ryy(1)
Ryy(1) Ryy(0)
a
b
=
Rxy(0)
Rxy(1)
(6)
Finally
a
b
=
Ryy(0) Ryy(1)
Ryy(1) Ryy(0)
−1
Rxy(0)
Rxy(1)
(7)
6

More Related Content

What's hot

2012 mdsp pr13 support vector machine
2012 mdsp pr13 support vector machine2012 mdsp pr13 support vector machine
2012 mdsp pr13 support vector machine
nozomuhamada
 
2012 mdsp pr09 pca lda
2012 mdsp pr09 pca lda2012 mdsp pr09 pca lda
2012 mdsp pr09 pca lda
nozomuhamada
 
2012 mdsp pr06  hmm
2012 mdsp pr06  hmm2012 mdsp pr06  hmm
2012 mdsp pr06  hmm
nozomuhamada
 

What's hot (20)

勾配法
勾配法勾配法
勾配法
 
2012 mdsp pr13 support vector machine
2012 mdsp pr13 support vector machine2012 mdsp pr13 support vector machine
2012 mdsp pr13 support vector machine
 
2012 mdsp pr09 pca lda
2012 mdsp pr09 pca lda2012 mdsp pr09 pca lda
2012 mdsp pr09 pca lda
 
Jacobi iterative method
Jacobi iterative methodJacobi iterative method
Jacobi iterative method
 
short course on Subsurface stochastic modelling and geostatistics
short course on Subsurface stochastic modelling and geostatisticsshort course on Subsurface stochastic modelling and geostatistics
short course on Subsurface stochastic modelling and geostatistics
 
Krishna
KrishnaKrishna
Krishna
 
Mixed Spectra for Stable Signals from Discrete Observations
Mixed Spectra for Stable Signals from Discrete ObservationsMixed Spectra for Stable Signals from Discrete Observations
Mixed Spectra for Stable Signals from Discrete Observations
 
Circular Convolution
Circular ConvolutionCircular Convolution
Circular Convolution
 
Convolution and FFT
Convolution and FFTConvolution and FFT
Convolution and FFT
 
21 4 ztransform
21 4 ztransform21 4 ztransform
21 4 ztransform
 
Operations Research - The Two Phase Method
Operations Research - The Two Phase MethodOperations Research - The Two Phase Method
Operations Research - The Two Phase Method
 
Newton’s Divided Difference Formula
Newton’s Divided Difference FormulaNewton’s Divided Difference Formula
Newton’s Divided Difference Formula
 
Numerical Methods
Numerical MethodsNumerical Methods
Numerical Methods
 
Computer vision 3 4
Computer vision 3 4Computer vision 3 4
Computer vision 3 4
 
Lecture 3: Stochastic Hydrology
Lecture 3: Stochastic HydrologyLecture 3: Stochastic Hydrology
Lecture 3: Stochastic Hydrology
 
Unit 3
Unit 3Unit 3
Unit 3
 
Operation research - the revised simplex method
Operation research - the revised simplex methodOperation research - the revised simplex method
Operation research - the revised simplex method
 
2012 mdsp pr06  hmm
2012 mdsp pr06  hmm2012 mdsp pr06  hmm
2012 mdsp pr06  hmm
 
Operations research 1_the_two-phase_simp
Operations research 1_the_two-phase_simpOperations research 1_the_two-phase_simp
Operations research 1_the_two-phase_simp
 
Newton divided difference interpolation
Newton divided difference interpolationNewton divided difference interpolation
Newton divided difference interpolation
 

Similar to Section4 stochastic

Integration techniques
Integration techniquesIntegration techniques
Integration techniques
Krishna Gali
 

Similar to Section4 stochastic (20)

Doubly Accelerated Stochastic Variance Reduced Gradient Methods for Regulariz...
Doubly Accelerated Stochastic Variance Reduced Gradient Methods for Regulariz...Doubly Accelerated Stochastic Variance Reduced Gradient Methods for Regulariz...
Doubly Accelerated Stochastic Variance Reduced Gradient Methods for Regulariz...
 
The Multivariate Gaussian Probability Distribution
The Multivariate Gaussian Probability DistributionThe Multivariate Gaussian Probability Distribution
The Multivariate Gaussian Probability Distribution
 
Integration techniques
Integration techniquesIntegration techniques
Integration techniques
 
Optimal multi-configuration approximation of an N-fermion wave function
 Optimal multi-configuration approximation of an N-fermion wave function Optimal multi-configuration approximation of an N-fermion wave function
Optimal multi-configuration approximation of an N-fermion wave function
 
Introduction to Diffusion Monte Carlo
Introduction to Diffusion Monte CarloIntroduction to Diffusion Monte Carlo
Introduction to Diffusion Monte Carlo
 
Dsp3
Dsp3Dsp3
Dsp3
 
Numerical solution of the Schr¨odinger equation
Numerical solution of the Schr¨odinger equationNumerical solution of the Schr¨odinger equation
Numerical solution of the Schr¨odinger equation
 
Z transform and Properties of Z Transform
Z transform and Properties of Z TransformZ transform and Properties of Z Transform
Z transform and Properties of Z Transform
 
lec z-transform.ppt
lec z-transform.pptlec z-transform.ppt
lec z-transform.ppt
 
Constant strain triangular
Constant strain triangular Constant strain triangular
Constant strain triangular
 
Applications of Differential Calculus in real life
Applications of Differential Calculus in real life Applications of Differential Calculus in real life
Applications of Differential Calculus in real life
 
Principal Component Analysis
Principal Component AnalysisPrincipal Component Analysis
Principal Component Analysis
 
Section3 stochastic
Section3 stochasticSection3 stochastic
Section3 stochastic
 
Journey to structure from motion
Journey to structure from motionJourney to structure from motion
Journey to structure from motion
 
Imc2016 day2-solutions
Imc2016 day2-solutionsImc2016 day2-solutions
Imc2016 day2-solutions
 
Talk at SciCADE2013 about "Accelerated Multiple Precision ODE solver base on ...
Talk at SciCADE2013 about "Accelerated Multiple Precision ODE solver base on ...Talk at SciCADE2013 about "Accelerated Multiple Precision ODE solver base on ...
Talk at SciCADE2013 about "Accelerated Multiple Precision ODE solver base on ...
 
Random Matrix Theory and Machine Learning - Part 3
Random Matrix Theory and Machine Learning - Part 3Random Matrix Theory and Machine Learning - Part 3
Random Matrix Theory and Machine Learning - Part 3
 
Manual solucoes ex_extras
Manual solucoes ex_extrasManual solucoes ex_extras
Manual solucoes ex_extras
 
Manual solucoes ex_extras
Manual solucoes ex_extrasManual solucoes ex_extras
Manual solucoes ex_extras
 
Manual solucoes ex_extras
Manual solucoes ex_extrasManual solucoes ex_extras
Manual solucoes ex_extras
 

More from cairo university

More from cairo university (20)

Tocci chapter 13 applications of programmable logic devices extended
Tocci chapter 13 applications of programmable logic devices extendedTocci chapter 13 applications of programmable logic devices extended
Tocci chapter 13 applications of programmable logic devices extended
 
Tocci chapter 12 memory devices
Tocci chapter 12 memory devicesTocci chapter 12 memory devices
Tocci chapter 12 memory devices
 
Tocci ch 9 msi logic circuits
Tocci ch 9 msi logic circuitsTocci ch 9 msi logic circuits
Tocci ch 9 msi logic circuits
 
Tocci ch 7 counters and registers modified x
Tocci ch 7 counters and registers modified xTocci ch 7 counters and registers modified x
Tocci ch 7 counters and registers modified x
 
Tocci ch 6 digital arithmetic operations and circuits
Tocci ch 6 digital arithmetic operations and circuitsTocci ch 6 digital arithmetic operations and circuits
Tocci ch 6 digital arithmetic operations and circuits
 
Tocci ch 3 5 boolean algebra, logic gates, combinational circuits, f fs, - re...
Tocci ch 3 5 boolean algebra, logic gates, combinational circuits, f fs, - re...Tocci ch 3 5 boolean algebra, logic gates, combinational circuits, f fs, - re...
Tocci ch 3 5 boolean algebra, logic gates, combinational circuits, f fs, - re...
 
A15 sedra ch 15 memory circuits
A15  sedra ch 15 memory circuitsA15  sedra ch 15 memory circuits
A15 sedra ch 15 memory circuits
 
A14 sedra ch 14 advanced mos and bipolar logic circuits
A14  sedra ch 14 advanced mos and bipolar logic circuitsA14  sedra ch 14 advanced mos and bipolar logic circuits
A14 sedra ch 14 advanced mos and bipolar logic circuits
 
A13 sedra ch 13 cmos digital logic circuits
A13  sedra ch 13 cmos digital logic circuitsA13  sedra ch 13 cmos digital logic circuits
A13 sedra ch 13 cmos digital logic circuits
 
A09 sedra ch 9 frequency response
A09  sedra ch 9 frequency responseA09  sedra ch 9 frequency response
A09 sedra ch 9 frequency response
 
5 sedra ch 05 mosfet.ppsx
5  sedra ch 05  mosfet.ppsx5  sedra ch 05  mosfet.ppsx
5 sedra ch 05 mosfet.ppsx
 
5 sedra ch 05 mosfet
5  sedra ch 05  mosfet5  sedra ch 05  mosfet
5 sedra ch 05 mosfet
 
5 sedra ch 05 mosfet revision
5  sedra ch 05  mosfet revision5  sedra ch 05  mosfet revision
5 sedra ch 05 mosfet revision
 
Fields Lec 2
Fields Lec 2Fields Lec 2
Fields Lec 2
 
Fields Lec 1
Fields Lec 1Fields Lec 1
Fields Lec 1
 
Fields Lec 5&6
Fields Lec 5&6Fields Lec 5&6
Fields Lec 5&6
 
Fields Lec 4
Fields Lec 4Fields Lec 4
Fields Lec 4
 
Fields Lec 3
Fields Lec 3Fields Lec 3
Fields Lec 3
 
Lecture 2 (system overview of c8051 f020) rv01
Lecture 2 (system overview of c8051 f020) rv01Lecture 2 (system overview of c8051 f020) rv01
Lecture 2 (system overview of c8051 f020) rv01
 
Lecture 1 (course overview and 8051 architecture) rv01
Lecture 1 (course overview and 8051 architecture) rv01Lecture 1 (course overview and 8051 architecture) rv01
Lecture 1 (course overview and 8051 architecture) rv01
 

Recently uploaded

+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
Health
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
jaanualu31
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 

Recently uploaded (20)

Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086
 
Bridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptxBridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptx
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 

Section4 stochastic

  • 1. Stochastic Section # 4 Random Signals & Random Signal Models Eslam Adel March 21, 2018 1 Random Signals 1. Random signal is a sequence of random variables [x1, x2, x3, . . . , xN ]. 2. Mean of the random signal E[x] can be approximated as E[x] = 1 N N−1 i=0 xi (1) 3. Sample Autocorrelation Rxnxn+k is defined as: Rxnxn+k = 1 N N−1−k i=0 xi+kxi k = 0, 1, 2, . . . N (2) 4. We always assume that the signal is zero mean. If the signal is not zero mean, subtract the mean from it. x → x − E[x] Note: for zero mean signal Rxx = σ2 5. For random signal it is assumed that it is a wide sense stationary signal (WSS) Where : 1. E[x] = constant 2. Rxn+kxn = E[xn+kxn] = Rxx(k) (not a function of time variable n) 6. Stationarity means that for different windows of the same signal, statistical parameters are almost the same. 7. For WSS signal Rxx(k) = Rxx(−k) 1.1 Example Assume signal x[n] = [1, 2, 3, 4, 5] Evaluate the following: 1. Rxx(0) 2. Rxx(−1) 3. Rxx(1) Solution : At first make sure that signal is zero mean m = 3 so x[n] will be x[n] = [−2, −1, 0, 1, 2] 1
  • 2. 1. Rxx(0) Rxx(0) = 1 5 [−2, −1, 0, 2, 1] × [−2, −1, 0, 1, 2] = 10 5 = 2 2. Rxx(1) Rxx(1) = 1 5 [−2, −1, 0, 2, 1] × [0, −2, −1, 0, 1] = 4 5 3. Rxx(−1) Rxx(−1) = 1 5 [−2, −1, 0, 2, 1] × [−1, 0, 1, 2, 0] = 4 5 Note: For WSS signal Rxx(k) = Rxx(−k) 1.2 Problem 1.25 A random signal x(n) is defined as a linear function of time by x(n) = an + b (3) where a and b are independent zero-mean gaussian random variables of variances σ2 a and σ2 b , respectively. 1. Compute E[x(n)]2 . 2. Is x(n) a stationary process? Explain. 3. For each fixed n, compute the probability density p(x(n)) Solution : 1. E[x(n)]2 E[x(n)2 ] = E[(an + b)2 ] = E[a2 n2 + 2anb + b2 ] E[x(n)2 ] = n2 E[a2 ] + E[b2 ] + 2nE[ab] E[a2 ] = σ2 a − 0 = σ2 a,E[b2 ] = σ2 b and E[ab] = E[a]E[b] = 0: E[x(n)2 ] = n2 σ2 a + σ2 b 2. To check a signal is WSS or not 1. E[x] = 0 = const So we have to check the correlation 2. Rxx Rxn+kxn = E[xn+kxn] = E[(a(n + k) + b)(an + b)] = n(n + k)E[a2 ] + E[b2 ] Rxn+kxn = n(n + k)σ2 a + σ2 b Rxx(k) is a function in time variable So x(n) is not WSS 3. p(x(n)) x(n) = an + b where a ∼ N(0, σ2 a) and b ∼ N(0, σ2 b ) So x ∼ N(0, σ2 x) and σ2 x = E[x2 ] − m2 x = n2 σ2 a + σ2 b p(x(n)) = 1√ 2πσx e −x2 2σ2 x 2
  • 3. 2 Random Signal Models The idea is that I don’t need to store the whole signal. I can model it and store only model parameters. Then I can genrate my signal again using random signal generator and stored model. see figure 1 Applications : 1. Signal synthesis : for example speech synthesis. 2. Classification : Model parameters are considered as feature vector that used in classification process of different signals. 3. Data Compression For data transmission, no bandwidth for transmission of all data. Only model parameters are transmitted and signal will be recovered from model at the reciever. Figure 1: General Block Diagram for signal modeling 2.1 Moving Average Model (MA) X(Z) = C(Z) (Z) Where (Z) is uncorrelated white gaussian noise (WGN) In time domain x(n) = N−1 i=0 cn−i i 2.2 Auto Regressive Model (AR) X(Z) = b0 A(Z) (Z) In time domain N−1 i=0 an−ixi = b0 (n) 2.3 Auto Regressive Moving Average Model (ARMA) X(Z) = B(Z) A(Z) (Z) In time domain N−1 i=0 an−ixi = N−1 i=0 bn−i i 3
  • 4. 2.4 Problem 1.30 A random signal yn is generated by sending unit-variance zero-mean white noise n through the filters defined by the following difference equations: 1. yn = −0.9yn−1 + n 2. yn = 0.9yn−1 + n + n−1 3. yn = n + 2 n−1 + n−2 4. yn = −0.81yn−2 + n 5. yn = 0.1yn−1 + 0.72yn−2 + n − 2 n−1 + n−2 a) For each case, determine the transfer function of the filter, decide whether the model is ARMA, MA, or AR. b) Write explicitly the power spectrum Syy(w) Solution: 1. Taking Z transform for both sides Y (Z) = −0.9Y (Z)Z−1 + (Z) (1 + 0.9Z−1 )Y (Z) = (Z) Y (Z) = 1 1+0.9Z−1 (Z) So the transfer function is 1 1+0.9Z−1 Model type is AR. Power Spectrum Syy(w) = 1 1+0.9e−jw 2 2. Taking Z transform for both sides Y (Z) = 0.9Y (Z)Z−1 + (Z) + (Z)Z−1 (1 − 0.9Z−1 )Y (Z) = (1 + Z−1 ) (Z) Y (Z) = 1+Z−1 1−0.9Z−1 (Z) So the transfer function is 1+Z−1 1−0.9Z−1 Model type is ARMA. Power Spectrum Syy(w) = 1+e−jw 1−0.9e−jw 2 3. Taking Z transform for both sides Y (Z) = (Z) + 2 (Z)Z−1 + (Z)Z−2 Y (Z) = (1 + 2Z−1 + Z−2 ) (Z) So the transfer function is 1 + 2Z−1 + Z−2 Model type is MA. Power Spectrum Syy(w) = 1 + 2e−jw + e−2jw 2 4. Solve as above 5. Solve as above 4
  • 5. Figure 2: Linear Estimation of signal 3 Linear Estimation of Signal What’s beyond building signal model? We have to determine model parameters. But How to select them ?. There is different ways to determine model parameters. Different methods are proposed. We will have two of them. So the case now is that we have a signal x that is changed due to noise to be another signal y. We applied our model on y to estimate x so we got ˜x. see figure 2 3.1 Maximum Likelihood Method (ML) The idea is to maximize the joint probability function of all random variables f(x1, x2, . . . , xN ) Applying this on first order autoregressive model AR(1) X(Z) = 1 1−aZ−1 (Z) model parameters are a and σ2 Solution will be : a = N−1 n=1 xnxn−1 N−1 n=1 x2 n−1 σ2 = 1 N N−1 n=1 (x(n) − ax(n − 1)) 3.2 Mean Square Error Method (MS) Error is defined as : e = x − ˜x So the mean square error will be E[(x − ˜x)2 ] to minimize the error differentiation of MSe with respect to model parameters must be zero. Lets see an example: 3.2.1 Example 1 Assume ˜x = ay Determine value of a that minimize the mean square error. Solution: MSe = E[e2 ] = E[(x − ˜x)2 ] = E[(x − ay)2 ] ∂MSe ∂a = 0 E[2(x − ay) × −y] = 0 −E[xy] + aE[y2 ] = 0 a = E[xy] E[y2] a = Rxy(0) Ryy(0) 5
  • 6. 3.2.2 Example 2 Given ˜x = ay(n) + by(n − 1) Determine values of a and b to minimize the mean square error. Solution: MSe = E[e2 ] = E[(x − ˜x)2 ] = E[(x − ayn − byn−1)2 ] ∂MSe ∂a = 0 E[2(x − ayn − byn−1) × −yn] = 0 −E[xy] + aE[y2 ] + bE[yn−1yn] = 0 aRyy(0) + bRyy(1) = Rxy(0) (4) Similarly for b ∂MSe ∂b = 0 E[2(x − ayn − byn−1) × −yn−1] = 0 −E[xyn−1] + aE[y2 ny2 n−1] + bE[y2 n−1] = 0 aRyy(1) + bRyy(0) = Rxy(1) (5) We can put it in matrix form Ryy(0) Ryy(1) Ryy(1) Ryy(0) a b = Rxy(0) Rxy(1) (6) Finally a b = Ryy(0) Ryy(1) Ryy(1) Ryy(0) −1 Rxy(0) Rxy(1) (7) 6