A class of sets is said to shatter another set if it is possible to "pick out" any element of that set using intersection. The concept of shattered sets plays an important role in Vapnik - Chervonenkis theory, also known as VC-theory. Shattering and VC-theory are used in the study of empirical processes as well as in statistical computational learning theory.
Suppose A is a set and C is a class of sets. The class C shatters the set A if for each subset a of A, there is some element c of C such that
a=c\capA.
Equivalently, C shatters A when their intersection is equal to As power set: P(A) = .
We employ the letter C to refer to a "class" or "collection" of sets, as in a Vapnik - Chervonenkis class (VC-class). The set A is often assumed to be finite because, in empirical processes, we are interested in the shattering of finite sets of data points.
We will show that the class of all discs in the plane (two-dimensional space) does not shatter every set of four points on the unit circle, yet the class of all convex sets in the plane does shatter every finite set of points on the unit circle.
Let A be a set of four points on the unit circle and let C be the class of all discs.To test where C shatters A, we attempt to draw a disc around every subset of points in A. First, we draw a disc around the subsets of each isolated point. Next, we try to draw a disc around every subset of point pairs. This turns out to be doable for adjacent points, but impossible for points on opposite sides of the circle. Any attempt to include those points on the opposite side will necessarily include other points not in that pair. Hence, any pair of opposite points cannot be isolated out of A using intersections with class C and so C does not shatter A.
As visualized below:
Because there is some subset which can not be isolated by any disc in C, we conclude then that A is not shattered by C. And, with a bit of thought, we can prove that no set of four points is shattered by this C.
However, if we redefine C to be the class of all elliptical discs, we find that we can still isolate all the subsets from above, as well as the points that were formerly problematic. Thus, this specific set of 4 points is shattered by the class of elliptical discs. Visualized below:
With a bit of thought, we could generalize that any set of finite points on a unit circle could be shattered by the class of all convex sets (visualize connecting the dots).
See main article: growth function. To quantify the richness of a collection C of sets, we use the concept of shattering coefficients (also known as the growth function). For a collection C of sets
s\subset\Omega
\Omega
SC(n)=
max | |
\forallx1,x2,...,xn\in\Omega |
\operatorname{card}\{\{x1,x2,...,xn\}\caps,s\inC\}
where
\operatorname{card}
x1,x2,...,xn\in\Omega
SC(n)
For example, if set A contains 3 points, its power set,
P(A)
23=8
22=4
P(A)
This example illustrates some properties of
SC(n)
SC(n)\leq2n
\{s\capA|s\inC\}\subseteqP(A)
A\subseteq\Omega
n | |
S | |
C(n)=2 |
N | |
S | |
C(N)<2 |
N>1
n | |
S | |
C(n)<2 |
n\geqN
See main article: VC dimension. If A cannot be shattered by C, there will be a smallest value of n that makes the shatter coefficient(n) less than
2n
2n
20=1
n\} | |
VC(C)=\underset{n}{min}\{n:S | |
C(n)<2 |
VC0(C)=\underset{n}{max}\{n:S
n\}. | |
C(n)=2 |
Note that
VC(C)=VC0(C)+1.
n | |
S | |
C(n)=2 |
Altneratively, if for any n there is a set of cardinality n which can be shattered by C, then
n | |
S | |
C(n)=2 |
A class with finite VC dimension is called a Vapnik - Chervonenkis class or VC class. A class C is uniformly Glivenko - Cantelli if and only if it is a VC class.