Professional Documents
Culture Documents
Xty RN That: A The With XX Xtlytz 4
Xty RN That: A The With XX Xtlytz 4
21 Vector spaces
Definition A vector space over R the real domain is a set U
together with two functions
X to 0 X x EXE V
VXEV.li X
UXEVandx.PER x px gx
VXEVandxpER.at Pkxxtpx
⽐ y EV and x ER xcxty xxt 对囪
Remark i We can define vector space over G the complex domain similarly
We will assume vector space over R for default Vector space
over G is used very rarely
𡂈㶝㤈 㒡 𨶹 𠠬
scdarmipkativxc.IR and
㓹EM 忄剡 簦
Many input data can be
modeled by vectors in 他
Digitalsound signals of
length n
if t and is defined
gtilfxtxijkiiandygj.fi in
xty Xijktyijklii.ie
V xixjhij.in and
XER.mn
x
Xiii i
This rector space is the same as Rmnf
An nxmx33 array can be used to model a color digital
X⼀ 两次
with Xi Ea bj and Yi ER
leareafECaiis.t.fi Yi for all i
Example Ti The infinite sequence
⽇ at Cst
laikcoi
l
倒1
With atbli aitbiforallabd.fr all
if x ali xai for all a El for all
X ER
It forms a vector space
This vector space can be used to model e.g
time series with a very long time and or a veryfine time
resolution
12 Metric in vector spaces
In order to do calculus on vector spaces we need to
define distance closeness between vectors
xxx 7
My 1141x11 ⼗ 州 ynxH
hrnm.HN
o y
Definition Let U be a rector space over B A norm on V
is a function 11.11 V R such that i
㖄 20 ⽐EV and 侧 0 X 0
HxxlklxlllXH.UXEVandxER
HXtYlKllxlltllyll.lfX.yEV
normix.MN
点到 ⼆
1
The induced distance in ish
化州 ⼆ 点⻛州 y
is Han distance
known as Mahan You can walk only
horizontally and vertically
o norm
化州
1⽐11 是总 叫
⼆
N_N ⼆
照⼼ 必 以 1 y
为 p norm
p D
11Xllp 点 叫啊
Comparison of unit balls
Oi
8 S
mmbaufxln.to
Note that R 11州 112711112 他 州 are all
different normedspaces So given vector space
for a we
We can define
nim of a matrix
by
upHAXHP
HAHpp s.CC heck it is a norm
XEnnllxllpxtozsupxM
xllppt_A.UA
so
Find the vector 2 norm Frobenius nom and the matrix
2 norm
of A 69
Frobenius norm 么
HAIf 12 1 0404 ⻔ 冷
matrix 2norm
㖄
嚻𦦵 篼器
⼆
2 1
Example
4 Cab is a vectorspace over R
The 0 vector in Ca bj is thefunction that takes value oona.by
measure how large a function
I f is
f
we can use the following norms
t
卌 惢⽤刚
andiron
⼆
All ⼆
fblfcxlldxllflb.fi
If 化性 妒
分
Hfllp fdlf丱测
Example 5i.l.is a vector space over R
that
We can show lp is a vector space
and Holly is a norm on
lp call lpnorm
Example
a 偐
Then Hall sǐpkil 11
到兰 哥
2
1炶 或 们
Hall 点卡 to
Therefore
a El a Eh but a Cfl
Remarks i l For the same vector space we can define infinitely many
different norms
Clustering
Suppose we are given N rectors X Xz ⼀
不 ER
The good of clustering is to group or partition the vectors into
k groups or clusters with the vectors in eachgroup close to each other
oi
Representation
J J ⼗ It t Jk
should be small
Altogether we solve the following
器 J 器品 意可 ⼀
点 必 列川
Z Zk
⼀ Zi ZK 暴 意
悲
Optimization
G GK.ie Son
G照品 杰德 怀 酬 __ ___
1
Step2 Fix the groups G ⼀
Gk find the best representatives
Z Zk i.e Solve
it 新意 Mi 2州 ____
2
The two steps are repeated until convergence
For l
finding the partition G ⼀
Gk is equivalent to
finding a a ⼀
a So 1 becomes
c 只只品 怀 到1411X22岭 ⼀
11 不 到12
nnr tree
nn.ru
dependson depends on depends
a only on Gvonly
Gong
I
min llxi Za.IE i 1.2 N
⼀⼀
Siaa GE 1,2
⼀
k了 to get Ci we only need to compare
e.ci
argmnhxi
jail Zjlli.it 2 ⼀
K
In
qtherwrdszrp
Xi is assigned to thegroup whose representative vector is
For 2
thecbsestoxichrrre
It is rewritten as
只
只 趴意 Milli ⼗ 点 Nit ⼗
点 伈 灭们
tree nny.tt rinse
dependson Z depends on depends on
only ZzOnly ⼆ only
Mf 意 不可们 抖 2 K
𤄙 ⼼ 难⼆
Èljej
点
⼆ 点 意 Xie
ZjeDEeahte.mn
is this summation are independent again
Thus
等剾以 渺
2 ⼼
嶃
器意
eni.int
One Variable minimization
2 点 Zi Xie 0
is the numberof
Zje 意如 MG.lk Gjl tents in G
太1,2 n
In vector form
䰘 前 意懰 ⼀ 百⼆ 歃意州
In other 以
of all vectors in Gj
Zj is the mean no 7
Altogether we get the following clustering algorithm
Input Xi K 从 ER
G Gi CN and Zj.FI K
⼀
Output
Initialization Initialize K vectors
Z 瓦 Zk by choosing
from X ⽕ ⼀
不 randomly
Step Ii Given Zi Zz Zk
⼀
compute
ZjlE
Ci ⼆
agjiii.gl Xi i l 2
N.anddefneGj
Snilci j3 j 1.2 k
Zj 前 意则
Go back to step l
K medians Algorithm
in 意愿 不可川
The numerical solver is
只品
G只
点 意 必 可以
Similar to the discussion in Kmeans the solution is
Ci
aggii.gl Xi Zjlh E1 z
N.andGj
SnilCi
B.Step2
FixG
点您z 炱
Gz ⼀⼀
⼀
Gk
伙 列⼀
solve
Similar to the discussion in K means it is decomposed
median Xi
Zj i E Gj
Where median Xi takes component_wise median
i E Gj
Then
nxnxh 11⽔㖃 志幽⽕
卡 12122 tn 怍
名
X 112 台品 卡 1424 州
品化
台
constant ink
0
Therefore x 0 ask.se
Example 2 i Consider Co 1 with Mlb
Let f t Sin 2⺎ ⼼ 仁
be the co function
Let 0
Then Pin
2⺎ ⼼
Hfdb 器 仁 六
So 台品 ⾌
点叫 ⽨ 011 0
⼆
f
Therefore 0
f fi f
Example 3 Consider infinite sequences
叫 酅 篍 噝 a.ee
Thus ⼼ a in h
In lo with 11 11 norm
119㖄 ⼆
六
Hit all
以
品 优 all
个 0
Thus a a in ho
In l with Holl norm
Ha _all ⼆ Ha 11 ⼆ 点卡 1
㗊㤈 _all 1 to
Thus it a in l
hisexampleshowsth.at
1 7在 ⼼⼼ 如 公以⽣ ⼉所以 0⼏ ⼏⼼ 以
a is an infinite sequence
Example 4i Consider V a
nan
Let
⼼
鮣 㿶
Then
㗊 niall 品1
冰 珆逾
⼆ ⼆ 0
𤒇
honor m
i.e the limit of ⼼ 我should be a in
However a EV because 㖄 to
but a
4 V because Hall ⼆ 点 10
a normal
0 This example shows that The limit may not be in
vector space
call the normed vector space incomplete
If this happen we
it 唉
纞 熊 㵘 智品
i.fii
r ii
sk
Lemma
If X X EV then 如 is a cauchy sequence
Ha a i a if Kl 2点 1 assume lzy
鯋
But the limit of alki is not in V
Avectorspaavuithnormltllisompkuifnttl
allcauchysequemeinvisonvergenthrre
IAcompletenormedvectorspaaiscalledaBanach
We.am always complete a normed vector space by including
dlimitofauchygnashherg
Example of complete normed vector spaces Banach spaces
norm
R with any
R with any norm
Tensor space RMMM with any
norm.ca
叮 with Nb norm
V alaisiiiistguithnomM.is incomplete
Tinier EN CV 1.2 S
⼀
s
given zit no
Zi generate Gif G.ir
given Gif 甅 Gig generate zit
zitertyend.LV
11 11 must
Otherwise if the
be complete
limit of Xi is not in V then the
the limit of Xi may not be a good solution
since V is the hyperthesis spaair the set of good solutions
Example In a supervised learning given Xi 则 ⼼ ⼀
m 發息
We want to find a function
fs.t.flxil yi.ii.im
we aim at finding f E Cia D i.e a continuous function
for iter 1 2 __
__
__
如 x in 11𢘛 如 x in Mlb
to prove i 红
狐 0 化以 姤
proof It is equivalent
HXM xlh o OEMM xlbEGIIXMxlb 0
rs 伏以 姤 0
化以 𡚸 0 ⽹
Example
𠱃上
职篚河
摔
X ⼆
K is about 泛 times of Kz
dimensional normal vector space is complete
Any finite
lie they are Banach spaces