SlideShare a Scribd company logo
Stochastic Section # 5
Revision Section
Eslam Adel
March 21, 2018
1 Single Random Variable
1.1 Probability density function PDF
It is defined as
f(x) = P(X = x) (1)
Properties
x
f(x)dx = 1 (2)
or for discrete random variables
x
f(x) = 1 (3)
1.2 Cumulative distribution function (CDF)
CDF is defined as
F(x) = P(X < x) (4)
Properties
(i) CDF is always continuous for discrete and continous RV.
(ii) CDF is increasing function
(iii) Maximum Value of CDF is 1
Example :
Let F(x) =
cx x = 1, 2, 3, 4, 5
0 otherwise
So 5c = 1 and c = 1
5
1.3 Expected Value
E[X] =
x
Xf(x)dx (5)
Notes
1. E[X] is a linear operator → E[aX + b] = aE[X] + b
2. E[const] = const
1.4 Variance
V ar[X] = E[(X − m)2
] = E[X2
] − (E[X])2
= E[X2
] − m2
(6)
1
1.5 Common Distributions
1.5.1 Normal(Gaussian) Distribution
1.5.2 Uniform Distribution
1.5.3 Exponential Distribution
1.5.4 Rayleigh Distribution
2 Bi-variate Random Variables
2.1 Joint Probability
∞
−∞
∞
−∞
f(x, y)dxdy = 1 (7)
2.2 Marginal probability
fx(x) =
∞
−∞
fx,y(x, y)dy (8)
fy(y) =
∞
−∞
fx,y(x, y)dx (9)
2.3 Conditional probability
fx|y(x|y) =
fx,y(x, y)
fy(y)
(10)
fy|x(y|x) =
fx,y(x, y)
fx(x)
(11)
2.4 Bi-Variate Normal Distribution
f(x, y) =
1
2πσxσy 1 + ρ2
e
−1
2(1−ρ2)
[ x2
σ2
x
−2ρ xy
σxσy
+ y2
σ2
y
]
(12)
ρ is the correlation coefficient
ρ =
Cov(x, y)
σxσy
=
E[(x − mx)(y − my)]
σxσy
(13)
3 Multi-variate Random Variable
Multi-variate random variable or random vector X has N random variables
X =





X1
X2
...
XN





Note:
Each random variable X1 → XN is a random variable (has multiple observations).
3.1 Mean Vector
For random vector X mean vector m = E[X]
E[X] = E





X1
X2
...
XN





=





E[X1]
E[X2]
...
E[XN ]





2
3.2 Correlation Matrix
R = E[XXT
] = E





X2
1 X1X2 . . . X1XN
X1X2 X2
2 . . . X2XN
...
...
...
...
X1XN . . . . . . X2
N





(14)
3.3 Covariance Matrix
= E[(X − m)(X − m)T
] (15)
= E





(X1 − m1)2
(X1 − m1)(X2 − m2) . . . (X1 − m1)(XN − mN )
(X1 − m1)(X2 − m2) (X2 − m2)2
. . . . . .
...
...
...
...
(X1 − m1)(XN − mN ) . . . . . . (XN − mN )2





