Skip to main content
Scientific Reports logoLink to Scientific Reports
. 2023 Nov 29;13:21053. doi: 10.1038/s41598-023-48113-5

On the inadequacy of nominal assortativity for assessing homophily in networks

Fariba Karimi 1,2,, Marcos Oliveira 3,
PMCID: PMC10686992  PMID: 38030623

Abstract

Nominal assortativity (or discrete assortativity) is widely used to characterize group mixing patterns and homophily in networks, enabling researchers to analyze how groups interact with one another. Here we demonstrate that the measure presents severe shortcomings when applied to networks with unequal group sizes and asymmetric mixing. We characterize these shortcomings analytically and use synthetic and empirical networks to show that nominal assortativity fails to account for group imbalance and asymmetric group interactions, thereby producing an inaccurate characterization of mixing patterns. We propose the adjusted nominal assortativity and show that this adjustment recovers the expected assortativity in networks with various level of mixing. Furthermore, we propose an analytical method to assess asymmetric mixing by estimating the tendency of inter- and intra-group connectivities. Finally, we discuss how this approach enables uncovering hidden mixing patterns in real-world networks.

Subject terms: Complex networks, Computational science

Introduction

Understanding how groups interact in networks is fundamental for uncovering mechanisms underlying diverse phenomena, from protein interactions to social communication13. Such group-level interactions often generate mixing patterns in networks, commonly assessed with single-valued measures such as nominal assortativity4,5. Though these measures help analyze group mixing concisely, they may be grounded on unrealistic assumptions about the network structure, which might produce imprecise estimates of group mixing tendencies, limiting our understanding of groups in networks.

Recent advances in relational data collection have enabled studies on mixing patterns to investigate fundamental processes that drive such tendencies6. In particular, much research has characterized homophily—nodes’ tendency to connect with alike—in a variety of social settings due to processes such as selective mixing and in-group favoritism2,7. For instance, sexual partnership networks are assortative by race in the United States, meaning that individuals form ties with partners of the same race more often than one would expect by chance4. Similarly, college students are more likely to have friendships with peers of the same gender, major, residence, and year8. These homophilic tendencies have been documented in various other social phenomena such as research collaboration9, artist partnerships10, lawmaking11, and book readership12. Beyond social networks, previous works have also demonstrated homophily in biological domains such as networks of protein similarity13 and dolphin companionship14.

Researchers in network science generally use the so-called nominal assortativity to characterize mixing patterns regarding categorical attributes (e.g., race, gender, protein type)4, such as those mentioned above. Nominal assortativity or attribute assortativity describes how intra- and inter-group connectivity diverges from what we expect solely due to degree connectivity of the nodes and groups. The advantage of this measure compared to other existing measures of homophily is that it takes into consideration connectivity patterns of groups to assess the statistical significance. Its straightforward definition produces an intuitive quantity that ranges from -1 (i.e., complete disassortative mixing) to 0 (i.e., neutral) to +1 (i.e., complete assortative mixing), which enables researchers to analyze group mixing in networks concisely. Recently, Cinelli and colleagues showed that the assortativity coefficient, r, is bounded, analogous to the constraints that exist on Pearson correlation coefficients15. They demonstrated that the assortativity coefficient can range between rmin and rmax, which are dependent on the edge counts in the networks. This specifically implies that r=1 is only achievable when the sum of the inter-group edge counts is equal to the total number of edges in the network. Conversely, r=-1 is attainable solely in cases where this sum is zero. Crucially, this work exposes the influence of certain network attributes such as metadata assignment and degree sequence on the bounds of r.

Here we demonstrate that nominal assortativity presents two fundamental inadequacies. First, it overlooks the group-size imbalance, implicitly assuming that groups are relatively equal. This assumption neglects that smaller groups have fewer possibilities to connect with themselves, misrepresenting mixing patterns in scenarios of group-size imbalance (see Fig. 1a). Second, the measure consists of a uni-dimensional value, only characterizing symmetric group mixing (or an average mixing). This restriction ignores potential asymmetries in networks, thereby missing relevant mixing patterns (Fig. 1b). Both inadequacies are problematic, particularly when analyzing real-world data and in the presence of minorities.

Figure 1.

Figure 1

