Statistical Inference for Networks Graduate Lectures. Hilary Term 2009 Prof. Gesine Reinert



Similar documents
General Network Analysis: Graph-theoretic. COMP572 Fall 2009

Complex Networks Analysis: Clustering Methods

Graph Theory and Networks in Biology

Graph models for the Web and the Internet. Elias Koutsoupias University of Athens and UCLA. Crete, July 2003

Big Data Analytics of Multi-Relationship Online Social Network Based on Multi-Subnet Composited Complex Network

USING SPECTRAL RADIUS RATIO FOR NODE DEGREE TO ANALYZE THE EVOLUTION OF SCALE- FREE NETWORKS AND SMALL-WORLD NETWORKS

Network/Graph Theory. What is a Network? What is network theory? Graph-based representations. Friendship Network. What makes a problem graph-like?

Metabolic Network Analysis

Graph theoretic approach to analyze amino acid network

Network Analysis. BCH 5101: Analysis of -Omics Data 1/34

Walk-Based Centrality and Communicability Measures for Network Analysis

Stationary random graphs on Z with prescribed iid degrees and finite mean connections

A scalable multilevel algorithm for graph clustering and community structure detection

A discussion of Statistical Mechanics of Complex Networks P. Part I

Recent Progress in Complex Network Analysis. Models of Random Intersection Graphs

Graphs over Time Densification Laws, Shrinking Diameters and Possible Explanations

Bioinformatics: Network Analysis

Social Media Mining. Graph Essentials

Discrete Mathematics & Mathematical Reasoning Chapter 10: Graphs

Practical Graph Mining with R. 5. Link Analysis

Protein Protein Interaction Networks

PUBLIC TRANSPORT SYSTEMS IN POLAND: FROM BIAŁYSTOK TO ZIELONA GÓRA BY BUS AND TRAM USING UNIVERSAL STATISTICS OF COMPLEX NETWORKS

Chapter 29 Scale-Free Network Topologies with Clustering Similar to Online Social Networks

The mathematics of networks

Random graphs and complex networks

The average distances in random graphs with given expected degrees

Introduction to Networks and Business Intelligence

Mining Social-Network Graphs

Social Media Mining. Network Measures

Healthcare Analytics. Aryya Gangopadhyay UMBC

DATA ANALYSIS II. Matrix Algorithms

Temporal Dynamics of Scale-Free Networks

Statistical and computational challenges in networks and cybersecurity

SHARP BOUNDS FOR THE SUM OF THE SQUARES OF THE DEGREES OF A GRAPH

Part 2: Community Detection

V. Adamchik 1. Graph Theory. Victor Adamchik. Fall of 2005

Mean Ramsey-Turán numbers

Dmitri Krioukov CAIDA/UCSD

GENERATING AN ASSORTATIVE NETWORK WITH A GIVEN DEGREE DISTRIBUTION

Cluster detection algorithm in neural networks

NETZCOPE - a tool to analyze and display complex R&D collaboration networks

1. Introduction Gene regulation Genomics and genome analyses Hidden markov model (HMM)

Introduced by Stuart Kauffman (ca. 1986) as a tunable family of fitness landscapes.

Degree distribution in random Apollonian networks structures

Scientific Collaboration Networks in China s System Engineering Subject

A mixture model for random graphs

USE OF GRAPH THEORY AND NETWORKS IN BIOLOGY

Understanding the dynamics and function of cellular networks

Course on Social Network Analysis Graphs and Networks

The Basics of Graphical Models

Graph Mining Techniques for Social Media Analysis

SAS Software to Fit the Generalized Linear Model

SPANNING CACTI FOR STRUCTURALLY CONTROLLABLE NETWORKS NGO THI TU ANH NATIONAL UNIVERSITY OF SINGAPORE

The Variability of P-Values. Summary

Distributed Computing over Communication Networks: Maximal Independent Set

Effects of node buffer and capacity on network traffic

An Empirical Study of Two MIS Algorithms

Exponential Random Graph Models for Social Network Analysis. Danny Wyatt 590AI March 6, 2009

Multivariate Normal Distribution

IE 680 Special Topics in Production Systems: Networks, Routing and Logistics*

Master s Theory Exam Spring 2006

PROBABILISTIC NETWORK ANALYSIS

! E6893 Big Data Analytics Lecture 10:! Linked Big Data Graph Computing (II)

Finding and counting given length cycles

Structural constraints in complex networks

136 CHAPTER 4. INDUCTION, GRAPHS AND TREES

The Structure of Growing Social Networks

Monte Carlo testing with Big Data

A Non-Linear Schema Theorem for Genetic Algorithms

How To Check For Differences In The One Way Anova

USE OF EIGENVALUES AND EIGENVECTORS TO ANALYZE BIPARTIVITY OF NETWORK GRAPHS

The Exponential Distribution

Institute of Actuaries of India Subject CT3 Probability and Mathematical Statistics

Equivalence Concepts for Social Networks

Service courses for graduate students in degree programs other than the MS or PhD programs in Biostatistics.

False Discovery Rates

Euler Paths and Euler Circuits

Random graphs with a given degree sequence

Course: Model, Learning, and Inference: Lecture 5

Distance Degree Sequences for Network Analysis

The Topology of Large-Scale Engineering Problem-Solving Networks

9.2 Summation Notation

Follow links for Class Use and other Permissions. For more information send to:

A Review And Evaluations Of Shortest Path Algorithms

Analysis of Algorithms, I

Social Networks and Social Media

HISTORICAL DEVELOPMENTS AND THEORETICAL APPROACHES IN SOCIOLOGY Vol. I - Social Network Analysis - Wouter de Nooy

BNG 202 Biomechanics Lab. Descriptive statistics and probability distributions I

Transcription:

Statistical Inference for Networks Graduate Lectures Hilary Term 2009 Prof. Gesine Reinert 1