(16)
Relation Between and R
= R − mmT
(17)
3.4 Gaussian Random Vector
For a gaussian random vector X with dimension N the probability density function is
f(X) =
1
(2π)
N
2 (det( ))
1
2
e
−1
2 ((X−m)T −1
(X−m))
(18)
where det( ) is the determinant of covariance matrix,
−1
is the inverse of covariance matrix, and m is the
mean vector.
It is conventionally presented as X ∼ N(m, ) where m is mean vector and is the covariance matrix.
4 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 (19)
3. Sample Autocorrelation Rxnxn+k
is defined as:
Rxnxn+k
=
1
N
N−1−k
i=0
xi+kxi k = 0, 1, 2, . . . N (20)
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)
3
5 Random Signal Models
5.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
5.2 Auto Regressive Model (AR)
X(Z) = b0
A(Z) (Z)
In time domain
N−1
i=0 an−ixi = b0 (n)
5.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
6 Linear Estimation
6.1 Maximum Likelihood Method (ML)
Maximize the joint probability function of all random variables f(x1, x2, . . . , xN )
6.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.
6.2.1 Lecture Example
˜x = hy + g (21)
Solution:
MSe = E[e2
] = E[(x − ˜x)2
] = E[(x − hy − g)2
]
∂MSe
∂h = 0
E[2(x − hy − g) × −y] = 0
−E[xy] + hE[y2
] + gE[y] = 0
hRyy(0) + gE[y] = Rxy(0) (22)
Similarly for g
4
∂MSe
∂g = 0
E[2(x − hy − g) × −1] = 0
−E[x] + hE[y] + g = 0
hE[y] + g = E[x] (23)
We can put it in matrix form
1 E[y]
E[y] Ryy(0)
g
h
=
E[x]
Rxy(0)
(24)
Finally
g
h
=
1 my
my Ryy(0)
−1
mx
Rxy(0)
(25)
Ryy(0) = σ2
y + m2
y and Rxy(0) = ρσxσy + mxmy
Values of g and h are
g = mx(σ2
y + m2
y) − myρσxσy − mxm2
y
h = ρσx
σy
For Given Signals x = [−2, −1, 0, 1, 2] and y = [−5, −3, 0, 3, 5]
g = 0 and h = 0.38
we can get the estimate ˜x = [−1.91, −1.14, 0, 1.14, 1.91] and mean square error will be 0.011
5

More Related Content

What's hot

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
Mohamed Ramadan
 
Gaussian quadratures
Gaussian quadraturesGaussian quadratures
Gaussian quadratures
Tarun Gehlot
 
Newton's forward & backward interpolation
Newton's forward & backward interpolationNewton's forward & backward interpolation
Newton's forward & backward interpolation
Harshad Koshti
 
Newton's Forward/Backward Difference Interpolation
Newton's Forward/Backward  Difference InterpolationNewton's Forward/Backward  Difference Interpolation
Newton's Forward/Backward Difference Interpolation
VARUN KUMAR
 
Newton divided difference interpolation
Newton divided difference interpolationNewton divided difference interpolation
Newton divided difference interpolation
VISHAL DONGA
 
Finite elements : basis functions
Finite elements : basis functionsFinite elements : basis functions
Finite elements : basis functions
Tarun Gehlot
 
線形回帰モデル
線形回帰モデル線形回帰モデル
線形回帰モデル
貴之 八木
 
Ece3075 a 8
Ece3075 a 8Ece3075 a 8
Ece3075 a 8
Aiman Malik
 
Newton Forward Difference Interpolation Method
Newton Forward Difference Interpolation MethodNewton Forward Difference Interpolation Method
Newton Forward Difference Interpolation Method
Adeel Rasheed
 
Newton’s Forward & backward interpolation
Newton’s Forward &  backward interpolation Newton’s Forward &  backward interpolation
Newton’s Forward & backward interpolation
Meet Patel
 
勾配法
勾配法勾配法
勾配法
貴之 八木
 
On approximate bounds of zeros of polynomials within
On approximate bounds of zeros of polynomials withinOn approximate bounds of zeros of polynomials within
On approximate bounds of zeros of polynomials within
eSAT Publishing House
 
Newton’s Divided Difference Formula
Newton’s Divided Difference FormulaNewton’s Divided Difference Formula
Newton’s Divided Difference Formula
Jas Singh Bhasin
 
Integration
IntegrationIntegration
Integration
lecturer
 
Newton's forward difference
Newton's forward differenceNewton's forward difference
Newton's forward difference
Raj Parekh
 
A note on variational inference for the univariate Gaussian
A note on variational inference for the univariate GaussianA note on variational inference for the univariate Gaussian
A note on variational inference for the univariate Gaussian
Tomonari Masada
 
