Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2024 Jun 14;14(1):13730.
doi: 10.1038/s41598-024-63167-9.

A comprehensive generalization of the Friendship Paradox to weights and attributes

Affiliations

A comprehensive generalization of the Friendship Paradox to weights and attributes

Anna Evtushenko et al. Sci Rep. .

Abstract

The Friendship Paradox is a simple and powerful statement about node degrees in a graph. However, it only applies to undirected graphs with no edge weights, and the only node characteristic it concerns is degree. Since many social networks are more complex than that, it is useful to generalize this phenomenon, if possible, and a number of papers have proposed different generalizations. Here, we unify these generalizations in a common framework, retaining the focus on undirected graphs and allowing for weighted edges and for numeric node attributes other than degree to be considered, since this extension allows for a clean characterization and links to the original concepts most naturally. While the original Friendship Paradox and the Weighted Friendship Paradox hold for all graphs, considering non-degree attributes actually makes the extensions fail around 50% of the time, given random attribute assignment. We provide simple correlation-based rules to see whether an attribute-based version of the paradox holds. In addition to theory, our simulation and data results show how all the concepts can be applied to synthetic and real networks. Where applicable, we draw connections to prior work to make this an accessible and comprehensive paper that lets one understand the math behind the Friendship Paradox and its basic extensions.

PubMed Disclaimer

Conflict of interest statement

The authors declare no competing interests.

Figures

Figure 1
Figure 1
This is a weighted undirected graph G on 3 nodes. The weight of each edge, when not 1, is listed on the edge. The nodes are labeled A through C. Each node has a numeric attribute ai associated with it, and it’s listed in blue next to each node.
Figure 2
Figure 2
The proportion of cases in which each paradox fails resembles a step function with j as the argument—that is why in the top panel we restrict j to [-3,3] so the shift is more apparent. Since positive j implies a positive degree-attribute correlation which, in our construction, is tightly linked to other correlations being positive, and correlation needs to be just slightly greater than or equal to 0 for an attribute-based version of the paradox to hold, it makes sense that the gaps become positive and the proportion of failure drops to 0 in a step-like fashion. A contributing factor is that given our construction, the standard deviation of the 1000 correlations for each condition is low (<0.035 and highest at j=0). See the Supplementary Information for a plot of the standard deviation. (Note also that in the top panel, the minute details of the lines’ behavior around 0 are due to randomness which is highest at j=0. Here, the lines seemingly all cross around − 0.5, but that isn’t the case in each run of the simulation. We expect the proportion of failure to be 0.5 at j=0 for each line, but it’s not guaranteed to be precisely that in a simulation).
Figure 3
Figure 3
We created a standard normal attribute sequence for each of the 1000 G1000,150 networks and found rd,a, rδ,a, rw,a and rγ,a, and the LAFP, SAFP, LWAFP and SWAFP gap sizes for each. The LAFP gap signs follow the rd,a signs, the SAFP gap signs follow the rδ,a signs, the LWAFP gap signs follow the rw,a signs, and SWAFP gap signs follow the rγ,a signs. Furthermore, the correlation between the x-axis quantity and the y-axis quantity is 0.9994 for all four pairs (the exact values are slightly different). But the correlation may not be as high for less symmetric cases such as real-world data. While we aren’t interested in gap sizes on their own, it is interesting to see a strong linear relationship between them and their associated correlations in this specific case. Note: for illustration purposes we only plot the results for 100 networks out of 1000.
Figure 4
Figure 4
Gap sizes and their associated correlations for the Facebook100 data. Like in Fig. 3 that looked at random graphs, the LAFP gap signs follow the rd,a signs, the SAFP gap signs follow the rδ,a signs, the LWAFP gap signs follow the rw,a signs, and SWAFP gap signs follow the rγ,a signs. But here the correlation between the x-axis quantity and the y-axis quantity is lower than 0.9994 (but still very high): 0.986 for rd,a and gLAFP (red circles), 0.983 for rδ,a and gSAFP (blue triangles), 0.990 for rw,a and gLWAFP (green circles), 0.986 for rγ,a and gSWAFP (black triangles).

References

    1. Feld, S. L. Why your friends have more friends than you do. Am. J. Sociol.96, 1464 (1991).10.1086/229693 - DOI
    1. Hodas, N. O., Kooti, F. & Lerman, K. Friendship paradox redux: Your friends are more interesting than you. In Seventh International AAAI Conference on Weblogs and Social Media (2013).
    1. Berenhaut, K. S. & Jiang, H. The friendship paradox for weighted and directed networks. Probab. Eng. Inf. Sci.33, 136 (2019).10.1017/S0269964818000050 - DOI
    1. Eom, Y.-H. & Jo, H.-H. Generalized friendship paradox in complex networks: The case of scientific collaboration. Sci. Rep.4, 4063 (2014). 10.1038/srep04603 - DOI - PMC - PubMed
    1. Ugander, J., Karrer, B., Backstrom, L. & Marlow, C. The anatomy of the facebook social graph. arXiv preprint arXiv:1111.4503 (2011).