Overview 1: Network summaries. What are networks? Some examples from social science and from biology. The need to summarise networks. Clustering coefficient, degree distribution, shortest path length, motifs, between-ness, second-order summaries. Roles in networks, derived from these summary statistics, and modules in networks. Directed and weighted networks. The choice of summary should depend on the research question. 2: Models of random networks. Models would provide further insight into the network structure. Classical Erdös-Renyi (Bernoulli) random graphs and their random mixtures, Watts-Strogatz small worlds and the modification by Newman, Barabasi-Albert scale-free networks, exponential random graph models. 2

3: Fitting a model: parametric methods. Deriving the distribution of summary statistics. Parametric tests based on the theoretical distribution of the summary statistics (only available for some of the models). 4: Statistical tests for model fit: nonparametric methods. Quantile-quantile plots and other visual methods. Monte-Carlo tests based on shuffling edges with the number of edges fixed, or fixing the node degree distribution, or fixing some other summary. The particular issue of testing for power-law dependence. Subsampling issues. Tests carried out on the same network are not independent. 3

Suggested reading 1. U. Alon: An Introduction to Systems Biology Design Principles of Biological Circuits. Chapman and Hall 2007. 2. S.N. Dorogovtsev and J.F.F. Mendes: Evolution of Networks. Oxford University Press 2003. 3. R. Durrett: Random Graph Dynamics. Cambridge University Press 2007. 4. W. de Nooy, A. Mrvar and V. Bagatelj. Exploratory Social Network Analysis with Pajek. Cambridge University Press 2005. 5. S. Wasserman and K. Faust: Social Network Analysis. Cambridge University Press 1994. 6. D. Watts: Small Worlds. Princeton University Press 1999. 4

Further reading: 1. L. da F. Costa, F.A. Rodrigues, P.R. Villas Boas, G. Travieso (2007). Characterization of complex networks: a survey of measurements. Advances in Physics 56, Issue 1 January 2007, 167-242. 2. J.-J. Daudin, F. Picard, S. Robin (2006). A mixture model for random graphs. Preprint. 3. O. Frank and D. Strauss (1986). Markov graphs. Journal of the American Statistical Association 81, 832-842. 4. K. Nowicky and T. Snijders (2001). Estimation and Prediction for Stochastic Blockstructures. Journal of the American Statistical Association 455, Vol. 96, pp. 1077-1087. 5. S. Milgram (1967). The small world problem. Psychology Today 2, 60 67. 5

6. A.D. Barbour and G. Reinert (2001). Small Worlds. Random Structures and algorithms 19, 54-74. 7. A.D. Barbour and G. Reinert (2006). Discrete small world networks. Electronic Journal of Probability 11, 12341283. 8. G. Barnard (1963). Contribution to the discussion of Bartlett s paper. J. Roy. Statist. Soc. B, 294. 9. F. Chung and L. Lu (2001). The diameter of sparse random graphs. Advances in Applied Math. 26, 257 279. 10. M. Dwass (1957). Modified randomization tests for nonparametric hypotheses. Ann. Math. Stat. 28, 181 187. A. Fronczak, P. Fronczak and Janusz A. Holyst (2003). Mean-field theory for clustering coefficients in Barabasi-Albert networks Phys. Rev. E 68, 046126. 11. A. Fronczak, P. Fronczak, Janusz A. Holyst (2004). Average path length in random networks Phys. Rev. E 70, 056110. 6

12. P. Hall and D.M. Titterington (1989). The effect of simulation order on level accuracy and power of Monte Carlo tests. J. Roy. Statist. Soc. B, 459. 13. K. Lin (2007). Motif counts, clustering coefficients, and vertex degrees in models of random networks. D.Phil. dissertation, Oxford. 14. F. Marriott (1979). Barnard s Monte Carlo tests: how many simulations? Appl. Statist. 28, 75 77. 15. M.E.J. Newman (2005). Power laws, Pareto distributions and Zipf s law. Contemporary Physics 46, 323351. 16. M. P. H. Stumpf, C.Wiuf and R. M. May (2005). Subnets of scale-free networks are not scale-free: Sampling properties of networks. Proc Natl Acad Sci U S A. 2005 March 22; 102(12): 4221-4224. 7

17. C. J. Anderson, S. Wasserman, B.Crouch (1999). A p* primer: logit models for social networks. Social Networks 21, 37 66. 18. P. Chen, C. Deane, G. Reinert (2007) A statistical approach using network structure in the prediction of protein characteristics. Bioinformatics, Vol 23, 17, 2314-2321. 19. P. Chen, C. Deane, G. Reinert (2008) Predicting and validating protein interactions using network structure. Submitted. 20. J-D. J. Han, N. Bertin, T. Hao, D. S. Goldberg, G.F. Berriz, L. V. Zhang, D. Dupuy,A. J. M Walhout, M. E. Cusick, F. P. Roth, and M. Vidal (2004). Evidence for dynamically organized modularity in the yeast protein-protein interaction network. Nature, 430, 8893. 21. Handcock, M.S., Raftery, A.E., and Tantrum, J.M. 2007. Model-based clustering for social networks. Journal of the Royal Statistical Society. 170:122. 8

22. P. W. Holland, S. Leinhardt (1981). An exponential family of probability distributions for directed graphs (with discussion). Journal of the American Statistical Association, 76, 33-65. 23. F. Kepes ed. (2007). Biological Networks. Complex Systems and Interdisciplinary Science Vol. 3. World Scientific, Singapore. 24. Newman, M.E.J. and Girvan, M. 2004. Finding and evaluating community structure in networks. Physical Review E. 69 026113. 25. G. Palla, A.-L. Barabasi, T. Vicsek (2007). Quantifying social group evolution. Nature 446, 664 667. 26. F. Picard, J.-J. Daudin, M. Koskas, S. Schbath, S. Robin (2008). Assessing the exceptionality of network motifs. Journal of Computational Biology 15, 1 20. 27. E. Ravasz, A. L. Somera, D. A. Mongru, Z. N. Oltvai, A.-L. 9

