Professional Documents
Culture Documents
Formal Concept Analysis : Summer School
Formal Concept Analysis : Summer School
Erik Kropat
Formal Concept Analysis studies, how objects can be hierarchically grouped together
according to their common attributes.
Tree of Life
www.arthursclipart.org
What is a “concept” ?
Concept Bird
2-dim
cylinder
disk
3-dim
triangle
cube
yellow
triangle
cube
green
Example disk
cylinder
red
3-dim 2-dim
3-dim
2-dim
Target Marketing
⇔
one-for-one
Set of attributes
age, sex, income level, ⇒ clusters of attributes
spending habits, …
clusters of objects
correspond
one-for-one
clusters of attributes
Formal Contexts
Example: Classification of plants and animals
Animal
Dog Cat
Plant
lives on land
Reed Water lily Oak
lives in water
Carp Potato
Objects Attributes
Formal Concept Analysis
Question:
Lives in water
Lives on land
Has object g the attribute m ( Yes / No ) ?
Animal
Plant
Dog x x
Cat x x
Oak x x
Binary Relation
Objects Potato x x
Lives in water
Set of common attributes of the objects in A
Lives on land
A’ := A↑:= { m ∈ M | g I m for all g ∈ A }
Animal
Plant
Dog x x
Cat x x
A⊂G A′ ⊂ M Oak x x
Potato x x
{Dog, Cat} Carp x x
{Oak, Potato} Water lily x x
Reed x x x
The Derivation Operators (Type I)
A ⊂ G selection of objects.
Question: Which attributes from M are common to all these objects?
Lives in water
Set of common attributes of the objects in A
Lives on land
A’ := A↑:= { m ∈ M | g I m for all g ∈ A }
Animal
Plant
Dog x x
Cat x x
A⊂G A′ ⊂ M Oak x x
Potato x x
{Dog, Cat} {Animal, lives on land} Carp x x
{Oak, Potato} Water lily x x
Reed x x x
The Derivation Operators (Type I)
A ⊂ G selection of objects.
Question: Which attributes from M are common to all these objects?
Lives in water
Set of common attributes of the objects in A
Lives on land
A’ := A↑:= { m ∈ M | g I m for all g ∈ A }
Animal
Plant
Dog x x
Cat x x
A⊂G A′ ⊂ M Oak x x
Potato x x
{Dog, Cat} {Animal, lives on land} Carp x x
{Oak, Potato} Water lily x x
Reed x x x
The Derivation Operators (Type I)
A ⊂ G selection of objects.
Question: Which attributes from M are common to all these objects?
Lives in water
Set of common attributes of the objects in A
Lives on land
A’ := A↑:= { m ∈ M | g I m for all g ∈ A }
Animal
Plant
Dog x x
Cat x x
A⊂G A′ ⊂ M Oak x x
Potato x x
{Dog, Cat} {Animal, lives on land} Carp x x
{Oak, Potato} {Plant, lives on land} Water lily x x
Reed x x x
The Derivation Operators (Type II)
B ⊂ M a set of attributes.
Question: Which objects have all the attributes from B?
Lives in water
Set of objects that have all the attributes from B
Lives on land
B’ := B↓:= { g ∈ G | g I m for all m ∈ B }
Animal
Plant
Dog x x
Cat x x
B⊂M B′ ⊂ G Oak x x
Potato x x
{Plant, lives on land} Carp x x
{Animal, lives in water} Water lily x x
Reed x x x
The Derivation Operators (Type II)
B ⊂ M a set of attributes.
Question: Which objects have all the attributes from B?
Lives in water
Set of objects that have all the attributes from B
Lives on land
B’ := B↓:= { g ∈ G | g I m for all m ∈ B }
Animal
Plant
Dog x x
Cat x x
B⊂M B′ ⊂ G Oak x x
Potato x x
{Plant, lives on land} {Oak, Potato, Reed} Carp x x
{Animal, lives in water} Water lily x x
Reed x x x
The Derivation Operators (Type II)
B ⊂ M a set of attributes.
Question: Which objects have all the attributes from B?
Lives in water
Set of objects that have all the attributes from B
Lives on land
B’ := B↓:= { g ∈ G | g I m for all m ∈ B }
Animal
Plant
Dog x x
Cat x x
B⊂M B′ ⊂ G Oak x x
Potato x x
{Plant, lives on land} {Oak, Potato, Reed} Carp x x
{Animal, lives in water} Water lily x x
Reed x x x
The Derivation Operators (Type II)
B ⊂ M a set of attributes.
Question: Which objects have all the attributes from B?
Lives in water
Set of objects that have all the attributes from B
Lives on land
B’ := B↓:= { g ∈ G | g I m for all m ∈ B }
Animal
Plant
Dog x x
Cat x x
B⊂M B′ ⊂ G Oak x x
Potato x x
{Plant, lives on land} {Oak, Potato, Reed} Carp x x
{Animal, lives in water} {Carp} Water lily x x
Reed x x x
1) If a selection of objects is enlarged,
Object
Attributes
Formal Concepts
Extent Intent
(objects) (attributes)
Duality
How can we find “formal concepts”?
Lives in water
Lives on land
A formal concept (A, B) corresponds to a
Animal
Plant
filled rectangular subtable
with row set A and column set B. Dog x x
Cat x x
Oak x x
Potato x x
( {Dog, Cat}, {Animal, lives on land} ) Carp x x
Water lily x x
Reed x x x
How can we find “formal concepts”?
Lives in water
Lives on land
A formal concept (A, B) corresponds to a
Animal
Plant
filled rectangular subtable
with row set A and column set B. Dog x x
Cat x x
Oak x x
Potato x x
( {Dog, Cat}, {Animal, lives on land} ) Carp x x
Water lily x x
Reed x x x
Lives in water
Lives on land
A formal concept (A, B) corresponds to a
Animal
Plant
filled rectangular subtable
with row set A and column set B. Dog x x
Cat x x
Oak x x
Potato x x
( {Dog, Cat}, {Animal, lives on land} ) Carp x x
Water lily x x
Reed x x
( {Oak, Potato, Reed}, {Plant, lives on land} ) x
How can we find “formal concepts”?
Lives in water
Lives on land
A formal concept (A, B) corresponds to a
Animal
Plant
filled rectangular subtable
with row set A and column set B. Dog x x
Cat x x
Oak x x
Potato x x
( {Dog, Cat}, {Animal, lives on land} ) Carp x x
Water lily x x
Reed x x
( {Oak, Potato, Reed}, {Plant, lives on land} ) x
Lives in water
Lives on land
A formal concept (A, B) corresponds to a
Animal
Plant
filled rectangular subtable
with row set A and column set B. Dog x x
Cat x x
Oak x x
Potato x x
Lives in water
Lives on land
A formal concept (A, B) corresponds to a
Animal
Plant
filled rectangular subtable
with row set A and column set B. Dog x x
Cat x x
Oak x x
Potato x x
There exist filled rectangular subtables that do not determine formal concepts
Computing all Formal Concepts
Lemma
Each formal concept (A, B) of a formal context (G,M,I)
has the form (A′′, A′) for some subset A⊂G
and the form (B′, B′′) for some subset B ⊂ M.
• A ⊂ G extent ⇔ A = A′′.
B ⊂ M intent ⇔ B = B′′.
Animal super-concept
Dog, Cat, Carp
≤
Animal, lives on land Animal, lives in water
sub-concept
Dog, Cat Carp
Animal super-concept
Dog, Cat, Carp
≤
Animal, lives on land Animal, lives in water
sub-concept
Dog, Cat Carp
Animal
Dog, Cat, Carp
• (A2, B2) is a super-concept of (A1, B1).
Theorem
The concept lattice of a formal context is a partially ordered set.
We need a notion of
neighborhood
1) x≤x (reflexive)
2) x ≤ y and x ≠ y ⇒ ¬ y ≤ x (antisymmetric)
3) x ≤ y and y ≤ z ⇒ x ≤ z (transitive)
for all x, y, z ∈ P.
Conceptual Hierarchy
Let (A1, B1) and (A2, B2) be formal concepts of the context (G,M,I).
(A1, B1) proper sub-concept of (A2, B2) [ (A1, B1) < (A2, B2)]
(A2 , B2)
(A1 , B1)
Conceptual Hierarchy
Examples: In the following examples (A1, B1) is a proper sub-concept of (A2, B2)
(A1 , B1) (A , B )
(A1 , B1)
Answer: In (a) the concept (A1, B1) is the lower neighbor of (A2, B2).
In (b) the concept (A1, B1) is not the lower neighbor of (A2, B2).
Conceptual Hierarchy
Let (A1, B1) and (A2, B2) be formal concepts of the context (G,M,I) (A2 , B2)
and (A1, B1) is a proper sub-concept of (A2, B2).
(A1, B1) is a lower neighbor of (A2, B2) [(A1, B1) (A2, B2)], (A , B )
if no formal concept (A, B) exists with
(A1 , B1)
(A1, B1) < (A, B) < (A2, B2).
Drawing Concept Lattices
• Draw lines
Connect each formal concept (circle) with the circles of its lower neighbors.
water water
plant
e9 e7 animal e6 land
animal
e8 terrestrial
plants
water lily carp dog, cat oak, potato
plants, on land
e10
& in water
reed
e5
∅
Exercise
Attributes
Habital zone
Terrestrial
Gas giant
Moon
Earth x x x
Jupiter x x
Objects
Mercury x
Mars x x
Exercise
terrestrial moon
earth, mercury, e2 e3 earth, jupiter,
mars mars
terrestrial,
e6
moon
earth, mars
gas giant,
terrestrial,
e4 e1 moon
moon, habitual
jupiter
earth
e5
∅
Applications
Applications
Biclustering / co-clustering
Simultaneous clustering of the
rows and columns of a matrix.
• The methods are supported by algebra, lattice theory and order theory.
Software
www.fcahome.org.uk/fcasoftware.html
Thank you very much!