Local linear approximation
Local linear approximationLocal linear approximation
Local linear approximation
Tarun Gehlot
 
AP Calculus Project
AP Calculus ProjectAP Calculus Project
AP Calculus Project
kaitlinbianchi
 
Crisp Realation
Crisp RealationCrisp Realation
Crisp Realation
VijayaLakshmi506
 
Rules of integration
Rules of integrationRules of integration
Rules of integration
klawdet
 

What's hot (20)

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
 
Gaussian quadratures
Gaussian quadraturesGaussian quadratures
Gaussian quadratures
 
Newton's forward & backward interpolation
Newton's forward & backward interpolationNewton's forward & backward interpolation
Newton's forward & backward interpolation
 
Newton's Forward/Backward Difference Interpolation
Newton's Forward/Backward  Difference InterpolationNewton's Forward/Backward  Difference Interpolation
Newton's Forward/Backward Difference Interpolation
 
Newton divided difference interpolation
Newton divided difference interpolationNewton divided difference interpolation
Newton divided difference interpolation
 
Finite elements : basis functions
Finite elements : basis functionsFinite elements : basis functions
Finite elements : basis functions
 
線形回帰モデル
線形回帰モデル線形回帰モデル
線形回帰モデル
 
Ece3075 a 8
Ece3075 a 8Ece3075 a 8
Ece3075 a 8
 
Newton Forward Difference Interpolation Method
Newton Forward Difference Interpolation MethodNewton Forward Difference Interpolation Method
Newton Forward Difference Interpolation Method
 
Newton’s Forward & backward interpolation
Newton’s Forward &  backward interpolation Newton’s Forward &  backward interpolation
Newton’s Forward & backward interpolation
 
勾配法
勾配法勾配法
勾配法
 
On approximate bounds of zeros of polynomials within
On approximate bounds of zeros of polynomials withinOn approximate bounds of zeros of polynomials within
On approximate bounds of zeros of polynomials within
 
Newton’s Divided Difference Formula
Newton’s Divided Difference FormulaNewton’s Divided Difference Formula
Newton’s Divided Difference Formula
 
Integration
IntegrationIntegration
Integration
 
Newton's forward difference
Newton's forward differenceNewton's forward difference
Newton's forward difference
 
A note on variational inference for the univariate Gaussian
A note on variational inference for the univariate GaussianA note on variational inference for the univariate Gaussian
A note on variational inference for the univariate Gaussian
 
Local linear approximation
Local linear approximationLocal linear approximation
Local linear approximation
 
AP Calculus Project
AP Calculus ProjectAP Calculus Project
AP Calculus Project
 
Crisp Realation
Crisp RealationCrisp Realation
Crisp Realation
 
Rules of integration
Rules of integrationRules of integration
Rules of integration
 

Similar to Section5 stochastic

The Multivariate Gaussian Probability Distribution
The Multivariate Gaussian Probability DistributionThe Multivariate Gaussian Probability Distribution
The Multivariate Gaussian Probability Distribution
Pedro222284
 
Quantitative Techniques random variables
Quantitative Techniques random variablesQuantitative Techniques random variables
Quantitative Techniques random variables
Rohan Bhatkar
 
AlgoPerm2012 - 03 Olivier Hudry
AlgoPerm2012 - 03 Olivier HudryAlgoPerm2012 - 03 Olivier Hudry
AlgoPerm2012 - 03 Olivier Hudry
AlgoPerm 2012
 
Bahan ajar kalkulus integral
Bahan ajar kalkulus integralBahan ajar kalkulus integral
Bahan ajar kalkulus integral
grand_livina_good
 
1 - Linear Regression
1 - Linear Regression1 - Linear Regression
1 - Linear Regression
Nikita Zhiltsov
 