Barabsi (2002). Hierarchical Organization of Modularity in Metabolic Networks. Science 297, 1551. 28. G.L. Robins, T.A.B. Snijders, P. Wang, M. Handcock, P. Pattison (2007). Recent developments in exponential random graph (p*) models for social networks. Social Networks 29, 192-215 (2007). http://www.stats.ox.ac.uk/ snijders/siena/robinssnijderswanghandcockpattison2007.pdf 29. G.L. Robins, P. Pattison, Y. Kalisha, D. Lushera (2007). An introduction to exponential random graph (p*) models for social networks. Social Networks 29, 173-191. 10

1 Network summaries 1.1 What are networks? Networks are just graphs. Often one would think of a network as a connected graph, but not always. In these lectures we shall use network and graph interchangeably. Here are some examples of networks (graphs). 11

12 13 4 9 6 1 2 14 8 5 11 3 10 7 15 0 12

Marriage relations between Florentine families. 8: Medici 14: Strozzi 13

Yeast: A plot of a connected subset of Yeast protein interactions. 0123456 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 14

Networks arise in a multitude of contexts, such as - metabolic networks - protein-protein interaction networks - spread of epidemics - neural network of C. elegans - social networks - collaboration networks (Erdös numbers... ) - Membership of management boards - World Wide Web - power grid of the Western US 15

The study of networks has a long tradition in social science, where it is called Social Network Analysis; see also Krista Gile s talks. The networks under consideration are typically fairly small. In contrast, starting at around 1997, statistical physicists have turned their attention to large-scale properties of networks. Our lectures will try to get a glimpse on both approaches. 16

Research questions include How do these networks work? Where could we best manipulate a network in order to prevent, say, tumor growth? How didbiological networks evolve? Could mutation affect whole parts of the network at once? How similar are networks? If we study some organisms very well, how much does that tell us about other organisms? How are networks interlinked? What are the building principles of these networks? How is resilience achieved, and how is flexibility achieved? Could we learn from real-life networks to build man-made efficient networks? 17

From a statistical viewpoint, questions include How to best describe networks? How to infer characteristics of nodes in the network? How to infer missing links, and how to check whether existing links are not false positives How to compare networks from related organisms? How to predict functions from networks? How to find relevant sub-structures of a network? Statistical inference relies on the assumption that there is some randomness in the data. Before we turn our attention to modelling such randomness, let s look at how to describe networks, or graphs, in general. 18

1.2 What are graphs? A graph consists of nodes (sometimes also called vertices) and edges (sometimes also called links). We typically think of the nodes as actors, or proteins, or genes, or metabolites, and we think of an edge as an interaction between the two nodes at either end of the edge. Sometimes nodes may possess characteristics which are of interest (such as structure of a protein, or function of a protein). Edges may possess different weights, depending on the strength of the interaction. For now we just assume that all edges have the same weight, which we set as 1. 19

Mathematically, we abbreviate a graph G as G = (V, E), where V is the set of nodes and E is the set of edges. We use the notation S to denote the number of elements in the set S. Then V is the number of nodes, and E is the number of edges in the graph G. If u and v are two nodes and there is an edge from u to v, then we write that (u, v) E, and we say that v is a neighbour of u. If both endpoints of an edge are the same, then the edge is a loop. For now we exclude self-loops, as well as multiple edges between two nodes. Edges may be directed or undirected. A directed graph, or digraph, is a graph where all edges are directed. The underlying graph of a digraph is the graph that results from turning all directed edges into undirected edges. Here we shall mainly deal with undirected graphs. 20

Two nodes are called adjacent if they are joined by an edge. A graph can be described by its adjacency matrix A = (a u,v ). This is a square V V matrix. Each entry is either 0 or 1; a u,v = 1 if and only if (u, v) E. As we assume that there are no self-loops, all elements on the diagonal of the adjacency matrix are 0. If the edges of the graph are undirected, then the adjacency matrix will be symmetric. 21

The adjacency matrix entries tell us for every node v which nodes are within distance 1 of v. If we take the matrix produce A 2 = A A, the entry for (u, v) with u v would be a (2) (u, v) = w V a u,w a w,v. If a (2) (u, v) 0 then u can be reached from v within two steps; u is within distance 2 of v. Higher powers can be interpreted similarly. A complete graph is a graph such that every pair of nodes is joined by an edge. The adjacency matrix has entry 0 on the diagonal, and 1 everywhere else. 22

A bipartite graph is a graph where the node set V is decomposed into two disjoint subsets, U and W, say, such that there are no edges between any two nodes in U, and also there are no edges between any two nodes in W ; all edges have one endpoint in U and the other endpoint in W. An example is a network of co-authorship and articles; U could be the set of authors, W the set of articles, and an author is connected to an article by an edge if the author is a co-author of that article. The adjacency matrix A can then be arranged such that it is of the form 0 A 1 A 2 0. 23

1.3 Network summaries The degree deg(v) of a node v is the number of edges which involve v as an endpoint. The degree is easily calculated from the adjacency matrix A; deg(v) = u a u,v. The average degree of a graph is then the average of its node degrees. (For directed graphs we would define the in-degree as the number of edges directed at the node, and the out-degree as the number of edges that go out from that node.) 24

The clustering coefficient of a node v is, intuitively, the proportion of its friends who are friends themselves. Mathematically, it is the proportion of neighbours of v which are neighbours themselves. In adjacency matrix notation, u,w V C(v) = a u,va w,v a u,w u,w V a. u,va w,v The (average) clustering coefficient is defined as C = 1 V v V C(v). 25

Note that u,w V a u,v a w,v a u,w is the number of triangles involving v in the graph. Similarly, a u,v a w,v u,w V is the number of 2-stars centred around v in the graph. The clustering coefficient is thus the ratio between the number of triangles and the number of 2-stars. The clustering coefficient describes how locally dense a graph is. Sometimes the clustering coefficient is also called the transitivity. The clustering coefficient in the Florentine family example is 0.1914894; the average clustering coefficient in the Yeast data is 0.1023149. 26

