SlideShare a Scribd company logo
1 of 12
Download to read offline
EENGM0014 Mathematics for Signal Processing and
Communications
Tutorial 4
Soon Yau Cheong
University of Bristol
28 Oct 2016
Soon Yau Cheong (University of Bristol) EENGM0014 Mathematics for Signal Processing and Communications28 Oct 2016 1 / 12
Data Fitting
Estimate a, b, c, d, e, ...
Can be solved with 2 methods:
1 Pseudo inverse of
over-determined equations
2 Gradient descent
Soon Yau Cheong (University of Bristol) EENGM0014 Mathematics for Signal Processing and Communications28 Oct 2016 2 / 12
Overdetermined Equations
Assume y = a + bx + cx2
+ dx3
Say (x0, y0) corresponds to coordinates of first point and (xm, ym) for m-th
point. We form matrices by substituting (x,y) into polynomial equation:





1 x0 x2
0 x3
0
1 x1 x2
1 x3
1
...
...
...
...
1 xM−1 x2
M−1 x3
M−1









a
b
c
d



 =





y0
y1
...
yM−1





MX = Y
Soon Yau Cheong (University of Bristol) EENGM0014 Mathematics for Signal Processing and Communications28 Oct 2016 3 / 12
Solving over-determined equations
people.csail.mit.edu/bkph/articles/Pseudo Inverse.pdf
Soon Yau Cheong (University of Bristol) EENGM0014 Mathematics for Signal Processing and Communications28 Oct 2016 4 / 12
Apply pseudo inverse to our problem:
X = (MT
M)−1
MT
Y
or use Matlab function pinv
X = pinv(M) ∗ Y =




a
b
c
d




Soon Yau Cheong (University of Bristol) EENGM0014 Mathematics for Signal Processing and Communications28 Oct 2016 5 / 12
Soon Yau Cheong (University of Bristol) EENGM0014 Mathematics for Signal Processing and Communications28 Oct 2016 6 / 12
Gradient
First Order Partial Derivative
If y is function of X = {x1, x2, ..., xn} then
X (y) =
∂y
∂X
=








∂y
∂x1
∂y
∂x2
...
∂y
∂xn








where ∂y
∂x1
is partial derivative of y with respect to x1, with other variables
in X being held constant.
∂y
∂xi
= lim
h→∞
f (x1, ..., xi + h, ..., xn) − f (x1, ..., xi , ..., xn)
h
Soon Yau Cheong (University of Bristol) EENGM0014 Mathematics for Signal Processing and Communications28 Oct 2016 7 / 12
Hessian Matrix
Second Order Partial Derivative
H =













∂2y
∂x2
1
∂2y
∂x1∂x2
· · · ∂2y
∂x1∂xn
∂2y
∂x2∂x1
∂2y
∂x2
2
· · · ∂2y
∂x2∂xn
...
...
...
...
∂2y
∂xn∂x1
∂2y
∂xn∂x2
· · · ∂2y
∂x2
n













Soon Yau Cheong (University of Bristol) EENGM0014 Mathematics for Signal Processing and Communications28 Oct 2016 8 / 12
Minima
Soon Yau Cheong (University of Bristol) EENGM0014 Mathematics for Signal Processing and Communications28 Oct 2016 9 / 12
Surface Plot
x1=-2:0.1:2
x2=-2:0.1:2
X1,X2=meshgrid(x1,x2)
Z=X1.ˆ2+X2.ˆ2
surf(Z)
Soon Yau Cheong (University of Bristol) EENGM0014 Mathematics for Signal Processing and Communications28 Oct 2016 10 / 12
Saddle Point
Minimum in one direction
Maximum in orthogonal
direction
Soon Yau Cheong (University of Bristol) EENGM0014 Mathematics for Signal Processing and Communications28 Oct 2016 11 / 12
Weak Minimum
Function does not necessary
decrease in all directions
Soon Yau Cheong (University of Bristol) EENGM0014 Mathematics for Signal Processing and Communications28 Oct 2016 12 / 12

More Related Content

What's hot