k-MLE: A fast algorithm for learning statistical mixture models
k-MLE: A fast algorithm for learning statistical mixture modelsk-MLE: A fast algorithm for learning statistical mixture models
k-MLE: A fast algorithm for learning statistical mixture models
Frank Nielsen
 
2.1 Calculus 2.formulas.pdf.pdf
2.1 Calculus 2.formulas.pdf.pdf2.1 Calculus 2.formulas.pdf.pdf
2.1 Calculus 2.formulas.pdf.pdf
NiccoloAaronMendozaA
 
On learning statistical mixtures maximizing the complete likelihood
On learning statistical mixtures maximizing the complete likelihoodOn learning statistical mixtures maximizing the complete likelihood
On learning statistical mixtures maximizing the complete likelihood
Frank Nielsen
 
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
jiang-min zhang
 
Density theorems for anisotropic point configurations
Density theorems for anisotropic point configurationsDensity theorems for anisotropic point configurations
Density theorems for anisotropic point configurations
VjekoslavKovac1
 
A series of maximum entropy upper bounds of the differential entropy
A series of maximum entropy upper bounds of the differential entropyA series of maximum entropy upper bounds of the differential entropy
A series of maximum entropy upper bounds of the differential entropy
Frank Nielsen
 
ma112011id535
ma112011id535ma112011id535
ma112011id535
matsushimalab
 
Lec 4-slides
Lec 4-slidesLec 4-slides
Lec 4-slides
Atner Yegorov
 
ISI MSQE Entrance Question Paper (2008)
ISI MSQE Entrance Question Paper (2008)ISI MSQE Entrance Question Paper (2008)
ISI MSQE Entrance Question Paper (2008)
CrackDSE
 
Randomized algorithms ver 1.0
Randomized algorithms ver 1.0Randomized algorithms ver 1.0
Randomized algorithms ver 1.0
Dr. C.V. Suresh Babu
 
Statistical Method In Economics
Statistical Method In EconomicsStatistical Method In Economics
Statistical Method In Economics
Economics Homework Helper
 
Multilinear Twisted Paraproducts
Multilinear Twisted ParaproductsMultilinear Twisted Paraproducts
Multilinear Twisted Paraproducts
VjekoslavKovac1
 
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
Amro Elfeki
 
Chapter 3 – Random Variables and Probability Distributions
Chapter 3 – Random Variables and Probability DistributionsChapter 3 – Random Variables and Probability Distributions
Chapter 3 – Random Variables and Probability Distributions
JasonTagapanGulla
 
Approximate Integration
Approximate IntegrationApproximate Integration
Approximate Integration
Silvius
 

Similar to Section5 stochastic (20)

The Multivariate Gaussian Probability Distribution
The Multivariate Gaussian Probability DistributionThe Multivariate Gaussian Probability Distribution
The Multivariate Gaussian Probability Distribution
 
Quantitative Techniques random variables
Quantitative Techniques random variablesQuantitative Techniques random variables
Quantitative Techniques random variables
 
AlgoPerm2012 - 03 Olivier Hudry
AlgoPerm2012 - 03 Olivier HudryAlgoPerm2012 - 03 Olivier Hudry
AlgoPerm2012 - 03 Olivier Hudry
 
Bahan ajar kalkulus integral
Bahan ajar kalkulus integralBahan ajar kalkulus integral
Bahan ajar kalkulus integral
 
1 - Linear Regression
1 - Linear Regression1 - Linear Regression
1 - Linear Regression
 
k-MLE: A fast algorithm for learning statistical mixture models
k-MLE: A fast algorithm for learning statistical mixture modelsk-MLE: A fast algorithm for learning statistical mixture models
k-MLE: A fast algorithm for learning statistical mixture models
 
2.1 Calculus 2.formulas.pdf.pdf
2.1 Calculus 2.formulas.pdf.pdf2.1 Calculus 2.formulas.pdf.pdf
2.1 Calculus 2.formulas.pdf.pdf
 
