Lec 4
Lec 4
Review on Graphs
G
I
H
d
a
b
g
c e
2 5
1 2 3 4 5
Persons
corresponding rows/columns C 1 1 0 0 0
D 0 1 1 1 1
E 0 0 1 0 0
F 0 0 1 1 0
g
Pij Aik A jk
k 1
MA 653: Network Science 20
Ex: Working with two mode data (Groups)
• Similarly for groups
Similarly for Groups:
Groups 1 2 12
•
1 2 3 4 5 A 0 0 0 Group 1 has 2
A 0 0 0 0 1 B 1 0 0 members,
B 1 0 0 0 0 C 1 1 1 group 2 has 2
Persons
D 0 1 0 members and
C 1 1 0 0 0
they overlap
D 0 1 1 1 1 E 0 0 0
by 1 members
E 0 0 1 0 0 F 0 0 0 (C).
F 0 0 1 1 0 S 2 2 1
p
Gij Aki Akj
k 1
Groups 1 2 3 4 5
1 2 3 4 5
A 0 0 0 0 1
B 1 0 0 0 0
Persons
C 1 1 0 0 0
D 0 1 1 1 1
A B C D E F
E 0 0 1 0 0
F 0 0 1 1 0
Persons
MA 653: Network Science 23
Mathematics of one-mode projection (1)
• Two actors i and j belong to group k iff BkiBkj=1
• The total number of groups Pij that i and j belong is given by:
(6x5) (5x6)
P = A(AT)
G = AT(A)
(6x5) (5x6)
P = A(AT)
G = AT(A)
A * AT = P AT * A = P
(6x5)(5x6) (6x6) (5x6) 6x5) (5x5)
P
A B C D E F G
A 1 0 0 1 0 0 1 2 3 4 5
B 0 1 1 0 0 0 1 2 1 0 0 0
C 0 1 2 1 0 0 2 1 2 1 1 1
D 1 0 1 4 1 2 3 0 1 3 2 1
E 0 0 0 1 1 1 4 0 1 2 2 1
F 0 0 0 2 1 2 5 0 1 1 1 2
C = AAT 1 2 3 4 5 6
1 2 1 1 0 1 0
2 1 2 0 1 1 0
3 1 0 2 0 2 0
4 0 1 0 2 1 0
5 1 1 2 1 3 0
6 0 0 0 0 0 0
C = AAT 1 2 3 4 5 6
1 2 1 1 0 1 0
2 1 2 0 1 1 0
3 1 0 2 0 2 0
4 0 1 0 2 1 0
5 1 1 2 1 3 0
6 0 0 0 0 0 0
• If A purchases an unknown product (say 5), can you say which other
user will most likely purchase the same product?
33