Complex Numbers 1 - Math Academy - JC H2 maths A levels
Complex Numbers 1 - Math Academy - JC H2 maths A levelsComplex Numbers 1 - Math Academy - JC H2 maths A levels
Complex Numbers 1 - Math Academy - JC H2 maths A levelsMath Academy Singapore
 
Applied numerical methods lec12
Applied numerical methods lec12Applied numerical methods lec12
Applied numerical methods lec12Yasser Ahmed
 
Engr 213 final 2009
Engr 213 final 2009Engr 213 final 2009
Engr 213 final 2009akabaka12
 
Interpolation functions
Interpolation functionsInterpolation functions
Interpolation functionsTarun Gehlot
 
Point Collocation Method used in the solving of Differential Equations, parti...
Point Collocation Method used in the solving of Differential Equations, parti...Point Collocation Method used in the solving of Differential Equations, parti...
Point Collocation Method used in the solving of Differential Equations, parti...Suddhasheel GHOSH, PhD
 
Engr 213 midterm 1b sol 2010
Engr 213 midterm 1b sol 2010Engr 213 midterm 1b sol 2010
Engr 213 midterm 1b sol 2010akabaka12
 
[4] num integration
[4] num integration[4] num integration
[4] num integrationikhulsys
 
Emat 213 study guide
Emat 213 study guideEmat 213 study guide
Emat 213 study guideakabaka12
 
Newton's Backward Interpolation Formula with Example
Newton's Backward Interpolation Formula with ExampleNewton's Backward Interpolation Formula with Example
Newton's Backward Interpolation Formula with ExampleMuhammadUsmanIkram2
 
Solve ODE - BVP through the Least Squares Method
Solve ODE - BVP through the Least Squares MethodSolve ODE - BVP through the Least Squares Method
Solve ODE - BVP through the Least Squares MethodSuddhasheel GHOSH, PhD
 
Engr 213 midterm 1a sol 2010
Engr 213 midterm 1a sol 2010Engr 213 midterm 1a sol 2010
Engr 213 midterm 1a sol 2010akabaka12
 
2 3 Bzca5e
2 3 Bzca5e2 3 Bzca5e
2 3 Bzca5esilvia
 
Newton's forward & backward interpolation
Newton's forward & backward interpolationNewton's forward & backward interpolation
Newton's forward & backward interpolationHarshad Koshti
 
Interpolation In Numerical Methods.
 Interpolation In Numerical Methods. Interpolation In Numerical Methods.
Interpolation In Numerical Methods.Abu Kaisar
 
ISI MSQE Entrance Question Paper (2009)
ISI MSQE Entrance Question Paper (2009)ISI MSQE Entrance Question Paper (2009)
ISI MSQE Entrance Question Paper (2009)CrackDSE
 

What's hot (20)

Complex Numbers 1 - Math Academy - JC H2 maths A levels
Complex Numbers 1 - Math Academy - JC H2 maths A levelsComplex Numbers 1 - Math Academy - JC H2 maths A levels
Complex Numbers 1 - Math Academy - JC H2 maths A levels
 
Applied numerical methods lec12
Applied numerical methods lec12Applied numerical methods lec12
Applied numerical methods lec12
 
Engr 213 final 2009
Engr 213 final 2009Engr 213 final 2009
Engr 213 final 2009
 
Interpolation functions
Interpolation functionsInterpolation functions
Interpolation functions
 
Point Collocation Method used in the solving of Differential Equations, parti...
Point Collocation Method used in the solving of Differential Equations, parti...Point Collocation Method used in the solving of Differential Equations, parti...
Point Collocation Method used in the solving of Differential Equations, parti...
 
Engr 213 midterm 1b sol 2010
Engr 213 midterm 1b sol 2010Engr 213 midterm 1b sol 2010
Engr 213 midterm 1b sol 2010
 
[4] num integration
[4] num integration[4] num integration
[4] num integration
 
Math cbse samplepaper
Math cbse samplepaperMath cbse samplepaper
Math cbse samplepaper
 
Emat 213 study guide
Emat 213 study guideEmat 213 study guide
Emat 213 study guide
 