On learning statistical mixtures maximizing the complete likelihood
On learning statistical mixtures maximizing the complete likelihoodOn learning statistical mixtures maximizing the complete likelihood
On learning statistical mixtures maximizing the complete likelihood
 
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
 
Density theorems for anisotropic point configurations
Density theorems for anisotropic point configurationsDensity theorems for anisotropic point configurations
Density theorems for anisotropic point configurations
 
A series of maximum entropy upper bounds of the differential entropy
A series of maximum entropy upper bounds of the differential entropyA series of maximum entropy upper bounds of the differential entropy
A series of maximum entropy upper bounds of the differential entropy
 
ma112011id535
ma112011id535ma112011id535
ma112011id535
 
Lec 4-slides
Lec 4-slidesLec 4-slides
Lec 4-slides
 
ISI MSQE Entrance Question Paper (2008)
ISI MSQE Entrance Question Paper (2008)ISI MSQE Entrance Question Paper (2008)
ISI MSQE Entrance Question Paper (2008)
 
Randomized algorithms ver 1.0
Randomized algorithms ver 1.0Randomized algorithms ver 1.0
Randomized algorithms ver 1.0
 
Statistical Method In Economics
Statistical Method In EconomicsStatistical Method In Economics
Statistical Method In Economics
 
Multilinear Twisted Paraproducts
Multilinear Twisted ParaproductsMultilinear Twisted Paraproducts
Multilinear Twisted Paraproducts
 
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
 
Chapter 3 – Random Variables and Probability Distributions
Chapter 3 – Random Variables and Probability DistributionsChapter 3 – Random Variables and Probability Distributions
Chapter 3 – Random Variables and Probability Distributions
 
Approximate Integration
Approximate IntegrationApproximate Integration
Approximate Integration
 

More from cairo university

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
cairo university
 
Tocci chapter 12 memory devices
Tocci chapter 12 memory devicesTocci chapter 12 memory devices
Tocci chapter 12 memory devices
cairo university
 
Tocci ch 9 msi logic circuits
Tocci ch 9 msi logic circuitsTocci ch 9 msi logic circuits
Tocci ch 9 msi logic circuits
cairo university
 
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
cairo university
 
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
cairo university
 
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...
cairo university
 
A15 sedra ch 15 memory circuits
A15  sedra ch 15 memory circuitsA15  sedra ch 15 memory circuits
A15 sedra ch 15 memory circuits
cairo university
 
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
cairo university
 
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
cairo university
 
A09 sedra ch 9 frequency response
A09  sedra ch 9 frequency responseA09  sedra ch 9 frequency response
A09 sedra ch 9 frequency response
cairo university
 
5 sedra ch 05 mosfet.ppsx
5  sedra ch 05  mosfet.ppsx5  sedra ch 05  mosfet.ppsx
5 sedra ch 05 mosfet.ppsx
cairo university
 
5 sedra ch 05 mosfet
5  sedra ch 05  mosfet5  sedra ch 05  mosfet
5 sedra ch 05 mosfet
cairo university
 
5 sedra ch 05 mosfet revision
5  sedra ch 05  mosfet revision5  sedra ch 05  mosfet revision
5 sedra ch 05 mosfet revision
cairo university
 
Fields Lec 2
Fields Lec 2Fields Lec 2
Fields Lec 2
cairo university
 
Fields Lec 1
Fields Lec 1Fields Lec 1
Fields Lec 1
cairo university
 
Fields Lec 5&amp;6
Fields Lec 5&amp;6Fields Lec 5&amp;6
Fields Lec 5&amp;6
cairo university
 
Fields Lec 4
Fields Lec 4Fields Lec 4
Fields Lec 4
cairo university
 
Fields Lec 3
Fields Lec 3Fields Lec 3
Fields Lec 3
cairo university
 
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
cairo university
 
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
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&amp;6
Fields Lec 5&amp;6Fields Lec 5&amp;6
Fields Lec 5&amp;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