Nominal assortativity misses relevant mixing patterns in networks. (a) Nominal assortativity shows different mixing values for networks that have the same group mixing—a misrepresentation due to group-size imbalance. We generate these networks using a model with a group-mixing parameter h that corresponds to the probability of same-group nodes being connected; the generated networks are in a heterophilic regime with h=0.2 (left) and a homophilic regime with h=0.8 (right). These networks have a fixed group mixing h but varying minority fraction f0. In the plots, solid lines represent the analytical formulation, whereas dots are values from simulations. (b) Nominal assortativity is a single-valued measure and ignores asymmetries in group mixing. In all scenarios, nominal assortativity is zero r=0, while there can be significant asymmetric mixing patterns between green and blue groups. In the plots, data points represent numerical simulation of networks with 300 nodes, repeated over 150 independent runs.

In real-world networks, groups tend to have unequal sizes, and some groups (i.e., minority groups) might be much smaller than the largest group. For instance, women are underrepresented in STEM fields, such as Computer Science and Physics, making them a minority group in professional networks1618. When analyzing such networks and other imbalanced data sets, we must consider group sizes to estimate the likelihood of in-group mixing biases. Besides unequal group sizes, networks might display asymmetries in how groups interact. For example, in male-dominated scientific fields, established researchers could be primarily men due to historical first-mover advantages18. Thus, senior men have the resources to drive their collaboration network, implying that the tendency for male-male collaboration may not be the same as female-female collaboration19,20. In such settings, homophily is asymmetric, having different strengths for the minority and majority groups. These asymmetries, however, are lost when using a single-valued measure to characterize group mixing, such as nominal assortativity.

In this work, we demonstrate how nominal assortativity misses relevant mixing patterns in networks with unequal group sizes or asymmetric mixing and show how to tackle these shortcomings. First, we use generative network models with adjustable mixing parameters to show that nominal assortativity fails to recover the expected assortativity in synthetic networks. We characterize this limitation analytically and numerically by examining the relationship between assortativity, group size, and asymmetric mixing. Second, we propose the adjusted nominal assortativity and show that this adjustment recovers the expected assortativity from synthetic networks. Third, we propose to assess asymmetric mixing in networks by estimating group-mixing tendencies using our analytical formulations. Finally, we discuss how our approach enables characterizing hidden mixing patterns in real-world networks.

Results

Nominal assortativity characterizes mixing patterns by assessing the significance of the intra-group. To that end, this definition employs the B×B mixing matrix e to account for groups connectivity, where B is the number of groups, and each matrix element eij corresponds to the fraction of edges connecting nodes from group i to nodes from group j. The nominal assortativity measure is then defined as follows:

r=ieii-iaibi1-iaibi, 1

where ai and bi are the fraction of edges that, respectively, begin and end at nodes from group i, defined as ai=jeij and bi=jeji4. This definition produces an intuitive quantity that equals zero when groups lack intra- and inter-group tendencies (i.e., eii=aibi). The quantity reaches to its maximum r=1 when intra-group ties dominate the network (i.e., ieii=1) and becomes negative when inter-group ties are predominant.

Nominal assortativity on networks with groups of unequal sizes

To examine how nominal assortativity represents mixing patterns, we use generative network models in which we have a prior knowledge on what to expect from the value of mixing. We aim to evaluate assortativity’s ability to recover the expected mixing value. More precisely, we generate random networks using a model with a tunable group mixing parameter h that corresponds to the probability of same-group nodes being connected, whereas its complement, 1-h, is the probability of inter-group ties (see “Methods”). Here, we focus on the case of two groups, B=2, in which nodes possess a binary attribute (e.g., red/blue, male/female). The case of beyond two groups is discussed in the Supplementary Note 4. We examine networks with a fixed h and varying group sizes, finding that nominal assortativity goes to zero as the minority group decreases in size (Fig. 1a). For example, when h=0.8 (i.e., homophily), assortativity can vary from 0.6 to 0, depending on the proportional size of the minority group, despite fixed group mixing.

To investigate why nominal assortativity varies with the minority fraction, we turn to the analytical formulation of the assortativity. Let us use a more general notion of group mixing in which hii denotes the intrinsic tendency of a node from group i connecting to a node of the same group; its complement hij=1-hii is the tendency of a node in group i to connect to a node in group j. Therefore, in a random network, the probability of finding an edge between group i and group j express as pij=fifjhij, where f corresponds to the proportional size of groups, implying that each mixing matrix element can be defined as eij=pij/ijpij, where the denominator is a normalizing factor.

Thus, ieii and iaibi can be expressed as follows:

ieii=f02h00+f12h11ijpij, 2

and

iaibi=(f02h00+f0f1h01)2+(f12h11+f0f1h10)2(ijpij)2, 3

where 0 and 1 are the labels for the minority and majority group, respectively. Finally, inserting Eqs. (2) and  (3) into Eq. (1), the nominal assortativity can be written as:

r=f02h00+f12h11ijpij-(f02h00+f0f1h01)2+(f12h11+f0f1h10)2(ijpij)21-(f02h00+f0f1h01)2+(f12h11+f0f1h10)2(ijpij)2. 4

This equation reveals that nominal assortativity is a function of group sizes f0 and f1. We verify this group-size dependency by comparing our analytical formulation with the assortativity measured on synthetic networks, finding a perfect agreement between Eq. (4) and simulations (Fig. 2a, b). Our results confirm the group-size dependence and reveal that this dependence increases with smaller minority groups (Fig. 2c). In contrast, when groups have similar sizes, we observe, as expected, a linear relationship between group mixing h and nominal assortativity. More precisely, when groups are equal in size, f0=f1=0.5, Eq. (4) becomes r=h00+h11-1. The group-size dependency occurs in other types of networks such as scale-free networks. For instance, we simulate the Barabási–Albert homophily (BA-Homophily) model, which incorporates group mixing preferences with the preferential attachment21, and demonstrate that nominal assortativity is a function of group sizes on such networks and in scenarios involving more than two groups (see Supplementary Notes 2 and 4). Overall, these findings imply that nominal assortativity is unadjusted for group sizes and introduces an artifactual bias into mixing analyses in imbalanced scenarios.

Figure 2.

Figure 2

Adjusted assortativity retrieves the expected assortativity in networks with group-size imbalance. (a) Nominal assortativity has a group-size dependence that (b) underestimates the strength of group mixing in networks. (c) This underestimation is more severe in the presence of smaller minority groups. (d) We propose the adjusted assortativity that tackles this misrepresentation by adjusting for group sizes in the network. (e) The measure has a linear relationship with group mixing h and (f) is independent of group sizes. In all plots, solid lines represent the analytical formulation, whereas dots are values from simulations. The simulations are done on networks with 500 nodes and 60 independent runs.

The adjusted nominal assortativity

Here we propose to adjust the nominal assortativity for group sizes by normalizing the elements of the mixing matrix. This approach accurately retrieves the expected assortativity in networks, enabling us to assess mixing patterns in imbalanced networks. To that end, we define the adjusted mixing matrix e, which accounts for the network’s pool of opportunities, namely, the fact that larger groups have more opportunities to connect. We define each element of the adjusted mixing matrix e to be

eij=eijfifj,

where fk corresponds to the proportional size of group k. This adjustment ensures that the elements of the mixing matrix only represents the mixing tendencies (h) that are relevant for measuring intrinsic homophily and assortativity and not other factors. For instance, in the case of two groups, where original mixing elements are e00f02h00 and e11f12h11, the adjusted elements of the matrix are expressed as e00h00 and e11h11.

Moreover, we define the adjusted nominal assortativity, radj, as follows:

radj=ieii-iaibi1-iaibi,

where ai=jeij and bi=jeji. This adjustment considers the effects of group-size imbalance on the mixing matrix, leading to a consistent assessment of mixing patterns in imbalanced scenarios.

We verify the proposed measure by generating synthetic data with different group-imbalance and mixing scenarios. We examine networks generated with a fixed h and varying group sizes, revealing that adjusted nominal assortativity accurately recovers the expected mixing independent of group sizes (Fig. 2d-e). Thus results show that the adjusted nominal assortativity has a linear relationship with group mixing h, regardless of f0 and f1 as expected (see Fig. 2f). We find similar results for scale-free networks and three-groups scenarios (see Supplementary Note 2 and 4). In sum, the adjusted nominal assortativity accounts for group sizes and pool of opportunities, enabling us to assess group mixing preferences accurately.

Assessing group mixing in empirical networks

