- Introduced by
- Lazarsfeld & Merton (concept); McPherson, Smith-Lovin & Cook (synthesis)
- Year
- 1954 (concept); 2001 (synthesis)
- Type
- Measurement of similarity-based tie formation
- Family
- Network composition analysis
What does it do?
Homophily analysis measures the tendency of people who share an attribute, such as race, gender, age, education or attitudes, to form ties with one another.
It compares the observed rate of same-attribute ties with a chance baseline, and separates the part of that rate produced by group sizes from the excess that reflects a preference for similar others.
The intuition behind the method
Friends, spouses and collaborators often resemble one another, but part of this resemblance is arithmetic. If most members of a setting belong to one group, random tie formation alone will produce many same-group ties. The analysis separates this baseline expectation from inbreeding homophily, the extra same-group bias beyond what group sizes imply. Comparing observed attribute mixing across ties with this baseline shows whether, and how strongly, similarity is associated with connection. Because the data are usually cross-sectional, the result describes patterns of ties and does not by itself reveal the process that produced them.
History
Homophily, the tendency for similar people to form ties, is a long-standing concept in sociology. Miller McPherson, Lynn Smith-Lovin and James Cook synthesized the empirical literature in their 2001 Annual Review of Sociology article 'Birds of a Feather: Homophily in Social Networks', a review that reports homophily across marriage, friendship, work, advice, support and many other tie types. Mark Newman's 2003 paper 'Mixing patterns in networks' formalized assortative mixing for discrete and scalar characteristics, including vertex degree, and applied the measures to a variety of real-world networks.
When to use it
Use homophily analysis when you have a network in which attributes are reliably measured for every node and you want to know whether similarity is associated with tie formation, for example in friendship, marriage, collaboration or communication networks. Descriptive measures (the mixing matrix, assortativity and the E–I index) suit a first look at observed patterns. Model-based terms are needed when the similarity effect must be tested net of structural features such as degree or reciprocity. Do not use it when attributes are missing for many nodes, when the network boundary is unclear, or when group sizes are ignored, because baseline homophily will then be read as preference. Cross-sectional data cannot establish whether selection or influence produced the observed pattern; that question requires longitudinal data.
Limitations and considerations
- Cross-sectional measures cannot tell whether similarity caused ties (selection) or ties caused similarity (influence).
- Raw same-group shares conflate baseline and inbreeding homophily unless group sizes are modelled.
- Results depend on how attribute categories are defined and on where the network boundary is drawn.
- Missing ties or missing attribute values bias mixing matrices and assortativity estimates.
- Estimates from small or sparse networks are unstable, so mixing statistics and their comparison with chance baselines should be interpreted with caution.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Reduces an attribute-mixing pattern to a single interpretable number for each network or group.
- Separates baseline homophily, which follows from group sizes, from the inbreeding excess, so the size of a majority group's share is not mistaken for preference.
- Newman's coefficient applies to discrete attributes such as race or language and to scalar attributes such as age, and the same logic extends to mixing by degree.
- Model-based terms test the similarity effect while controlling for structural features such as degree, reciprocity and transitivity, provided the tie-formation model is correctly specified.
Applications
- Friendship and personal networks, where McPherson et al. (2001) report homophily along race and ethnicity, age, religion, education, occupation and gender, roughly in that order of strength.
- Marriage and partnership ties, which McPherson et al. (2001) list among the tie types in which homophily has been studied.
- Scientific collaboration and citation networks, in which attributes such as discipline, institution or career stage can be analysed for mixing.
- Online networks, in which attitudinal or political similarity can be examined as a possible basis for echo chambers.
- Organizational and workplace networks, in which similarity by occupation or group membership can be compared with chance mixing to assess segregation.
How it works
How it works
The mixing matrix records, for each pair of attribute categories, the fraction of all ties that run between members of those categories. The diagonal holds same-category ties and the off-diagonal entries hold cross-category ties, so the matrix shows how the network's ties are distributed across attribute groups. For undirected networks each tie is counted in both directions, so the matrix is symmetric and the two margins are equal. For directed ties the matrix is generally not symmetric, and the margins must be taken separately for ties leaving and ties entering each group.
Formula
e_{gh} = \frac{\#\{\text{ties from group } g \text{ to group } h\}}{\#\{\text{ties}\}}Newman's assortativity coefficient r condenses the mixing matrix into a single number. Its numerator subtracts the within-group share expected under random mixing, the sum of the products a_g b_g of the group margins, from the observed within-group share. The denominator rescales the result so that its maximum is 1. A value of 1 indicates perfectly within-group ties, 0 indicates mixing no different from random, and negative values indicate disassortative mixing. Even a clearly non-zero value should be checked against chance. To judge whether an observed value differs from what random mixing would produce, compare it with its distribution under a null model, most often obtained by randomly permuting attribute labels across nodes, and report the null used and the number of permutations. A null that preserves the degree distribution or group sizes is often more appropriate than a fully shuffled one, because those features shape mixing on their own.
Formula
r = \frac{\sum_g e_{gg} - \sum_g a_g b_g}{1 - \sum_g a_g b_g}The E–I index compares external (cross-group) ties E with internal (within-group) ties I as (E − I)/(E + I). It ranges from −1, when all ties lie within groups, to +1, when all ties cross groups. It can be computed for the whole network, for each group, or for each node. Because it is based on tie counts, its value depends on group size.
Formula
\mathrm{EI} = \frac{E - I}{E + I}\quad(E=\text{external ties},\ I=\text{internal ties})Baseline homophily is the same-group share of ties expected from the relative sizes of groups alone. Inbreeding homophily is the excess of same-group ties above that baseline. Only the excess reflects a preference for similarity, so reporting the raw same-group share overstates preference, most visibly for large majority groups.
Formula
\text{baseline homophily (group size)} \;\text{vs.}\; \text{inbreeding homophily (excess)}In inferential analysis, homophily is estimated as a coefficient in a tie-formation model. In the ERGM or SAOM form given in the mechanics, a term for whether two nodes share an attribute enters the tie log-odds. A positive coefficient means that matching raises tie probability, holding the other model terms fixed. Such models include structural terms, such as degree, reciprocity and transitivity, which reduce the risk that these features are mistaken for homophily. The homophily estimate is only as valid as the model specification, so its sensitivity to the choice of structural terms should be checked. Longitudinal models are needed to separate selection from influence.
Formula
\operatorname{logit} P(y_{ij}=1) = \dots + \beta\,\mathbb{1}(x_i = x_j)\ (\text{ERGM/SAOM})Common pitfalls
- Reporting raw same-group tie proportions as homophily without netting out the baseline expected from group sizes.
- Reading cross-sectional homophily as evidence of selection when influence could produce the same pattern.
- Comparing E–I values across groups of very different sizes without accounting for their dependence on group size.
- Treating a significant ERGM homophily coefficient as causal without separating selection from influence using longitudinal data.
- Reading a non-zero assortativity value as meaningful without comparing it with a chance baseline or null model.
Frequently asked questions
What is the difference between baseline and inbreeding homophily?
Baseline homophily is the level of same-group tie formation expected purely from the relative sizes of groups, even under random mixing — a large majority will have many same-group ties by chance alone. Inbreeding homophily is the additional same-group bias beyond that baseline, reflecting a genuine preference for similar others. Only inbreeding homophily is evidence of homophilous choice, so analyses must net out the baseline.
Can homophily analysis distinguish selection from social influence?
Not from cross-sectional data. An observed clustering of similar people connected to each other is equally consistent with selection (similar people choosing to connect) and influence (connected people becoming similar). Separating the two requires longitudinal network-and-behavior data and models such as stochastic actor-oriented models that estimate selection and influence simultaneously.
What does the assortativity coefficient measure?
It is essentially the correlation between the attributes of nodes at the two ends of a tie, normalized to lie between −1 and 1. A value near 1 means strongly assortative mixing (ties overwhelmingly within categories), near 0 means mixing indistinguishable from random, and negative values mean disassortative mixing where opposites tend to connect. It condenses the whole mixing matrix into one comparable number.
Related methods
Sources
McPherson, M., Smith-Lovin, L., & Cook, J. M. (2001). Birds of a feather: homophily in social networks. Annual Review of Sociology, 27, 415–444.
Open DOI referenceNewman, M. E. J. (2003). Mixing patterns in networks. Physical Review E, 67(2), 026126.
Open DOI reference