In a graph a path from node v 0 to node v n is an alternating sequence of nodes and edges, (v 0, e 1, v 1, e 2,..., v n 1, e n, v n ) such that the endpoints of e i are v i 1 and v i, for i = 1,..., n. A graph is called connected if there is a walk between any pair of nodes in the graph, otherwise it is called disconnected. The distance l(u, v) between two nodes u and v is the length of the shortest path joining them. This path does not have to be unique. We can calculate the distance l(u, v) from the adjacency matrix A as the smallest power p of A such that the (u, v)-element of A p is not zero. 27

In a connected graph, the average shortest path length is defined as l = 1 V ( V 1) u v V l(u, v). The average shortest path length describes how globally connected a graph is. Example: H. Pylori and Yeast protein interaction network comparison: n l C H.Pylori 686 4.137637 0.016 Yeast 2361 4.376182 0.1023149 28

Node degree, clustering coefficient, and shortest path length are the most common summaries of networks. Other popular summaries, to name but a few, are: the between-ness of an edge counts the proportion of shortest paths between any two nodes which pass through this edge. Similarly, the between-ness of a node is the proportion of shortest paths between any two nodes which pass through this node. The connectivity of a connected graph is the smallest number of edges whose removal results in a disconnected graph. 29

In addition to considering these general summary statistics, it has proven fruitful to describe networks in terms of motifs; these are building- block patterns of networks such as a feed-forward loop, see the book by Alon. Here we think of a motif as a subgraph with a fixed number of nodes and with a given topology. In biological networks, it turns out that motifs seem to be conserved across species. They seem to reflect functional units which combine to regulate the cellular behaviour as a whole. 30

The decomposition of communities in networks, small subgraphs which are highly connected but not so highly connected to the remaining graph, can reveal some structure of the network. Identifying roles in networks singles out specific nodes with special properties, such as hub nodes, which are nodes with high degree. 31

Summaries based on spectral properties of the adjacency matrix. If λ i are the eigenvalues of the adjacency matrix A, then the spectral density of the graph is defined as ρ(λ) = 1 n δ(λ λ i ), i where δ(x) is the delta function. For Bernoulli random graphs, if p is constant as n, then ρ(λ) converges to a semicircle. 32

The eigenvalues can be used to compute the kth moments, M k = 1 (λ i ) k = 1 a i1,i n n 2 a i2,i 3 a ik 1,i k. i i 1,i 2,...,i k The quantity nm k is the number of paths returning to the same node in the graph, passing through k edges, where these paths may contain nodes that were already visited. Because in a tree-like graph a return path is only possible going back through already visited nodes, the presence of odd moments is an indicator for the presence of cycles in the graph. 33

The subgraph centrality Sc i = k=0 (A k ) i,i k! measures the centrality of a node based on the number of subgraphs in which the node takes part. It can be computed as Sc i = n v j (i) 2 e λ i, j=1 where v j (i) is the ith element of the jth eigenvector. 34

Entropy-type summaries The structure of a network is related to its reliability and speed of information propagation. If a random walk starts on node i going to node j, the probability that it goes through a given shortest path π(i, j) between these vertices is P(π(i, j)) = 1 d(i) b N (π(i,j)) 1 d(b) 1, where d(i) is the degree of node i, and N (π(i, j)) is the set of nodes in the path π(i, j) excluding i and j. The search information is the total information needed to identify one of all the shortest paths between i and j, S(i, j) = log 2 P(π(i, j)). π(i,j) 35

The above network summaries provide an initial go at networks. Specific networks may require specific concepts. In protein interaction networks, for example, there is a difference whether a protein can interact with two other proteins simultaneously (party hub) or sequentially (date hub). In addition, the research question may suggest other summaries. For example, in fungal networks, there are hardly any triangles, so the clustering coefficient does not make much sense for these networks. 36

Excursion: Milgram and the small world effect. In 1967 the American sociologist Milgram reported a series of experiments of the following type. A number of people from a remote US state (Nebraska, say) are asked to have a letter (or package) delivered to a certain person in Boston, Massachusetts (such as the wife of a divinity student). The catch is that the letter can only be sent to someone whom the current holder knew on a first-name basis. Milgram kept track of how many intermediaries were required until the letters arrived; he reported a median of six; see for example http : //www.uaf.edu/northern/big w orld.html. This made him coin the notion of six degrees of separation, often interpreted as everyone being six handshakes away from the President. While the experiments were somewhat flawed (in the first experiment only 3 letters arrived), the concept of six degrees of separation has stuck. 37

2 Models of random networks In order to judge whether a network summary is unusual or whether a motif is frequent, there is an underlying assumption of randomness in the network. 38

Network data are subject to various errors, which can create randomness, such as There may be missing edges in the network. Perhaps a node was absent (social network) or has not been studied yet (protein interaction network). Some edges may be reported to be present, but that recording is a mistake. Depending on the method of determining protein interactions, the number of such false positive interactions can be substantial, of around 1/3 of all interactions. There may be transcription errors in the data. There may be bias in the data, some part of the network may have received higher attention than another part of the network. 39

Often network data are snapshots in time, while the network might undergo dynamical changes. In order to understand mechanisms which could explain the formation of networks, mathematical models have been suggested. 40

2.1 Bernoulli (Erdös-Renyi) random graphs The most standard random graph model is that of Erdös and Renyi (1959). The (finite) node set V is given, say V = n, and an edge between two nodes is present with probability p, independently of all other edges. As there are ( ) n = 2 n(n 1) 2 potential edges, the expected number of edges is then ( ) n p. 2 Each node has n 1 potential neighbours, and each of these n 1 edges is present with probability p, and so the expected degree of a node is (n 1)p. As the expected degree of a node is the same for all nodes, the average degree is (n 1)p. 41

Similarly, the average number of triangles in the graph is ( ) n p 3 n(n 1)(n 2) = p 3, 3 6 and the average number of 2-stars is ( ) n p 2. 3 Thus, with a bit of handwaving, we would expect an average clustering coefficient of about ( n ) 3 p 3 ( n 3) = p. p 2 42

