Wulff’s crystallographic shapes
Overlap
Separation
glycaem ia vs. azotaem ia
0 10 20 30 40 50 60 70 80 90
40 60 80 100 120 140
glycaemia (mg/dl)
azotaemia (mg/dl)
But what if a separation hyperplane does not exist?
How to measure overlap
glycaem ia vs. azotaem ia
0 10 20 30 40 50 60 70 80 90
40 60 80 100 120 140
glycaemia (mg/dl)
azotaemia (mg/dl)
conv(P’)
S = {x
1, …, x
s}
conv(S) = {x ∈ IR
n: x =
λ1x
1+ … +
λsx
sλ1 + … + λs
= 1
λi
> 0}
S = {x
1, …, x
s}
conv(S) = {x ∈ IR
n: x =
λ1x
1+ … +
λsx
sλ1 + … + λs
= 1
λi
> 0}
We can compute its implicit form conv(S) = {x ∈ IR
n: Ax < b} by Fourier-Motzkin’s method
convex hull
How to measure overlap
glycaem ia vs. azotaem ia
0 10 20 30 40 50 60 70 80 90
40 60 80 100 120 140
glycaemia (mg/dl)
azotaemia (mg/dl)
A’x < b’
A”x < b”
Q
diam(Q) = max {d(x , y): x, y ∈ Q}
diam(Q) = max {d(x , y): x, y ∈ Q}
Q = {x ∈ IR
n: A’x < b’, A”x < b”}
Q = {x ∈ IR
n: Ax < b}
The overlap can be measured by the diameter of Q
How to measure overlap
Problem Compute the diameter of a polytope Q = {x ∈ IR
n: Ax < b}
max Σ
n(x
i– y
i)
2i=1
a
i1x
1+ a
i2x
2+ … + a
inx
n< b
ia
i1y
1+ a
i2y
2+ … + a
iny
n< b
ii = 1, …, m
computing the diameter
diam(Q) = max {d(x , y): x, y ∈ Q}
diam(Q) = max {d(x , y): x, y ∈ Q}
Theorem Let f: Q → IR concave (convex) with Q polytope. Then there always
exists a vertex v
*of Q such that f(v
*) < f(x) (such that f(v
*) > f(x))
for any x ∈ Q.
Convex and concave functions
Let f: IR
n→ IR, and λ
1, …, λ
m> 0 such that
i=1mΣ λ
i= 1. Let x
1, …, x
m∈ IR
n.
f (x2)
x1 x2
f (x1)
x = λx1 + (1 –λ)x2 f (x)
λ f(x1) + (1 – λ)f (x2)
convex if
f ( Σ
iλ
ix
i) < Σ
iλ
if (x
i)
Theorem Let f: Q → IR concave (convex) with Q polytope. Then there always exists a vertex v
*of Q such that f(v
*) < f(x) (such that f(v
*) > f(x)) for any x ∈ Q.
We call f
Convex and concave functions
f (x2)
x1 x2
f (x1)
concave if instead f ( Σ
iλ
ix
i) > Σ
iλ
if (x
i)
x = λx1 + (1 – λ)x2
f (x) λ f(x1) + (1 –λ)f (x2)
Let f: IR
n→ IR, and λ
1, …, λ
m> 0 such that Σ λ
i= 1. Let x
1, …, x
m∈ IR
n.
We call f
convex if
f ( Σ
iλ
ix
i) < Σ
iλ
if (x
i)
Theorem Let f: Q → IR concave (convex) with Q polytope. Then there always
exists a vertex v
*of Q such that f(v
*) < f(x) (such that f(v
*) > f(x))
for any x ∈ Q.
Convex and concave functions
Theorem Let f: Q → IR concave (convex) with Q polytope. Then there always exists a vertex v
*of Q such that f(v
*) < f(x) (such that f(v
*) > f(x)) for any x ∈ Q.
f (x)
v
1, …, v
qvertices of Q
x ∈ Q ⇔ x = Σ
λiv
iq
i=1
with
λi> 0, Σ
λi= 1
q
i=1
f (x) = f ( Σ
λiv
i) > Σ
λif (v
i) >
q
i=1
q
i=1
> Σ
λimin {f (v
i)} = f (v
*)
i = 1…q q
i=1
Q = conv{v
1, …, v
q}
Q
*
minimum point v*
How to measure overlap
0 10 20 30 40 50 60 70 80 90
40 60 80 100 120 140
Q
The theorem says that diam(Q) is the distance between two vertices of Q but the vertices of Q are not necessarily members of the sample P = P’ ∪ P”
Saying it differently, it might well be Q
*= conv(Q ∩ P) ⊂ Q
How to measure overlap
0 10 20 30 40 50 60 70 80 90
40 60 80 100 120 140
Q*
Instead of diam(Q), let us measure overlap as the maximum distance d between the sample points which belong to Q
d
In altre parole, può darsi che Q
*= conv(Q ∩ P) ⊂ Q
without having to compute conv(Q ∩ P) (Fourier-Motzkin’s method is extremely heavy) and having than to solve a quadratic problem
Knowing Q ∩ P one can compute d through
|Q∩P|⋅(|Q∩P| – 1)iterations
2
How to measure overlap
0 10 20 30 40 50 60 70 80 90
40 60 80 100 120 140
Q*
Definition We say that x ∈ P’ is separable from P” if there exists a hyperplane H = {x ∈ IR
n: ax = b} such that ax > b e ax
k< b for any x
k∈ P”
ax= b
x
How to measure overlap
0 10 20 30 40 50 60 70 80 90
40 60 80 100 120 140
Q*
Definition We say that x ∈ P’ is separable from P” if there exists a hyperplane H = {x ∈ IR
n: ax = b} uch that ax > b e ax
k< b for any x
k∈ P”
x
Teorema Siano N’, N” gli insiemi dei punti di P’, P” non separabili rispettiva mente da P”, P’. Allora P ∩ Q
*= N’ ∪ N”
Theorem Let x ∈ P’ be separable from P”. Then x ∉ Q
*.
Similarly, every x of P” separable from P’ does not belong to Q
*.
N’ N”
How to measure overlap
Definition We say that x ∈ P’ is separable from P” if there exists a hyperplane H = {x ∈ IR
n: ax = b} such that ax > b e ax
k< b for any x
k∈ P”
such that x = λ1x1 + … + λmxm Then we could write λ1ax1 < λ1b
…
λmaxm < λmb
a(λ1x1 + … + λmxm) < (λ1 + … + λm)b Hence x∉conv(P”)
Let x∈P’ – N’. Then there are a, b such that ax > b
axk < b for any xk∈P”
Theorem Let x ∈ P’ be separable from P”. Then x ∉ Q
*.
Similarly, every x of P” separable from P’ does not belong to Q
*.
Let |P”| = m. If x ∈ conv(P”), there would be λ1, …, λm > 0 with
Σ
λi = 1m
i=1
that is ax < b
and, since Q* ⊆ conv(P”), x∉Q*
How to measure overlap
0 10 20 30 40 50 60 70 80 90
40 60 80 100 120 140
Q*
• So, to decide whether a point of P’ (di P”) belongs or not to Q
*, we check whether it is inseparable or not from P” (from P’)
• Once constructed P ∩ Q
*, we compute its diameter by exhaustion
x