A key problem in DSP:
Given a signal
y
y
find the signal
x
x
from a subspace SS that is the
closest to
y
y.
y
y
is a noisy signal and all
x∈S
x
S
are smooth.
Finding an
x
x
close to
y
y
will approximate it by a noise-free version.
Geometry of the situation via linear algebra.
x∈S⇒x=∑k=0M−1
α
k
bk
x
S
x
k
0
M
1
α
k
b
k
where
bk
b
k
are a basis for the subspace
S
S (We assume it is an ONB).
In general,
y
y
is not
∈S
S
The goal is to find
x∈S
x
S
close to
y
y,
which is equivalent to finding
αk
α
k
.
We can also measure how close
x
x
is to
y
y
by
l
2
l
2
norm error in
ℝN
N
:
∥y−x∥22=∑n=0N−1yn−xn2
2
y
x
2
n
0
N
1
y
n
x
n
2
Define
e=y−x
e
y
x
as the error vector and minimize
l
2
l
2
strength of
e
e.
How close to choose - to minimize
∥x∥2
2
x
?
Choose
x
x
so that error
e
e
is ⊥ to
x
x
and ⊥
to the entire subspace
S
S.
∥e∥2
2
e
is minimum when
<e,x>=0
e
x
0
Also have
∀s,s∈S:<e,s>=0
s
s
S
e
s
0
Linear algebra lets us convert a distance problem
(minimize
l
2
l
2
distance between 2 vectors) into an angle problem
(minimize the inner product between error and subspace).
We perform an orthogonal projection of
y
y
onto
S
S
to obtain
x
x
closest to
y
y
in
S
S.
Now apply the OP to find the optimal approximant
x∈S
x
S
to
y
y.
Recall:
y∈ℂn
y
n
x∈S⊆ℂN
x
S
N
x=∑k=0M−1
α
k
bk
x
k
0
M
1
α
k
b
k
where
bk
b
k
is an ONB for
S
S.
The goal is that given
y
y,
we must find
α
k
α
k
's.
Apply OP: Define
e=y−x=y−∑k=
α
k
b
k
e
y
x
y
k
α
k
b
k
Then:
0=<e,x>=<y−∑k'=
α
k'
bk',∑k'=
α
k
bk>
0
e
x
y
k'
α
k'
b
k'
k'
α
k
b
k
by linearity of OP,
0=<y,∑k'=
α
k
bk>−<∑k'=
α
k'
bk',∑k'=
α
k
bk>=∑k'=
α
k
¯<y,bk>−∑k'=
α
k
¯<∑k'=αk'bk',bk>=∑k'=
α
k
¯<y,bk>−<∑k'=
α
k'
bk',bk>=∑k'=
α
k
¯<y,bk>−∑k=
α
k'
<bk',bk>=∑k'=
α
k
¯<y,bk>−
α
k
0
y
k'
α
k
b
k
k'
α
k'
b
k'
k'
α
k
b
k
k'
α
k
y
b
k
k'
α
k
k'
α
k'
b
k'
b
k
k'
α
k
y
b
k
k'
α
k'
b
k'
b
k
k'
α
k
y
b
k
k
α
k'
b
k'
b
k
k'
α
k
y
b
k
α
k
(1)
There are 2 ways to set to zero:
-
All
α
k
=0
α
k
0
.
-
<y,bk>−
α
k
=0
y
b
k
α
k
0
for all kk chosen.
The solution to (2) is simple:
<y,bk>−
α
k
=0
y
b
k
α
k
0
or
α
k
=<y,bk>
α
k
y
b
k
.
The optimal
l
2
l
2
approximation
x=∑k=
α
k
bk
x
k
α
k
b
k
to
y
y
has
α
k
=<y,bk>
α
k
y
b
k
when
bk
b
k
are an ONB for the subspace.
In
Figure 5,
e=y−x
e
y
x
,
<e,x>=0
e
x
0
,
<e,S>=0
e
S
0
x=∑k=01
α
k
bk
x
k
0
1
α
k
b
k
where
bk
b
k
is an ONB for
SS
α
k
=<y,bk>
α
k
y
b
k
∥e∥2
2
e
is minimized.
ℝ2
2
.
Find the closest
x
x
to
y∈ℝ2
y
2
where
x
x
lies on a 45° angled line.
-
Find an ONB for SS,
S=∀a,a∈ℝ:x=aa
S
a
a
x
a
a
.
ONB:
b
0
=112
b
0
1
1
2
.
-
Optimal
x=∑k=00
α
k
bk=
α
0
b0
x
k
0
0
α
k
b
k
α
0
b
0
α
0
=<y,b0>
α
0
y
b
0
For example,
in
Figure 7,
y=37
y
3
7
α
0
=121137=102
α
0
1
2
1
1
3
7
10
2
x=102112=55
x
10
2
1
1
2
5
5
Given an ecg signal,
y∈ℂN
y
N
that is a smooth signal contaminated by noise
we would like to make an estimate
y
̂
y
̂
that is smooth.
-
Step1:
Signal model:
y=x+n
y
x
n
x∈S
x
S
,
subspace of smooth functions. Find an appropriate
subspace. For example,
x∈S
x
S
spanned by the 1st M≪N DCT basis vectors (lowest
frequencies).
x=∑k=0M−1
α
k
bk
x
k
0
M
1
α
k
b
k
Noise model: Assume for example, that
n
n
is zero-mean Gaussian noise (i.i.d.).
-
Step2:
⊥ project
y
y
onto SS to get estimate
y
̂
y
̂
(In statistical DSP, this is called the
inear minimum mean squared error estimate - LMMSE
est.).
y
̂
=∑k=0N−1
β
k
bk
y
̂
k
0
N
1
β
k
b
k
β
k
=<y,bk>
β
k
y
b
k
Is
y
̂
y
̂
closer to xx than yy is?
Using the DCT basis, could you solve this problem in matlab?
How do you choose the subspace and the ONB?