In a Bernoulli random graphs, your friends are no more likely to be friends themselves than would be a two complete strangers. This model is clearly not a good one for social networks. Below is an example from scientific collaboration networks (N. Boccara, Modeling Complex Systems, Springer 2004, p.283). We can estimate p as the fraction of average node degree and n 1; this estimate would also be an estimate of the clustering coefficient in a Bernoulli random graph. 43

Network n ave degree C C Bernoulli Los Alamos archive 52,909 9.7 0.43 0.00018 MEDLINE 1,520,251 18.1 0.066 0.000011 NCSTRL 11,994 3.59 0.496 0.0003 Also in real-world graphs often the shortest path length is much shorter than expected from a Bernoulli random graph with the same average node degree. The phenomenon of short paths, often coupled with high clustering coefficient, is called the small world phenomenon. Remember the Milgram experiments! 44

2.2 The Watts-Strogatz model Watts and Strogatz (1998) published a ground-breaking paper with a new model for small worlds; the version currently most used is as follows. Arrange the n nodes of V on a lattice. Then hard-wire each node to its k nearest neighbours on each side on the lattice, where k is small. Thus there are nk edges in this hard-wired lattice. Now introduce random shortcuts between nodes which are not hard-wired; the shortcuts are chosen independently, all with the same probability. 45

46

If there are no shortcuts, then the average distance between two randomly chosen nodes is of the order n, the number of nodes. But as soon as there are just a few shortcuts, then the average distance between two randomly chosen nodes has an expectation of order log n. Thinking of an epidemic on a graph - just a few shortcuts dramatically increase the speed at which the disease is spread. It is possible to approximate the node degree distribution, the clustering coefficient, and the shortest path length reasonably well mathematically; we may come back to these approximations later. 47

While the Watts-Strogatz model is able to replicate a wide range of clustering coefficient and shortest path length simultaneously, it falls short of producing the observed types of node degree distributions. It is often observed that nodes tend to attach to popular nodes; popularity is attractive. 48

2.3 The Barabasi-Albert model In 1999, Barabasi and Albert noticed that the actor collaboration graph adn the World Wide Web had degree distributions that were of the type P rob(degree = k) Ck γ for k. Such behaviour is called power-law behaviour; the constant γ is called the power-law exponent. Subsequently a number of networks have been identified which show this type of behaviour. They are also called scale-free random graphs. To explain this behaviour, Barabasi and Albert introduced the preferential attachment model for network growth. 49

Suppose that the process starts at time 1 with 2 nodes linked by m (parallel) edges. At every time t 2 we add a new node with m edges that link the new node to nodes already present in the network. We assume that the probability π i that the new node will be connected to a node i depends on the degree deg(i) of i so that π i = deg(i) j deg(j). To be precise, when we add a new node we will add edges one at a time, with the second and subsequent edges doing preferential attachment using the updated degrees. 50

This model has indeed the property that the degree distribution is approximately power law with exponent γ = 3. Other exponents can be achieved by varying the probability for choosing a given node. Unfortunately the above construction will not result in any triangles at all. It is possible to modify the construction, adding more than one edge at a time, so that any distribution of triangles can be achieved. 51

2.4 Erdös-Renyi Mixture Graphs An intermediate model with not quite so many degrees of freedom is given by the Erdös-Renyi mixture model, also known as latent block models in social science (Nowicky and Snijders (2001)). Here we assume that nodes are of different types, say, there are L different types. Then edges are constructed independently, such that the probability for an edge varies only depending on the type of the nodes at the endpoints of the edge. Robin et al have shown that this model is very flexible and is able to fit many real-world networks reasonably well. It does not produce a power-law degree distribution however. 52

2.5 Exponential random graph (p ) models Networks have been analysed for ages in the social science literature, see for example the book by Wasserman and Faust. Here usually digraphs are studied, and typical research questions are Is there a tendency in friendship towards transitivity; are friends of friends my friends? What is the role of explanatory variables such as income on the position in the network? What is the role of friendship in creating behaviour (such as smoking)? Is there a hierarchy in teh network? Is the network influenced by other networks for which the membership overlaps? 53

Exponential random graph (p ) models model the whole adjacency matrix of a graph simultaneously, making it easy to incorporate dependence. Suppose that X is our random adjacency matrix. The general form of the model is P rob(x = x) = 1 κ exp{ B λ B z B (x)}, where the summation is over all subsets B of the set of potential edges, z B (x) = (i,j) B x i,j is the network statistic corresponding to the subset B, κ is a normalising quantity so that the probabilities sum to 1, and the parameter λ B = 0 for all x unless all the the variables in B are mutually dependent. 54

The simplest such model is that the probability of any edge is constant across all possible edges, i.e. the Bernoulli graph, for twhich P rob(x = x) = 1 κ exp{λl(x)}, where L(x) is the number of edges in the network x and λ is a parameter. 55

For social networks, Frank and Strauss (1986) introduced Markov dependence, whereby two possible edges are assumed to be conditionally dependent if they share a node. For non-directed networks, the resulting model has parameters relating only to the configurations stars of various types, and triangles. If the number L(x) of edges, the number S 2 (x) of two-stars, the number S 3 (x) of three-stars, and the number T (x) of triangles are included, then the model reads P rob(x = x) = 1 κ exp{λ 1L(x) + λ 2 S 2 (x) + λ 3 S 3 (x) + λ 4 T (x)}. By setting the parameters to particular values and then simulating the distribution, we can examine global properties of the network. 56

2.6 Specific models for specific networks Depending on the research question, it may make sense to build a specific network model. For example, a gene duplication model has been suggested which would result in a power-law like node degree distribution. For metabolic pathways, a number of Markov models have been introduced. When thinking of flows through networks, it may be a good idea to use weighted networks; the weights could themselves be random. 57

3 Fitting a model: parametric methods Bernoulli (Erdös-Renyi) random graphs In the random graph model of Erdös and Renyi (1959), the (finite) node set V is given, say V = n. We denote the set of all potential edges by E; thus E = ( n 2). An edge between two nodes is present with probability p, independently of all other edges. Here p is an unknown parameter. In classical (frequentist) statistics we often estimate unknown parameters via the method of maximum likelihood. 58