Sect4 5
Sect4 5Sect4 5
Sect4 5
 
Newton's Backward Interpolation Formula with Example
Newton's Backward Interpolation Formula with ExampleNewton's Backward Interpolation Formula with Example
Newton's Backward Interpolation Formula with Example
 
Solve ODE - BVP through the Least Squares Method
Solve ODE - BVP through the Least Squares MethodSolve ODE - BVP through the Least Squares Method
Solve ODE - BVP through the Least Squares Method
 
Engr 213 midterm 1a sol 2010
Engr 213 midterm 1a sol 2010Engr 213 midterm 1a sol 2010
Engr 213 midterm 1a sol 2010
 
2 3 Bzca5e
2 3 Bzca5e2 3 Bzca5e
2 3 Bzca5e
 
Newton's forward & backward interpolation
Newton's forward & backward interpolationNewton's forward & backward interpolation
Newton's forward & backward interpolation
 
Dda algo notes
Dda algo notesDda algo notes
Dda algo notes
 
Dda line-algorithm
Dda line-algorithmDda line-algorithm
Dda line-algorithm
 
Interpolation In Numerical Methods.
 Interpolation In Numerical Methods. Interpolation In Numerical Methods.
Interpolation In Numerical Methods.
 
ISI MSQE Entrance Question Paper (2009)
ISI MSQE Entrance Question Paper (2009)ISI MSQE Entrance Question Paper (2009)
ISI MSQE Entrance Question Paper (2009)
 
DDA algorithm
DDA algorithmDDA algorithm
DDA algorithm
 

Similar to tutorial4

Fixed Point Theorem in Fuzzy Metric Space Using (CLRg) Property
Fixed Point Theorem in Fuzzy Metric Space Using (CLRg) PropertyFixed Point Theorem in Fuzzy Metric Space Using (CLRg) Property
Fixed Point Theorem in Fuzzy Metric Space Using (CLRg) Propertyinventionjournals
 
138191 rvsp lecture notes
138191 rvsp lecture notes138191 rvsp lecture notes
138191 rvsp lecture notesAhmed Tayeh
 
comm_ch02_random_en.pdf
comm_ch02_random_en.pdfcomm_ch02_random_en.pdf
comm_ch02_random_en.pdfssuser87c04b
 
On fixed point theorem in fuzzy metric spaces
On fixed point theorem in fuzzy metric spacesOn fixed point theorem in fuzzy metric spaces
On fixed point theorem in fuzzy metric spacesAlexander Decker
 
The Multivariate Gaussian Probability Distribution
The Multivariate Gaussian Probability DistributionThe Multivariate Gaussian Probability Distribution
The Multivariate Gaussian Probability DistributionPedro222284
 
Moment-Generating Functions and Reproductive Properties of Distributions
Moment-Generating Functions and Reproductive Properties of DistributionsMoment-Generating Functions and Reproductive Properties of Distributions
Moment-Generating Functions and Reproductive Properties of DistributionsIJSRED
 
IJSRED-V2I5P56
IJSRED-V2I5P56IJSRED-V2I5P56
IJSRED-V2I5P56IJSRED
 
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 DistributionsJasonTagapanGulla
 
On the solvability of a system of forward-backward linear equations with unbo...
On the solvability of a system of forward-backward linear equations with unbo...On the solvability of a system of forward-backward linear equations with unbo...
On the solvability of a system of forward-backward linear equations with unbo...Nikita V. Artamonov
 
Bayesian Criteria based on Universal Measures
Bayesian Criteria based on Universal MeasuresBayesian Criteria based on Universal Measures
Bayesian Criteria based on Universal MeasuresJoe Suzuki
 
On Application of the Fixed-Point Theorem to the Solution of Ordinary Differe...
On Application of the Fixed-Point Theorem to the Solution of Ordinary Differe...On Application of the Fixed-Point Theorem to the Solution of Ordinary Differe...
On Application of the Fixed-Point Theorem to the Solution of Ordinary Differe...BRNSS Publication Hub
 