学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
171ticu
 
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.pptUnit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
KrishnaveniKrishnara1
 
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
ydzowc
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
IJECEIAES
 
Welding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdfWelding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdf
AjmalKhan50578
 
Introduction to AI Safety (public presentation).pptx
Introduction to AI Safety (public presentation).pptxIntroduction to AI Safety (public presentation).pptx
Introduction to AI Safety (public presentation).pptx
MiscAnnoy1
 
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
ecqow
 
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURSCompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
RamonNovais6
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
gerogepatton
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
Hitesh Mohapatra
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
co23btech11018
 
Certificates - Mahmoud Mohamed Moursi Ahmed
Certificates - Mahmoud Mohamed Moursi AhmedCertificates - Mahmoud Mohamed Moursi Ahmed
Certificates - Mahmoud Mohamed Moursi Ahmed
Mahmoud Morsy
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Sinan KOZAK
 
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
shadow0702a
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
MDSABBIROJJAMANPAYEL
 
Mechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdfMechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdf
21UME003TUSHARDEB
 
Software Quality Assurance-se412-v11.ppt
Software Quality Assurance-se412-v11.pptSoftware Quality Assurance-se412-v11.ppt
Software Quality Assurance-se412-v11.ppt
TaghreedAltamimi
 
The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.
sachin chaurasia
 
Material for memory and display system h
Material for memory and display system hMaterial for memory and display system h
Material for memory and display system h
gowrishankartb2005
 
BRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdfBRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdf
LAXMAREDDY22
 

Recently uploaded (20)

学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
 
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.pptUnit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
 
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
 
Welding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdfWelding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdf
 
Introduction to AI Safety (public presentation).pptx
Introduction to AI Safety (public presentation).pptxIntroduction to AI Safety (public presentation).pptx
Introduction to AI Safety (public presentation).pptx
 
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
 
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURSCompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
 
Certificates - Mahmoud Mohamed Moursi Ahmed
Certificates - Mahmoud Mohamed Moursi AhmedCertificates - Mahmoud Mohamed Moursi Ahmed
Certificates - Mahmoud Mohamed Moursi Ahmed
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
 
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
 
Mechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdfMechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdf
 
Software Quality Assurance-se412-v11.ppt
Software Quality Assurance-se412-v11.pptSoftware Quality Assurance-se412-v11.ppt
Software Quality Assurance-se412-v11.ppt
 
The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.
 
Material for memory and display system h
Material for memory and display system hMaterial for memory and display system h
Material for memory and display system h
 
BRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdfBRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdf
 