Example: Bernoulli random graphs. Our data is the network we see. We describe the data using the adjacency matrix, denote it by x here because it is the realisation of a random adjacency matrix X. Recall that x u,v = 1 if and only if there is an edge between u and v. The likelihood of p being the true value of the edge probability if we see x is ( ) p L(p; x) = (1 p) E (i,j) E x i,j. 1 p If t = (i,j) E x i,j is the total number of edges in the random graph, then ˆp = t E is our maximum-likelihood estimator. 59

Maximum-likelihood estimation also works well in Erdös-Renyi Mixture graphs when the number of types is known, and it works well in Watts-Strogatz small world networks when the number k of nearest neighbours we connect to is known. When the number of types, or the number of nearest neighbours, is unknown, then things become messy. In Barabasi-Albert models, the parameter would be the power exponent for the node degree, as occurring in the probability for an incoming node to connect to some node i already in the network. 60

In exponential random graphs, unless the network is very small, maximum-likelihood estimation quickly becomes numerically unfeasible. Even in a simple model like P rob(x = x) = 1 κ exp{λ 1L(x) + λ 2 S 2 (x) + λ 3 S 3 (x) + λ 4 T (x)} the calculation of the normalising constant κ becomes numerically impossible very quickly. 61

3.1 Markov Chain Monte Carlo estimation A Markov chain is a stochastic process where the state at time n only depends on the state at time n 1, plus some independent randomness. It is irreducible if any set of states can be reached from any other state in a finite number of moves, and it is reversible if you cannot tell whether it is running forwards in time or backwards in time. A distribution is stationary for the Markov chain if, when you start in the stationary distribution, one step after you cannot tell whether you made any step or not; the distribution of the chain looks just the same. If a Markov chain is irreducible and reversible, then it will have a unique stationary distribution, and no matter in which state you start the chain, it will eventually converge to this stationary distribution. 62

We make use of this fact by looking at our target distribution, such as the distribution for X in an exponential random graph model, as the stationary distribution of a Markov chain. This Markov chain lives on graphs, and moves are adding or deleting edges, as well as adding types or reducing types. Finding suitable Markov chains is an active area of research. The ergm package has MCMC implemented for parameter estimation. We need to be aware that there is no guarantee that the Markov chain has reached its stationary distribution. Also, if the stationary distribution is not unique, then the results can be misleading. Unfortunately in exponential random graph models it is known that in some small parameter regions the stationary distribution is not unique. 63

3.2 Assessing the model fit Suppose that we have estimated our parameters in our model of interest. We can now use this model to see whether it does actually fit the data. To that purpose we study the (asymptotic) distributions of our summary statistics node degree, clustering coefficient, and shortest path length. Then we see whether our observed values are plausible under the estimated model. 64

3.3 The distribution of summary statistics in Bernoulli random graphs In a Bernoulli random graph on n nodes, with edge probability p, the network summaries are pretty well understood. 3.3.1 The degree of a random node Pick a node v, and denote its degree by D(v), say. The degree is calculated as the number of neighbours of this node. Each of the other (n 1) nodes is connected to our node v with probability p, independently of all other nodes. Thus the distribution of D(v) is Binomial with parameters n and p, for each node v. 65

Typically we look at relatively sparse graphs, and so a Poisson approximation applies. If X denotes the random adjacency matrix, then, in distribution, D(v) = X u,v P oisson((n 1)p). u:u v Note that the node degrees in a graph are not independent. So D(v) does not stand for the average node degree. 66

How about the average degree of a node? Denote it by D. Note that the average does not only take integer values, so would certainly not be Poisson distributed. But D = 1 n n D(v) = 2 n v=1 n X u,v, v=1 u<v noting that each edge gets counted twice. As the X u,v are independent, we can use a Poisson approximation again, giving that n ( ) n(n 1) X u,v P oisson p 2 v=1 u<v and so, in distribution, where Z P oisson ( ) n(n 1) 2 p. D 2 n Z, 67

3.3.2 The clustering coefficient of a random node Here it gets a little tricky already. Recall that the clustering coefficient of a node v is, u,w V C(v) = X u,vx w,v X u,w u,w V X. u,vx w,v The ratio of two random sums is not easy to evaluate. If we just look at X u,v X w,v X u,w u,w V then we see that we have a sum of dependent random variables. 68

Most 3-tuples (u, w, v) and (r, s, t), though, will not share an index, and hence X u,v X w,v X u,w and X r,s X s,t X r,t will be independent. The dependence among the random variables overall is hence weak, so that a Poisson approximation applies. As E ( ) n X u,v X w,v X u,w = p 3, 3 u,w,v V we obtain that, in distribution, u,w.v V X u,v X w,v X u,w P oisson (( ) n )p 3. 3 Similarly, E u,w V X u,v X w,v = ( ) n p 2. 2 69

K. Lin (2007) showed that, for the average clustering coefficient C = 1 n it is also true that, in distribution, C where Z P oisson (( n 3) p 3 ). C(v) v 1 n ( ) n Z, 2 p 2 70

Example. In the Florentine family data, we observe a total number of 20 edges, an average node degree of 2.5, and an average clustering coefficient of 0.1914894, with 16 nodes in total. Under the null hypothesis that the data come from a Bernoulli random graph we estimate ˆp = ( 20 16 ) = 20 2 16 15 = 1 6, 2 and the average node degree would be D 1 8 Z, where Z P oisson(20). The probability under the null hypothesis that D 2.5 would then be P (Z 2.5 8) = P (Z 20) 0.55, so no reason to reject the null hypothesis. 71

3.3.3 Shortest paths: Connectivity in Bernoulli random graph Erdös and Renyi (1960) showed the following phase transition for the connectedness of a Bernoulli random graph. If p = p(n) = log n n + c n + 0 ( 1 n) then the probability that a Bernoulli graph, denoted by G(n, p) on n nodes with edge probability p is connected converges to e e c. 72