A Note on “   Geraghty contraction type mappings”
A Note on “   Geraghty contraction type mappings”A Note on “   Geraghty contraction type mappings”
A Note on “   Geraghty contraction type mappings”IOSRJM
 

Similar to tutorial4 (20)

tutorial6
tutorial6tutorial6
tutorial6
 
Fixed Point Theorem in Fuzzy Metric Space Using (CLRg) Property
Fixed Point Theorem in Fuzzy Metric Space Using (CLRg) PropertyFixed Point Theorem in Fuzzy Metric Space Using (CLRg) Property
Fixed Point Theorem in Fuzzy Metric Space Using (CLRg) Property
 
138191 rvsp lecture notes
138191 rvsp lecture notes138191 rvsp lecture notes
138191 rvsp lecture notes
 
comm_ch02_random_en.pdf
comm_ch02_random_en.pdfcomm_ch02_random_en.pdf
comm_ch02_random_en.pdf
 
On fixed point theorem in fuzzy metric spaces
On fixed point theorem in fuzzy metric spacesOn fixed point theorem in fuzzy metric spaces
On fixed point theorem in fuzzy metric spaces
 
QMC: Operator Splitting Workshop, Proximal Algorithms in Probability Spaces -...
QMC: Operator Splitting Workshop, Proximal Algorithms in Probability Spaces -...QMC: Operator Splitting Workshop, Proximal Algorithms in Probability Spaces -...
QMC: Operator Splitting Workshop, Proximal Algorithms in Probability Spaces -...
 
Econometrics 2017-graduate-3
Econometrics 2017-graduate-3Econometrics 2017-graduate-3
Econometrics 2017-graduate-3
 
The Multivariate Gaussian Probability Distribution
The Multivariate Gaussian Probability DistributionThe Multivariate Gaussian Probability Distribution
The Multivariate Gaussian Probability Distribution
 
Section3 stochastic
Section3 stochasticSection3 stochastic
Section3 stochastic
 
QMC: Undergraduate Workshop, Introduction to Monte Carlo Methods with 'R' Sof...
QMC: Undergraduate Workshop, Introduction to Monte Carlo Methods with 'R' Sof...QMC: Undergraduate Workshop, Introduction to Monte Carlo Methods with 'R' Sof...
QMC: Undergraduate Workshop, Introduction to Monte Carlo Methods with 'R' Sof...
 
Moment-Generating Functions and Reproductive Properties of Distributions
Moment-Generating Functions and Reproductive Properties of DistributionsMoment-Generating Functions and Reproductive Properties of Distributions
Moment-Generating Functions and Reproductive Properties of Distributions
 
IJSRED-V2I5P56
IJSRED-V2I5P56IJSRED-V2I5P56
IJSRED-V2I5P56
 
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
 
02_AJMS_186_19_RA.pdf
02_AJMS_186_19_RA.pdf02_AJMS_186_19_RA.pdf
02_AJMS_186_19_RA.pdf
 
02_AJMS_186_19_RA.pdf
02_AJMS_186_19_RA.pdf02_AJMS_186_19_RA.pdf
02_AJMS_186_19_RA.pdf
 
On the solvability of a system of forward-backward linear equations with unbo...
On the solvability of a system of forward-backward linear equations with unbo...On the solvability of a system of forward-backward linear equations with unbo...
On the solvability of a system of forward-backward linear equations with unbo...
 
Satalk
SatalkSatalk
Satalk
 
Bayesian Criteria based on Universal Measures
Bayesian Criteria based on Universal MeasuresBayesian Criteria based on Universal Measures
Bayesian Criteria based on Universal Measures
 
On Application of the Fixed-Point Theorem to the Solution of Ordinary Differe...
On Application of the Fixed-Point Theorem to the Solution of Ordinary Differe...On Application of the Fixed-Point Theorem to the Solution of Ordinary Differe...
On Application of the Fixed-Point Theorem to the Solution of Ordinary Differe...
 
A Note on “   Geraghty contraction type mappings”
A Note on “   Geraghty contraction type mappings”A Note on “   Geraghty contraction type mappings”
A Note on “   Geraghty contraction type mappings”
 