Section5 stochastic

  • 1. Stochastic Section # 5 Revision Section Eslam Adel March 21, 2018 1 Single Random Variable 1.1 Probability density function PDF It is defined as f(x) = P(X = x) (1) Properties x f(x)dx = 1 (2) or for discrete random variables x f(x) = 1 (3) 1.2 Cumulative distribution function (CDF) CDF is defined as F(x) = P(X < x) (4) Properties (i) CDF is always continuous for discrete and continous RV. (ii) CDF is increasing function (iii) Maximum Value of CDF is 1 Example : Let F(x) = cx x = 1, 2, 3, 4, 5 0 otherwise So 5c = 1 and c = 1 5 1.3 Expected Value E[X] = x Xf(x)dx (5) Notes 1. E[X] is a linear operator → E[aX + b] = aE[X] + b 2. E[const] = const 1.4 Variance V ar[X] = E[(X − m)2 ] = E[X2 ] − (E[X])2 = E[X2 ] − m2 (6) 1
  • 2. 1.5 Common Distributions 1.5.1 Normal(Gaussian) Distribution 1.5.2 Uniform Distribution 1.5.3 Exponential Distribution 1.5.4 Rayleigh Distribution 2 Bi-variate Random Variables 2.1 Joint Probability ∞ −∞ ∞ −∞ f(x, y)dxdy = 1 (7) 2.2 Marginal probability fx(x) = ∞ −∞ fx,y(x, y)dy (8) fy(y) = ∞ −∞ fx,y(x, y)dx (9) 2.3 Conditional probability fx|y(x|y) = fx,y(x, y) fy(y) (10) fy|x(y|x) = fx,y(x, y) fx(x) (11) 2.4 Bi-Variate Normal Distribution f(x, y) = 1 2πσxσy 1 + ρ2 e −1 2(1−ρ2) [ x2 σ2 x −2ρ xy σxσy + y2 σ2 y ] (12) ρ is the correlation coefficient ρ = Cov(x, y) σxσy = E[(x − mx)(y − my)] σxσy (13) 3 Multi-variate Random Variable Multi-variate random variable or random vector X has N random variables X =      X1 X2 ... XN      Note: Each random variable X1 → XN is a random variable (has multiple observations). 3.1 Mean Vector For random vector X mean vector m = E[X] E[X] = E      X1 X2 ... XN      =      E[X1] E[X2] ... E[XN ]      2
  • 3. 3.2 Correlation Matrix R = E[XXT ] = E      X2 1 X1X2 . . . X1XN X1X2 X2 2 . . . X2XN ... ... ... ... X1XN . . . . . . X2 N      (14) 3.3 Covariance Matrix = E[(X − m)(X − m)T ] (15) = E      (X1 − m1)2 (X1 − m1)(X2 − m2) . . . (X1 − m1)(XN − mN ) (X1 − m1)(X2 − m2) (X2 − m2)2 . . . . . . ... ... ... ... (X1 − m1)(XN − mN ) . . . . . . (XN − mN )2      (16) Relation Between and R = R − mmT (17) 3.4 Gaussian Random Vector For a gaussian random vector X with dimension N the probability density function is f(X) = 1 (2π) N 2 (det( )) 1 2 e −1 2 ((X−m)T −1 (X−m)) (18) where det( ) is the determinant of covariance matrix, −1 is the inverse of covariance matrix, and m is the mean vector. It is conventionally presented as X ∼ N(m, ) where m is mean vector and is the covariance matrix. 4 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 (19) 3. Sample Autocorrelation Rxnxn+k is defined as: Rxnxn+k = 1 N N−1−k i=0 xi+kxi k = 0, 1, 2, . . . N (20) 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) 3
  • 4. 5 Random Signal Models 5.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 5.2 Auto Regressive Model (AR) X(Z) = b0 A(Z) (Z) In time domain N−1 i=0 an−ixi = b0 (n) 5.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 6 Linear Estimation 6.1 Maximum Likelihood Method (ML) Maximize the joint probability function of all random variables f(x1, x2, . . . , xN ) 6.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. 6.2.1 Lecture Example ˜x = hy + g (21) Solution: MSe = E[e2 ] = E[(x − ˜x)2 ] = E[(x − hy − g)2 ] ∂MSe ∂h = 0 E[2(x − hy − g) × −y] = 0 −E[xy] + hE[y2 ] + gE[y] = 0 hRyy(0) + gE[y] = Rxy(0) (22) Similarly for g 4
  • 5. ∂MSe ∂g = 0 E[2(x − hy − g) × −1] = 0 −E[x] + hE[y] + g = 0 hE[y] + g = E[x] (23) We can put it in matrix form 1 E[y] E[y] Ryy(0) g h = E[x] Rxy(0) (24) Finally g h = 1 my my Ryy(0) −1 mx Rxy(0) (25) Ryy(0) = σ2 y + m2 y and Rxy(0) = ρσxσy + mxmy Values of g and h are g = mx(σ2 y + m2 y) − myρσxσy − mxm2 y h = ρσx σy For Given Signals x = [−2, −1, 0, 1, 2] and y = [−5, −3, 0, 3, 5] g = 0 and h = 0.38 we can get the estimate ˜x = [−1.91, −1.14, 0, 1.14, 1.91] and mean square error will be 0.011 5