The diameter of a graph is the maximum diameter of its connected components; the diameter of a connected component is the longest shortest path length in that component. Chung and Lu (2001) showed that, if np 1 then, asympotically, the ratio between the diameter and log n log(np) is at least 1, and remains bounded above as n. If np then the diameter of the graph is (1 + o(1)) log n log(np). If np log n, then the diameter is concentrated on at most two values. In the Physics literature, the value log n log(np) is used for the average shortest path length in a Bernoulli random graph. This has hence to be taken with a lot of grains of salt. 73

While we have some idea about how the diameter (and, relatedly, the shortest path length) behaves, it is an inconvenient statistics for Bernoulli random graphs, because the graph need not be connected. 74

3.4 The distribution of summary statistics in Watts-Strogatz small worlds Recall that in this model we arrange the n nodes of V on a lattice. Then hard-wire each node to its k nearest neighbours on each side on the lattice, where k is small. Thus there are nk edges in this hard-wired lattice. Now introduce random shortcuts between nodes which are not hard-wired; the shortcuts are chosen independently, all with the same probability φ. Thus the shortcuts behave like a Bernoulli random graph, but the graph will necessarily be connected. The degree D(v) of a node v in the Watts-Strogatz small world is hence distributed as D(v) = 2k + Binomial(n 2k 1, φ), taking the fixed lattice into account. Again we can derive a Poisson approximation when p is small; see K.Lin (2007) for the details. 75

For the clustering coefficient there is a problem - triangles in the graph may now appear in clusters. Each shortcut between nodes u and v which are a distance of k + a 2k apart on the circle creates k a 1 triangles automatically. Thus a Poisson approximation will not be suitable; instead we use a compound Poisson distribution. A compound Poisson distribution arises as the distribution of a Poisson number of clusters, where the cluster sizes are independent and have some distribution themselves. In general there is no closed form for a compound Poisson distribution. 76

77

The compound Poisson distribution also has to be used when approximating the number of 4-cycles in the graph, or the number of other small subgraphs which have the clumping property. It is also worth noting that when counting the joint distribution of the number of triangles and the number of 4-cycles, these counts are not independent, not even in the limit; a bivariate compound Poisson approximation with dependent components is required. See Lin (2007) for details. 78

3.4.1 The shortest path length Let D denote shortest distance between two randomly chosen points, and abbreviate ρ = 2kφ. Then (Barbour + Reinert) show that uniformly in x 1 4 log(nρ), P ( D > 1 ρ = 0 ( 1 2 log(nρ) + x )) e y ( 1 + e 2x y dy + O (nρ) 1 5 log 2 (nρ) if the probability of shortcuts is small. If the probability of shortcuts is relatively large, then D will be concentrated on one or two points. Note that D is the shortest distance between two randomly chosen points, not the average shortest path. Again the difference can be considerable (Computer exercise). ) 79

Dependent sampling Our data are usually just one graph, and we calculate all shortest paths. But there is much overlap between shortest paths possible, creating dependence 80

Simulation: n = 500, k = 1, φ = 0.01 81

Simulation: dependent vs independent We simulate 100 replicas, and calculate the average shortest path length in each network. We compare this distribution to the theoretical approximate distribution; we carry out 100 chi-square tests: n k φ E.no mean p-value max p-value 300 1 0.01 3 1.74 E-09 8.97 E-08 0.167 50 0.1978 0.8913 2 0.01 6 0 0 1000 1 0.003 3 1.65E-13 3.30 E-12 0.05 50 0.0101 0.1124 2 0.03 60 0.0146 0.2840 82

Thus the two statistics are close if the expected number E.no of shortcuts is large (or very small); otherwise they are significantly different. 83

3.5 The distribution of summary statistics in Barabasi-Albert models The node degree distribution is given by the model directly, as that is how it is designed. The clustering coefficient depends highly on the chosen model. In the original Barabasi-Albert model, when only one new edge is created at any single time, there will be no triangles (beyond those from the initial graph). The model can be extended to match any clustering coefficient, but even if only two edges are attached at the same time, the distribution of the number of the clustering coefficient is unknown to date. 84

The expected value, however, can be approximated. Fronczak et al. (2003) studied the models where the network starts to grwo from an initial cluster of m fully connected nodes. Each new node that is added to the network created m edges which connect it to previously added nodes. The probability of a new edge to be connected to a node v is proportional to the degree d(v) of this node. If both the number of nodes, n, and m are large, then the expected average clustering coefficient is EC = m 1 8 (log n) 2. n 85

The average pathlengh l increases approximately logarithmically with network size. If γ = 0.5772 denotes the Euler constant, then Fronczak et al. (2004) show for the mean average shortest path length that El log n log(m/2) 1 γ log log n + log(m/2) The asymptotic distribution is not understood. + 3 2. 86

3.6 The distribution of summary statistics in exponential random graph models The distribution of the node degree, clustering coefficient, and the shortest path length is poorly studied in these models. One reason is that these models are designed to predict missing edges, and to infer characteristics of nodes, but their topology itself has not often been of interest. The summary statistics appearing in the model try to push the random networks towards certain behaviour with respect to these statistics, depending on the sign and the size of their factors θ. 87

When only the average node degree and the clustering coefficient are included in the model, then a strange phenomenon happens. For many combinations of parameter values the model produces networks that are either full (every edge exists) or empty (no edge exists) with probability close to 1. Even for parameters which do not produce this phenomenon, the distribution of networks produced by the model is often bimodal: one mode is sparsely connected and has a high number of triangles, while the other mode is densely connected but with a low number of triangles. Again: active research. 88

4 Statistical tests for model fit: nonparametric methods What if we do not have a suitable test statistic for which we know the distribution? We need some handle on the distribution, so here we assume that we can simulate random samples from our null distribution. There are a number of methods available. It is often a good idea to use plots to visually assess the fit, first via a quantile-quantile plot. Then what? 89