Next, we explore nominal assorativity in different real-world networks with unequal group sizes, showing that nominal assortativity underestimates the mixing patterns compared to the adjusted nominal assortativity (see Table 1). We analyze social networks of academic collaboration and face-to-face interactions with annotated binary gender information (see Supplementary Note 6 for detailed data descriptions)2224. In most cases, assortativity r is lower than the adjusted assortativity radj, especially in the cases of small minority groups. For example, in the collaborative coding platform GitHub, where women are only 6% of the network, nominal assortativity is r=0.04, implying the absence of assortative collaboration; in contrast, the adjusted assortativity is radj=0.16, suggesting a potential gender assortativity. Similarly, nominal assortativity might mislead us to mistake changes in group mixing for changes in group sizes. For instance, in the collaboration network among computer scientists (DBLP), assortativity r increases from r=0.04 in 1980 to r=0.10 in 2010, which could imply a possible change in group mixing over time. However, this change might be merely due to the growth of the minority group. The minority size almost doubled, from 11% to 21%, and the adjusted assortativity indicates a stable mixing around radj=0.15. Overall, these findings underscore the importance of accounting for group sizes when analyzing mixing patterns and the risks of ignoring group imbalance in networks.

Table 1.

Nominal assortativity and adjusted assortativity in empirical networks.

Network N f0 E E00 E11 E01 r radj
APS (2000) 8285 0.11 9071 126 1539 7406 0.05 0.11
GitHub 311,755 0.06 1,537,570 7432 149,069 1,381,069 0.04 0.15
DBLP (2010) 170,984 0.21 322,052 17,468 91,738 212,846 0.10 0.14
DBLP (2000) 54,966 0.18 72,369 3123 18,101 51,145 0.11 0.16
DBLP (1990) 13,764 0.15 12,178 384 2701 9093 0.09 0.16
DBLP (1980) 2664 0.11 1765 24 274 1467 0.06 0.16
INFORMS (2010) 1426 0.16 1009 34 247 728 0.07 0.12
SocioPatterns 4 180 0.27 2220 182 762 1276 0.09 0.12
SocioPatterns 5 327 0.44 5818 1471 2348 1999 0.19 0.19

N denotes number of nodes, f0 is the minority fraction, E is the total number of edges, and label 0 refers to the minority group and label 1 refers to the majority group.

Mixing patterns in networks with asymmetric mixing

A single measure of assortativity reduces information about the B×B mixing matrix into a single value, leading to a concise measure but potentially missing relevant asymmetries in mixing. The idea that a single summary statistic may not be representative of a dataset is, of course, not new and has been shown in prior works25. More recently, Peel and colleagues showed heterogeneity in local assortativity5, and Piraveenan et al.26 showed the extent to which each node contributes to the measure of assortativity. Here, we pay a special attention to the asymmetric nature of group mixing while assuming no heterogeneity at the node level.

To characterize r and radj in asymmetric scenarios, we relax the assumption of h00=h11=h and use our analytical formulation (Eq. 4) to evaluate the nominal assortativity over the whole parameter space of h00 and h11 (see Fig. 3). We find that the adjusted nominal assortativity is consistent and independent of group size in asymmetric cases, whereas the unadjusted version is size-dependent. Both measures, however, might characterize contrasting mixing patterns with the same value. In particular, these measures might indicate an absence of inter- or intra- group mixing tendency despite significant group mixing. For instance, when h00=0.8 and h11=0.2, the minority group has a strong homophilic tendency, whereas the majority has a strong heterophilic tendency; yet, nominal assortativity equals zero, incorrectly suggesting a lack of assortative or disassortative patterns (Fig. 3).

Figure 3.

Figure 3

Unidimensional measures of assortativity overlook asymmetry in networks. (a) The nominal assortativity is dependent on group size in asymmetric cases, whereas (b) the adjusted version is size-independent. Yet both versions of assortativity ignore asymmetric mixing; they reduce a mixing matrix into a unidimensional value, producing a concise measure but missing asymmetry in networks. These measures might indicate an absence of mixing tendency despite significant asymmetric group mixing. In particular, both measures are zero when h00=1-h11 (i.e., the dashed lines). In the plots, each heatmap displays the respective measures in varying mixing scenarios of minority mixing h00 and majority mixing h11 in the presence of minority sizes f0=0.05 and f0=0.10.

To better understand the underlying reason for this misrepresentation, note that when r=0, the numerator in Eq. (4) is zero, leading to the following equation:

f02h00+f12h11ijpij-(f02h00+f0f1h01)2+(f12h11+f0f1h10)2(ijpij)2=0.

