hatvis.patterns.validated_hyperedges#
- hatvis.patterns.validated_hyperedges(H, alpha=0.01, correction='bonferroni')[source]#
Statistically validated hyperedges (after Musciotto, Battiston and Mantegna 2021).
Hyperedges of each size \(k\) are tested separately. Within the \(N_k\) hyperedges of size \(k\), vertex \(i\) appears \(d_i^{(k)}\) times. Under the null hypothesis the vertices choose their hyperedges independently at random, so the number of hyperedges shared by a group follows the distribution of the intersection of independent random subsets (an iterated hypergeometric distribution). A distinct vertex set that occurs \(n_{\mathrm{obs}}\) times gets the p-value \(P(X\ge n_{\mathrm{obs}})\).
correction:"bonferroni"(over the number of possible groups \(\binom{n_k}{k}\) of the \(n_k\) active vertices — a conservative choice),"fdr"(Benjamini–Hochberg over the observed groups) orNone.Returns a table with the vertex set, size, multiplicity, expected value, p-value and the
validatedflag.