4.1 Monte-Carlo tests The Monte Carlo test, attributed to Dwass (1957) and Barnard (1963), is an exact procedure of virtually universal application and correspondingly widely used. Suppose that we would like to base our test on the statistic T 0. We only need to be able to simulate a random sample T 01, T 02,... from the distribution, call it F 0, determined by the null hypothesis. We assume that F 0 is continuous, and, without loss of generality, that we reject the null hypothesis H 0 for large values of T 0. Then, provided that α = m n+1 is rational, we can proceed as follows. 90

1. Observe the actual value t for T 0, calculated from the data 2. Simulate a random sample of size n from F 0 3. Order the set {t, t 01,..., t 0n } 4. Reject H 0 if the rank of t in this set (in decreasing order) is m. The basis of this test is that, under H 0, the random variable T has the same distribution as the remainder of the set and so, by symmetry, P(t is among the largest m values ) = m n + 1. 91

The procedure is exact however small n might be; increasing n increases the power of the test. The question of how large n should be is discussed by Marriott (1979), see also Hall and Titterington (1989). An alternative view of the procedure is to count the number M of simulated values > t. Then ˆP = M n estimates the true significance level P achieved by the data, i.e. P = P(T 0 > t H 0 ). In discrete data, we will typically observe ties. We can break ties randomly, then the above procedure will still be valid. Unfortunately this test does not lead directly to confidence intervals. 92

For random graphs, Monte Carlo tests often use shuffling edges with the number of edges fixed, or fixing the node degree distribution, or fixing some other summary. Suppose we want to see whether our observed clustering coefficient is unusual for the type of network we would like to consider. Then we may draw many networks uniformly at random from all networks having the same node degree sequence, say. We count how often a clustering coefficient at least as extreme as ours occurs, and we use that to test the hypothesis. In practice these types of test are the most used tests in network analysis. They are called conditional uniform graph tests. 93

Some caveats: In Bernoulli random graphs, the number of edges asymptotically determines the number of triangles when the number of edges is moderately large. Thus conditioning on the number of edges (or the node degrees, which determine the number of edges) gives degenerate results. More generally, we have seen that node degrees and clustering coefficient (and other subgraph counts) are not independent, nor are they independent of the shortest path length. By fixing one summary we may not know exactly what we are testing against. Drawing uniformly at random from complex networks is not as easy as it sounds. Algorithms may not explore the whole data set. 94

Drawing uniformly at random, conditional on some summaries being fixed, is related to sampling from exponential random graphs. We have seen already that in exponential random graphs there may be more than one stationary distribution for the Markov chain Monte Carlo algorithm; this algorithm is similar to the one used for drawing at random, and so we may have to expect similar phenomena. 95

4.2 Scale-free networks Barabasi and Albert introduced networks such that the distribution of node degrees the type P rob(degree = k) Ck γ for k. Such behaviour is called power-law behaviour; the constant γ is called the power-law exponent. The networks are also called scale-free: If α > 0 is a constant, then P rob(degree = αk) C(αk) γ C k γ, where C is just a new constant. That is, scaling the argument in the distribution changes the constant of proportionality as a function of the scale change, but preserves the shape of the distribution itself. 96

If we take logarithms on both sides: log P rob(degree = k) log C γ log k log P rob(degree = αk) log C γ log α γ log k; scaling the argument results in a linear shift of the log probabilities only. This equation also leads to the suggestion to plot the log relf req(degree = αk) of the empirical relative degree frequencies against log k. Such a plot is called a log-log plot. If the model is correct, then we should see a straight line; the slope would be our estimate of γ. 97

Example: Yeast data. 98

log P(k) -8-7 -6-5 -4-3 -2 0 1 2 3 4 log k log P(greater than k) -8-6 -4-2 0 1 2 3 4 log k 99

These plots have a lot of noise in the tails. As an alternative, Newman (2005) suggests to plot the log of the empirical cumulative distribution function instead, or, equivalently, our estimate for log P rob(degree k). If the model is correct, then one can calculate that log P rob(degree k) C (γ 1) log k. Thus a log-log plot should again give a straight line, but with a shallower slope. The tails are somewhat less noisy in this plot. 100

In both cases, the slope is estimated by least-squares regression: for our observations, y(k) (which could be log probabilities or log cumulative probabilities, for example) we find the line a + bk such that (y(k) a bk) 2 is as small as possible. 101

As a measure of fit, the sample correlation R 2 is computed. For general observations y(k) and x(k), for k = 0, 1,..., n, with averages ȳ and x, it is defined as k (x(k) x)(y(k) ȳ) R = ( k (x(k) x)2 )( k (y(k) ȳ)2 ). It measures the strength of the linear relationship. In linear regression, R 2 > 0.9 would be rather impressive. However, the rule of thumb for log-log plots is that 1. R 2 > 0.99 2. The observed data (degrees) should cover at least 3 orders of magnitude. Examples include the World Wide Web at some stage, when it had around 10 9 nodes. The criteria are not often matched. 102

A final issue for scale-free networks: It has been shown (Stumpf et al. (2005) that when the underlying real network is scale-free, then a subsample on fewer nodes from the network will not be scale-free. Thus if our subsample looks scale-free, the underlying real network will not be scale-free. In biological network analysis, is is debated how useful the concept of scale-free behaviour is, as many biological networks contain relatively few nodes. 103

For Bernoulli random graphs we have a reasonable grasp on the distribution of our network summaries, we can use maximum-likelihood estimation and we can use the distribution of the summaries for testing hypotheses. For Watts-Strogatz small worlds some results are available. A main observation is that, in contrast to Bernoulli random graphs, even for counting triangles a compound Poisson approximation is needed, rather than a Poisson approximation. The underlying issue is that triangles (and also other motifs) occur in clumps. For random graphs, Monte Carlo tests often use shuffling edges with the number of edges fixed, or fixing the node degree distribution, or fixing some other summary. Then we use a Monte Carlo test to see whether our test statistic is unusual, compared to graphs drawn at random with the same number of edges, or the same node degree distribution, say. The results have to be interpreted carefully. 104