Simplifying this equation by using the expression of Eq. (6), we find that h00=1-h11 satisfies this condition. In other words, in many cases when nominal assortavitiy reports a zero value (i.e., lack of any dis/assortative preferences), the group mixing tendencies could be widely different. These findings show that compressing the mixing matrix into a single value, such as assortativity, can hide relevant asymmetric mixing patterns that are present in networks. It is worth noting that paying attention to asymmetries in mixing patterns between groups is important in other applications, such as the emergence of core-periphery structures27.

Assessing asymmetric mixing patterns in networks

In order to assess asymmetric mixing among groups, we propose to turn to the mixing probabilities in a network given an assumption of its generative process. For example, in a random homophilic networks described earlier (ER-Homophily), the diagonal of the mixing matrix can be expressed as:

e00=f02h00ijpijande11=f12h11ijpij,

which can be re-written as follows:

h00=E00Eijpijf02andh11=E11Eijpijf12, 5

where

ijpij=f02h00+f12h11+f0f1h01+f0f1h10, 6

and E is the total number of edges, and E00 and E11 are the number of intra-group edges of the minority and majority groups, and e00 and e11 are fraction of intra-group edges normalized by E. By combining the equations above, ijpij can be expressed as:

ijpij=2f0f11-e00(1-f1/f0)-e11(1-f0/f1). 7

By using Eqs. (5) and  (7), we can retrieve h00 and h11 from data, given we know basic information about the network (i.e., E, E00, E11, and f0).

We verify this method by generating networks with varying mixing parameters and compare the estimated parameters with the ground truth in Supplementary Note 5. Similar methodology can be applied to scale-free networks, finding equivalent results (see Supplementary Note 6). Though this approach requires prior knowledge about the underlying generative processes in networks, it is plausible to argue that many small-scale and large-scale social networks often fall into these two categories of topologically random or scale-free structure2830. Once the plausible topology is identified by examining the degree distribution, the appropriate formulation can be used to extract the group mixing asymmetries. In Supplementary Note 3, we discuss the relationship between asymmetrical homophily and adjusted nominal assortativity in undirected networks.

Discussion

Despite its popularity and relative accuracy in capturing homophily and assortative mixing in a variety of networks, nominal assortativity can produce distorted assessments of mixing patterns in networks with unequal groups and asymmetric mixing. In this work, we demonstrated this inadequacy and proposed ways to tackle these limitations.  By using generative network models with adjustable mixing, we show that nominal assortativity fails to assess homophily accurately in certain scenarios. Our results demonstrate (1) the need for accounting for group sizes in such analyses and (2) the inability of single-valued measures to capture asymmetries in networks.

To tackle these limitations, we develop two approaches to assess group mixing in networks. First, we propose adjusted nominal assortativity to solve the group-size limitation, which accurately recovers the expected symmetric assortativity from networks. Our analysis of real-world networks reveals that nominal assortativity underestimates the strength of mixing patterns compared to the adjusted assortativity. Second, we propose to assess asymmetric mixing in networks by estimating the intra-group mixing probabilities accounting for group size differences and other group-level topological features. It is worth mentioning that there are a variety of other segregation and assortativity measurements in the social network literature beyond the nominal assortativity. Future works should focus on comparing the sensitivity, equivalency, and compatibility of those measurements against each other and baseline scenarios similar to this paper and the previous efforts31.

Accurately measuring biases in group mixing in social networks is crucial because mixing biases affect perception of minorities32, access to social capital33, and algorithmic visibility34, to name a few. Our work lays a novel foundation by proposing an accurate measure of assortativity that can be applied to a wide range of social networks. Better assessment of group-level tendencies and asymmetries in networks provides the means to understand how diverse groups interact—a fundamental step for uncovering mechanisms governing our social lives.

Methods

Random networks with group mixing

To analyze assortativity in networks, we develop a simple model that incorporates group mixing and random tie formation in networks. In this model, an edge between two nodes depends on their group memberships via a stochastic process by tuning the homophily parameter ranging from 0 to 1, h0,1. That means the probability of a node from group i to establish a tie with a node from group j is denoted as hij. The probability of connecting with nodes of the same group is thus the complementary function so that hii=1-hij, likewise hji=1-hjj. At each simulation step, one random node is selected, and it connects to a random target based on this probability. Note that this model has equivalencies with a simple version of stochastic block models in cases where group memberships are known and are the drivers of block formations35. Analytical derivations of the mixing probabilities are described in Supplementary Note 1, and the code is available in the GitHub repository.

Supplementary Information

Acknowledgements