tutorial4

  • 1. EENGM0014 Mathematics for Signal Processing and Communications Tutorial 4 Soon Yau Cheong University of Bristol 28 Oct 2016 Soon Yau Cheong (University of Bristol) EENGM0014 Mathematics for Signal Processing and Communications28 Oct 2016 1 / 12
  • 2. Data Fitting Estimate a, b, c, d, e, ... Can be solved with 2 methods: 1 Pseudo inverse of over-determined equations 2 Gradient descent Soon Yau Cheong (University of Bristol) EENGM0014 Mathematics for Signal Processing and Communications28 Oct 2016 2 / 12
  • 3. Overdetermined Equations Assume y = a + bx + cx2 + dx3 Say (x0, y0) corresponds to coordinates of first point and (xm, ym) for m-th point. We form matrices by substituting (x,y) into polynomial equation:      1 x0 x2 0 x3 0 1 x1 x2 1 x3 1 ... ... ... ... 1 xM−1 x2 M−1 x3 M−1          a b c d     =      y0 y1 ... yM−1      MX = Y Soon Yau Cheong (University of Bristol) EENGM0014 Mathematics for Signal Processing and Communications28 Oct 2016 3 / 12
  • 4. Solving over-determined equations people.csail.mit.edu/bkph/articles/Pseudo Inverse.pdf Soon Yau Cheong (University of Bristol) EENGM0014 Mathematics for Signal Processing and Communications28 Oct 2016 4 / 12
  • 5. Apply pseudo inverse to our problem: X = (MT M)−1 MT Y or use Matlab function pinv X = pinv(M) ∗ Y =     a b c d     Soon Yau Cheong (University of Bristol) EENGM0014 Mathematics for Signal Processing and Communications28 Oct 2016 5 / 12
  • 6. Soon Yau Cheong (University of Bristol) EENGM0014 Mathematics for Signal Processing and Communications28 Oct 2016 6 / 12
  • 7. Gradient First Order Partial Derivative If y is function of X = {x1, x2, ..., xn} then X (y) = ∂y ∂X =         ∂y ∂x1 ∂y ∂x2 ... ∂y ∂xn         where ∂y ∂x1 is partial derivative of y with respect to x1, with other variables in X being held constant. ∂y ∂xi = lim h→∞ f (x1, ..., xi + h, ..., xn) − f (x1, ..., xi , ..., xn) h Soon Yau Cheong (University of Bristol) EENGM0014 Mathematics for Signal Processing and Communications28 Oct 2016 7 / 12
  • 8. Hessian Matrix Second Order Partial Derivative H =              ∂2y ∂x2 1 ∂2y ∂x1∂x2 · · · ∂2y ∂x1∂xn ∂2y ∂x2∂x1 ∂2y ∂x2 2 · · · ∂2y ∂x2∂xn ... ... ... ... ∂2y ∂xn∂x1 ∂2y ∂xn∂x2 · · · ∂2y ∂x2 n              Soon Yau Cheong (University of Bristol) EENGM0014 Mathematics for Signal Processing and Communications28 Oct 2016 8 / 12
  • 9. Minima Soon Yau Cheong (University of Bristol) EENGM0014 Mathematics for Signal Processing and Communications28 Oct 2016 9 / 12
  • 10. Surface Plot x1=-2:0.1:2 x2=-2:0.1:2 X1,X2=meshgrid(x1,x2) Z=X1.ˆ2+X2.ˆ2 surf(Z) Soon Yau Cheong (University of Bristol) EENGM0014 Mathematics for Signal Processing and Communications28 Oct 2016 10 / 12
  • 11. Saddle Point Minimum in one direction Maximum in orthogonal direction Soon Yau Cheong (University of Bristol) EENGM0014 Mathematics for Signal Processing and Communications28 Oct 2016 11 / 12
  • 12. Weak Minimum Function does not necessary decrease in all directions Soon Yau Cheong (University of Bristol) EENGM0014 Mathematics for Signal Processing and Communications28 Oct 2016 12 / 12