We thank Leto Peel, Matteo Cinelli, Samuel Martin-Gutierrez, and the Network Inequality group for helpful feedback on the first draft of our manuscript. FK was partly supported by the EU Horizon Europe project MAMMOth (Grant Agreement 101070285).

Author contributions

F.K. and M.O. proposed the project, wrote relevant code, carried out analytical analyses, wrote the first draft, and reviewed the final manuscript.

Data availability

The sources of all empirical data used in our analyses are described in Supplementary Note 6.

Code availability

All relevant code used in this study will be available at https://github.com/macoj/assortativity.

Competing interests

The authors declare no competing interests.

Footnotes

Publisher's note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Contributor Information

Fariba Karimi, Email: karimi@csh.ac.at.

Marcos Oliveira, Email: moliveira@tuta.io.

Supplementary Information

The online version contains supplementary material available at 10.1038/s41598-023-48113-5.

References

  • 1.McPherson M, Smith-Lovin L, Cook JM. Birds of a feather: Homophily in social networks. Annu. Rev. Sociol. 2001;27:415–444. doi: 10.1146/annurev.soc.27.1.415. [DOI] [Google Scholar]
  • 2.Goodreau SM, Kitts JA, Morris M. Birds of a feather, or friend of a friend? Using exponential random graph models to investigate adolescent social networks. Demography. 2009;46:103–125. doi: 10.1353/dem.0.0045. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Oliveira M, et al. Group mixing drives inequality in face-to-face gatherings. Commun. Phys. 2022;5:1–9. doi: 10.1038/s42005-022-00896-1. [DOI] [Google Scholar]
  • 4.Newman MEJ. Mixing patterns in networks. Phys. Rev. E. 2003;67:026126. doi: 10.1103/PhysRevE.67.026126. [DOI] [PubMed] [Google Scholar]
  • 5.Peel L, Delvenne J-C, Lambiotte R. Multiscale mixing patterns in networks. Proc. Natl. Acad. Sci. 2018;115:4057–4062. doi: 10.1073/pnas.1713019115. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Schaible, J., Oliveira, M., Zens, M. & Génois, M. Sensing close-range proximity for studying face-to-face interaction. In Handbook of Computational Social Science. Vol. 1. 219–239 (Routledge, 2021).
  • 7.Efferson C, Lalive R, Fehr E. The coevolution of cultural groups and ingroup favoritism. Science. 2008;321:1844–1849. doi: 10.1126/science.1155805. [DOI] [PubMed] [Google Scholar]
  • 8.Traud AL, Mucha PJ, Porter MA. Social structure of Facebook networks. Phys. A Stat. Mech. Appl. 2012;391:4165–4180. doi: 10.1016/j.physa.2011.12.021. [DOI] [Google Scholar]
  • 9.Pepe A, Rodriguez MA. Collaboration in sensor network research: An in-depth longitudinal analysis of assortative mixing patterns. Scientometrics. 2010;84:687–701. doi: 10.1007/s11192-009-0147-2. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Jacobson, K. & Sandler, M. Musically meaningful or just noise? An analysis of on-line artist networks. In Lecture Notes in Computer Science (Including Subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics). Vol. 5493. 107–118 (LNCS, 2009).
  • 11.Oliveira, M., Bastos-Filho, C. & Menezes, R. Political social networks reveal strong party loyalty in Brazil and weak regionalism. In The Sixth ASE International Conference on Social Computing. 1–8 (Stanford, 2014). 10.13140/RG.2.2.35595.08489.
  • 12.Bucur D. Gender homophily in online book networks. Inf. Sci. 2019;481:229–243. doi: 10.1016/j.ins.2019.01.003. [DOI] [Google Scholar]
  • 13.Cheng S, Price DC, Karkar S, Bhattacharya D. Exploring biotic interactions within protist cell populations using network methods. J. Eukaryotic Microbiol. 2014;61:399–403. doi: 10.1111/jeu.12113. [DOI] [PubMed] [Google Scholar]
  • 14.Lusseau D, Newman MEJ. Identifying the role that animals play in their social networks. Proc. R. Soc. Lond. Ser. B Biol. Sci. 2004;271:477–481. doi: 10.1098/rsbl.2004.0225. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Cinelli M, Peel L, Iovanella A, Delvenne J-C. Network constraints on the mixing patterns of binary node metadata. Phys. Rev. E. 2020;102:062310. doi: 10.1103/PhysRevE.102.062310. [DOI] [PubMed] [Google Scholar]
  • 16.National Science Foundation, National Center for Science and Engineering Statistics. Women, Minorities, and Persons with Disabilities in Science and Engineering: 2019. Special Report NSF 19-304. (ERIC Clearinghouse, 2019).
  • 17.National Science Board, National Science Foundation. In Science and Engineering Indicators 2020: The State of U.S. Science and Engineering. NSB-2020-1. (ERIC Clearinghouse, 2020).
  • 18.Kong H, Martin-Gutierrez S, Karimi F. Influence of the first-mover advantage on the gender disparities in physics citations. Commun. Phys. 2022;5:1–11. doi: 10.1038/s42005-022-00997-x. [DOI] [Google Scholar]
  • 19.Karimi, F., Oliveira, M. & Strohmaier, M. Minorities in networks and algorithms. arXiv preprint arXiv:2206.07113 (2022).
  • 20.Jadidi M, Karimi F, Lietz H, Wagner C. Gender disparities in science? Dropout, productivity, collaborations and success of male and female computer scientists. Adv. Complex Syst. 2018;21:1750011. doi: 10.1142/S0219525917500114. [DOI] [Google Scholar]
  • 21.Karimi F, Génois M, Wagner C, Singer P, Strohmaier M. Homophily influences ranking of minorities in social networks. Sci. Rep. 2018;8:11077. doi: 10.1038/s41598-018-29405-7. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Fournet J, Barrat A. Contact patterns among high school students. PLoS ONE. 2014;9:e107878. doi: 10.1371/journal.pone.0107878. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Mastrandrea R, Fournet J, Barrat A. Contact patterns in a high school: A comparison between data collected using wearable sensors, contact diaries and friendship surveys. PLoS ONE. 2015;10:e0136497. doi: 10.1371/journal.pone.0136497. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Génois, M. et al. Combining sensors and surveys to study social contexts: Case of scientific conferences. arXiv preprint arXiv:2206.05201 (2022).
  • 25.Anscombe FJ. Graphs in statistical analysis. Am. Stat. 1973;27:17–21. [Google Scholar]
  • 26.Piraveenan M, Prokopenko M, Zomaya AY. On congruity of nodes and assortative information content in complex networks. Netw. Heterog. Media. 2012;7:441–461. doi: 10.3934/nhm.2012.7.441. [DOI] [Google Scholar]
  • 27.Ureña-Carrion, J., Karimi, F., Iñiguez, G. & Kivelä, M. Assortative and preferential attachment lead to core-periphery networks. arXiv preprint arXiv:2305.15061 (2023).
  • 28.Isella L, et al. Close encounters in a pediatric ward: Measuring face-to-face proximity and mixing patterns with wearable sensors. PLoS ONE. 2011;6:e17144. doi: 10.1371/journal.pone.0017144. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.Broido AD, Clauset A. Scale-free networks are rare. Nat. Commun. 2019;10:1017. doi: 10.1038/s41467-019-08746-5. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Holme P. Rare and everywhere: Perspectives on scale-free networks. Nat. Commun. 2019;10:1016. doi: 10.1038/s41467-019-09038-8. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Bojanowski M, Corten R. Measuring segregation in social networks. Soc. Netw. 2014;39:14–32. doi: 10.1016/j.socnet.2014.04.001. [DOI] [Google Scholar]
  • 32.Lee E, et al. Homophily and minority-group size explain perception biases in social networks. Nat. Hum. Behav. 2019;3:1078–1087. doi: 10.1038/s41562-019-0677-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.Jackson, M. O. Inequality’s economic and social roots: The role of social networks and homophily. Available at SSRN 3795626 (2021).
  • 34.Espín-Noboa L, Wagner C, Strohmaier M, Karimi F. Inequality and inequity in network-based ranking and recommendation algorithms. Sci. Rep. 2022;12:2012. doi: 10.1038/s41598-022-05434-1. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35.Karrer B, Newman ME. Stochastic blockmodels and community structure in networks. Phys. Rev. E. 2011;83:016107. doi: 10.1103/PhysRevE.83.016107. [DOI] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Data Availability Statement

The sources of all empirical data used in our analyses are described in Supplementary Note 6.

All relevant code used in this study will be available at https://github.com/macoj/assortativity.


Articles from Scientific Reports are provided here courtesy of Nature Publishing Group

RESOURCES