Abstract
Many traits are subject to assortative mating, with recent molecular genetic findings confirming longstanding theoretical predictions that assortative mating induces long range dependence across causal variants. However, all markerbased heritability estimators implicitly assume mating is random. We provide mathematical and simulationbased evidence demonstrating that both methodofmoments and likelihoodbased estimators are biased in the presence of assortative mating and derive corrected heritability estimators for traits subject to assortment. Finally, we demonstrate that the empirical patterns of estimates across methods and sample sizes for real traits subject to assortative mating are congruent with expected assortative matinginduced biases. For example, markerbased heritability estimates for height are 14% – 23% higher than corrected estimates using UK Biobank data.
Introduction
Positive primary phenotypic assortative mating (hereafter simply “AM”), the phenomenon whereby matechoice is based on phenotypic similarity, has been observed for a variety of heritable traits in human and nonhuman animals^{1,2,3,4}. A century ago, Fisher demonstrated that AM induces longrange positive correlations between traitincreasing allele counts at causal loci across the genome, thereby increasing genetic variance across successive generations until it approaches a stable equilibrium^{5}. Since Fisher’s time, it has been established that many human traits are subject to AM, and that estimates of genetic and environmental variance from twin and family designs, which assume random mating, can be biased in the presence of AM^{6}. Recently, there has been increased focus on how AM can influence results based on measured genetic data, in part due to the recognition that AM may contribute to observed discrepancies between populationbased versus familybased estimates in genomewide association studies (GWAS)^{7,8,9,10} and Mendelian randomization studies^{11,12}. However, despite hundreds of publications reporting estimates of SNPheritability, no study has yet investigated how AM influences these estimates. Moreover, many benchmark traits central to the scientific discourse regarding the “stillmissing heritability”—for example, height and educational attainment—are precisely those for which phenotypic and genetic data is consistent with AM^{4,13,14,15}, raising the possibility that conclusions about SNPheritability could be biased in systematic but as yet poorly understood ways.
Here, we characterize the impact of AM on the two families of markerbased heritability estimators, which we generically denote \({\hat{h}}_{{{{{{\rm{SNP}}}}}}}^{2}\). The first uses the method of moments (MoM) and is typified by univariate HasemanElston (HE) regression (\({\hat{h}}_{{{{{{\rm{HE}}}}}}}^{2}\))^{16} but includes PCGC regression^{17} and linkage disequilibrium (LD) score regression^{18}. The second uses residual maximum likelihood (REML)^{19} to estimate heritability (\({\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}\)) and is implemented in software such as by GCTA^{20} and BOLTREML^{21}. We assume Fisher’s classical model of AM, which describes the equilibrium properties of a heritable trait for which mates’ genotypes are conditionally independent given the heritable components of their phenotypes and for which offspring environments are independent of parental phenotypes. This model has formed the theoretical foundation for recent investigations of AM using measured genetic data^{4,14,22}. We provide mathematical and simulationbased arguments demonstrating that AM induces a modest yet nonnegligible bias in both classes of estimators that is not addressed by conventional methods of accounting for population structure. In the process, we extend results in random matrix theory and classical quantitative genetics by characterizing the higherorder moments of causal variants and the limiting spectral distribution of the genomic relatedness matrix (GRM) under AM, which clarifies why genomic principal components fail to capture the effects of AM. Additionally, we provide empirical results using data from the UK Biobank that are congruent with our theoretical predictions. Finally, we provide guidelines for estimating and interpreting \({\hat{h}}_{{{{{{\rm{SNP}}}}}}}^{2}\) when traits are subject to AM.
Results
Our theoretical results depend on several key parameters: \(r\) denotes the phenotypic correlation between mates on an additive phenotype \({{{{{\bf{y}}}}}}\) with a heritable component \({{{{{\bf{Zu}}}}}}\); \({h}_{0}^{2}\) denotes the panmictic heritability, what the narrowsense heritability of the phenotype would be in the absence of AM; \({h}_{\infty }^{2}\) denotes the equilibrium narrowsense heritability approached under multiple generations of AM; and \({{{{{\bf{Z}}}}}}\) denotes the \(n\times m\) matrix of \(n\) unrelated individuals’ standardized genotypes at \(m\) causal loci with effects vector \({{\bf{u}}}\). We initially assume that all causal variants are present in \({{{{{\bf{Z}}}}}}\) (i.e., that the heritability is fully explained by measured variants); the reason for this is that the dynamics of AM across generations depend on the true heritability of the trait, irrespective of the fraction of genetic variation tagged by SNPs. We later employ simulations to demonstrate that our major qualitative conclusions remain valid when this assumption is relaxed.
The rows of \({{{{{\bf{Z}}}}}}\) (individuals’ genotypes) are independent random vectors with \(m\times m\) covariance matrix \({{{{{\boldsymbol{{\Upsilon }}}}}}}\), which quantifies the correlation between loci. Under random mating, \({{{{{\boldsymbol{{\Upsilon }}}}}}}{{{{{\rm{:= }}}}}}{{{{{{\boldsymbol{{\Upsilon }}}}}}}}_{{{{{0}}}}}\) is approximately block diagonal such that causal variants are largely (aside from LD between nearby variants) stochastically independent. However, under equilibrium AM, \({{{{{\boldsymbol{{\Upsilon }}}}}}}{{{{{\rm{:= }}}}}}{{{{{{\boldsymbol{{\Upsilon }}}}}}}}_{{{\infty }}}\) is dense due to the presence of positive longrange correlations among traitincreasing allele counts within and across chromosomes. As the elements of \({{{{{{\boldsymbol{{\Upsilon }}}}}}}}_{{{\infty }}}\) agree in sign with the corresponding elements of \({{{{{\bf{uu}}}}}}^{{{{{{\mathrm{T}}}}}}}\) (i.e., trait increasing alleles are positively correlated), the equilibrium additive genetic variance under AM, \({\sigma }_{{{g}},{{\infty }}}^{2}\), is considerably greater than the panmictic additive genetic variance, \({\sigma }_{{{g}},0}^{2}\). That is, \({\sigma }_{{{g}},{{\infty }}}^{2}={{{{{{\bf{u}}}}}}}^{{{{{{\rm{T}}}}}}}{{{{{{\boldsymbol{{\Upsilon }}}}}}}}_{{{\infty }}}{{{{{\bf{u}}}}}} \, > \, {\sigma }_{{{g}},0}^{2}\approx {{{{{{\bf{u}}}}}}}^{{{{{{\rm{T}}}}}}}{{{{{\bf{u}}}}}}\) (Fig. 1 and Supplementary Notes 1, 2).
Haseman–Elston regression estimates under AM
We first characterize the influence of AM on \({\hat{h}}_{{{{{{\rm{HE}}}}}}}^{2}\), perhaps the simplest markerbased MoM heritability estimator. Let \(\widetilde{{{{{{\bf{y}}}}}}}\) denote the standardized phenotype. \({\hat{h}}_{{{{{{\rm{HE}}}}}}}^{2}\) is the slope of the subdiagonal elements of the phenotypic outer product, \(\widetilde{{{{{{\bf{y}}}}}}}{\widetilde{{{{{{\bf{y}}}}}}}}^{{{{{{\rm{T}}}}}}}\), regressed on the subdiagonal elements of the GRM, \({m}^{1}{{{{{{\bf{ZZ}}}}}}}^{{{{{{\rm{T}}}}}}}\). Assuming that all genetic variance is explained by measured variants, we establish the following general result (see Supplementary Note 3):
Under AM, the bracketed quantity is greater than one, and thus \({\hat{h}}_{{{{{{\rm{HE}}}}}}}^{2}\) is upwardly biased relative to both \({h}_{0}^{2}\) and \({h}_{\infty }^{2}\). Intuitively, this bias occurs because AM influences the outcome (\(\widetilde{{{{{{\bf{y}}}}}}}{\widetilde{{{{{{\bf{y}}}}}}}}^{{{{{{\rm{T}}}}}}}\)) differently than the predictor (\({m}^{1}{{{{{{\bf{ZZ}}}}}}}^{{{{{{\rm{T}}}}}}}\)). The AMinduced positive correlations between all causal variants inflate genetic (co)variance, and this inflation is accurately reflected in \(\widetilde{{{{{{\bf{y}}}}}}}{\widetilde{{{{{{\bf{y}}}}}}}}^{{{{{{\rm{T}}}}}}}\). However, the elements of \({m}^{1}{{{{{{\bf{ZZ}}}}}}}^{{{{{{\rm{T}}}}}}}\) represent the average correlation between pairs of individuals at homologous loci taken one at a time. Thus, the elements of \({m}^{1}{{{{{{\bf{ZZ}}}}}}}^{{{{{{\rm{T}}}}}}}\) are governed almost completely by the correlations within loci; correlations between different loci have almost no influence. Because the vast majority of the inflation in genetic (co)variation is caused by the correlations between and not within loci, AM on phenotype has a negligible impact on the GRM for polygenic traits in a genetically homogenous population. This latter point is itself noteworthy because some studies have claimed that inflated genomic similarity between friends or mates^{22} is evidence for phenotypic assortment, but the actual increase is trivial (of order \(O\left({m}^{1}\right)\) relative to the increase in genetic variance) and such observations have more probable explanations, such as imperfectly controlled stratification^{23}.
Under the stricter assumption of exchangeable loci (i.e., each causal variant explains equal phenotypic variance), we derive the following approximate expression, dependent only on \(r\) and \({h}_{0}^{2}\) (see Supplementary Note S3):
Under exchangeable loci for known \(r\) and \({\hat{h}}_{{{{{{\rm{HE}}}}}}}^{2}\), we further define corrected estimators of the panmictic and equilibrium heritability values:
Largescale simulations using realistic genotype data (see Online Methods) with \(p={10}^{6}\) SNPs of which \(m={10}^{4}\) were causal with effects \({{{{{\rm{u}}}}}}\mathop{\sim }\limits^{i.i.d.}{{{{{\mathscr{N}}}}}}(0,{\sigma }_{{{g}},0}^{2}/m)\) demonstrate that these approximations are accurate even when the exchangeable loci assumption is violated (Figs. 1,2). Results were nearly identical when setting \(m={10}^{5}\) causal variants. In addition, our simulations confirmed that LDSC, which is mathematically equivalent to HE regression when LD scores are exact^{24}, is similarly biased upwards under AM (Fig. 3a). However, the impact of this bias in real world applications depends not only on the extent of AM, but also on the degree to which estimated LD scores reflect the true LD structure in a given population.
Residual maximum likelihood estimates under AM
In contrast to \({\hat{h}}_{{{{\rm{HE}}}}}^{2}\), the value of \({\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}\) changes as a function of sample size under AM. Using the same simulation approach described above, we found that \({\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}\) exhibits upward biases similar in magnitude to those of \({\hat{h}}_{{{{{{\rm{HE}}}}}}}^{2}\) in small samples (e.g., \(n \approx {10,} {000}\)). In large samples (e.g., \( n \, { > } \, {200},\!{000}\)), however, \({\hat{h}}_{{{{\rm{REML}}}}}^{2}\) drops below \({h}_{\infty }^{2}\) (Fig. 2a). More formally, under the assumption of exchangeable loci, we prove that
where \(n/m \to c \in \left(0,\infty \right)\); i.e., \({\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}\) is a consistent estimator of \({h}_{0}^{2}\) for highly polygenic traits (Supplementary Note 3). On the other hand, the number of causal variants and the total number of measured SNPs have no apparent influence on the bias of \({\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}\) (Supplementary Fig. 1). In essence, the parameter values that maximize the residual likelihood function depend only on the eigenvalues of the GRM, and the longrange dependence among causal variants induced by AM is “weak” in the sense that the distributions of the eigenvalues (i.e., spectral distributions) of the GRM under random mating and under AM are asymptotically equivalent. Thus, in large samples, \({\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}\) converges to what the heritability would be if the causal variants were independent, i.e., to \({h}_{0}^{2}\). However, in finite samples, we show via simulation that this convergence can be extremely gradual, requiring samples approaching millions of individuals before \({\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}\) approaches \({h}_{0}^{2}\) (Fig. 2b).
Conventional methods do not mitigate AMinduced bias
Inclusion of ancestral PCs as covariates fails to mitigate the AMinduced bias in both the MoM and the REML estimates (Fig. 3a). Indeed, we demonstrate that AM has a negligible effect on the spectral distribution of the GRM in large samples with many variants (see Supplementary Note 2). Similarly, these biases are not mitigated by modeling multiple genetic variance components that partition SNPs according to LD score and minor allele frequency (Fig. 3a).
AMinduced bias persists when not all causal variants are measured
In realworld applications, measured genotypes will often include only a fraction of the total number of causal variants (or at least good proxies in high LD). Previous work has demonstrated that the extent to which marker data imperfectly tag causal variants will bias \({\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}\) estimates in random mating populations^{25,26}; these circumstances are further complicated under AM as imperfect tagging will not only corrupt the relationship between a given marker and proximal causal variants, but between a given marker and all other causal variants. To assess the impact of AM when not all variants are measured, we compared \({\hat{h}}_{{{{{{\rm{HE}}}}}}}^{2}\) and \({\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}\) in simulated data that randomly dropped π = 0, 50, or 75% of all \(p={10}^{6}\) variants, including both causal (\(m={10}^{4}\)) and noncausal (\(pm={990}, \! {000}\)) SNPs (Fig. 3b). As expected, this resulted in attenuated estimates commensurate with, but not proportional to the fraction of missing data: on average across methods, \({\hat{h}}_{{{{{{\rm{SNP}}}}}}}^{2}\) was 8.4% (s.e. 0.009%) and 17.6% (s.e. 0.009%) lower after randomly dropping 50% and 75% of SNPs, respectively (the degree of attenuation was smaller than the proportion of SNPs dropped due to LD between retained SNPs and discarded causal variants). Though future work is required to fully characterize the relationship between heritability estimates and the degree of missing heritability under AM, the pattern of bias due to AM when some of the heritability is missing is qualitatively similar to that when all causal variants are present.
The differential influence of sample size on \({\hat{{{{{{\boldsymbol{h}}}}}}}}_{{{{{{\bf{HE}}}}}}}^{{{{{2}}}}}\) and \({\hat{{{{{{\boldsymbol{h}}}}}}}}_{{{{{{\bf{REML}}}}}}}^{{{{{2}}}}}\) in real traits
To investigate whether our theoretical predictions are observable in real data, we examined the relationship between sample size and \({\hat{h}}_{{{{{{\rm{SNP}}}}}}}^{2}\) in a sample of 335,551 unrelated Europeanancestry individuals in the UK Biobank^{27}. We a priori selected four phenotypes based on evidence (height, years of education) or lack of evidence (body mass index, bone mineral density) for primary phenotypic AM in a previous study^{14}. We then computed \({\hat{h}}_{{{{{{\rm{HE}}}}}}}^{2}\) and \({\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}\) in pairs of small (\({n}_{{{{{{\rm{small}}}}}}}\) = 16,000) versus large (\({n}_{{{{{{\rm{large}}}}}}}\) = \(n\)–16,000) disjoint subsamples, where \(n\) denotes the total available sample size for each phenotype. Consistent with theory and simulation results, the effect of sample size on \({\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}\) was significantly different from the effect of sample size on \({\hat{h}}_{{{{{{\rm{HE}}}}}}}^{2}\) for height (\(p\) = 5.24e−4) and for years of education (\(p\) = 3.94e−4); this was not observed for body mass index (\(p\) = 0.094) or for bone mineral density (\(p\) = 0.302; see “Methods” section, Fig. 4). These height results are congruent with those of Mandal and colleagues, who independently observed that \({\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}\) decreased with increasing sample size^{28}. Unlike previous approaches which quantified the degree of AM for traits by correlating polygenic scores between mates^{4} or withinindividuals but between chromosomes^{14}, our approach does not require the calculation of polygenic scores and is agnostic with respect to variant direction and effect size. Thus, calculating \({\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}\) across subsamples of varying sizes provides an alternative and independent way to detect genomic signatures of AM.
Interpretation of \({\hat{{{{{{\boldsymbol{h}}}}}}}}_{{{{{{\bf{SNP}}}}}}}^{{{{{2}}}}}\) in the presence of AM
As we have shown, AM complicates the interpretation of \({\hat{h}}_{{{{{{\rm{SNP}}}}}}}^{2}\). This complication is due not only to the differential effect AM has on \({\hat{h}}_{{{{{{\rm{HE}}}}}}}^{2}\) and \({\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}\) as a function of sample size, but also because AM changes the true heritability in the population. This means that \({\hat{h}}_{{{{{{\rm{SNP}}}}}}}^{2}\) can be compared to two different population parameters: the equilibrium heritability \({h}_{{{\infty }}}^{2}\), and the panmictic heritability \({h}_{0}^{2}\). We input \({\hat{h}}_{{{{{{{\mathrm{HE}}}}}}}}^{2}\) and previously reported spousal correlations for height^{2} and educational attainment^{4} into Eq. (3) to estimate \({h}_{{{\infty }}}^{2}\) and \({h}_{0}^{2}\). \({\hat{h}}_{{{{{{\rm{HE}}}}}}}^{2}\) was inflated by 14% for height and 7% for years of education relative to \({\hat{h}}_{\infty }^{2}\) and by 21 and 14% relative to \({\hat{h}}_{0}^{2}\) (Table 1). We note that this underestimates the absolute bias of \({\hat{h}}_{{{{{{\rm{HE}}}}}}}^{2}\) with respect to \({h}_{{{\infty }}}^{2}\) and \({h}_{0}^{2}\) to the extent that causal variants are missing from our measured genotype data.
Although these estimates of \({h}_{{{\infty }}}^{2}\) and \({h}_{0}^{2}\) rely on the assumption that AM has reached equilibrium, theoreticallysound bounds for \({h}^{2}\) can be derived for traits where AM is at disequilibrium. Specifically, the current heritability for a population having undergone \(t\) generations of AM, \({h}_{{{{{{\mathrm{t}}}}}}}^{2}\), is bounded in expectation from above by \({\hat{h}}_{{{{{{\rm{HE}}}}}}}^{2}\), with equality at \(t=0\) (panmixis), and from below by \({\hat{h}}_{\infty }^{2}={\mathbb{E}}\left[{h}_{{{\infty }}}^{2}{\hat{h}}_{{{{{{\rm{HE}}}}}}}^{2}{;t}=\infty \right]\), with equality as \(t\to \infty\) (equilibrium). Likewise, \({h}_{0}^{2}\) is bounded in expectation from below by \({\hat{h}}_{0}^{2}={\mathbb{E}}\left[{h}_{0}^{2}{\hat{h}}_{{{{{{\rm{HE}}}}}}}^{2}{;t}=0\right]\) with equality as \(t\to \infty\), and from above by \({\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}\) with equality at all generations. This latter bound will narrow as sample size increases. Thus, regardless of whether AM is at equilibrium, so long as the strength of AM has not decreased across generations, [\({\hat{h}}_{\infty }^{2},{\hat{h}}_{{{{{{\rm{HE}}}}}}}^{2}\)] provides probabilistic bounds for the present day \({h}^{2}\) whereas [\({\hat{h}}_{0}^{2},{\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}\)] provides probabilistic bounds for \({h}_{0}^{2}\) (Fig. 1).
Discussion
Summary of findings
In the last decade, there has been much interest in the interpretation of \({\hat{h}}_{{{{{{\rm{SNP}}}}}}}^{2}\) and the factors that can influence it^{29}. Such factors include the number of causal variants and their typical levels of LD compared to the LD of SNPs used in the analysis^{30,31}, the relationship between causal variant effect sizes and minor allele frequencies^{32}, and passive gene–environment correlation arising from population stratification^{33} or genetic nurture^{7}. Despite this activity and the recent evidence corroborating longstanding theoretical expectations that AM alters the genetic architecture of heritable traits^{14}, the effects of AM on \({\hat{h}}_{{{{{{{\mathrm{SNP}}}}}}}}^{2}\) have remained a matter of speculation^{9,30,34}. In the present investigation, we clarify how AM influences \({\hat{h}}_{{{{{{\rm{SNP}}}}}}}^{2}\) and show that these influences are different for MoM versus REML estimators as a function of sample size. By characterizing the full joint distribution of causal variants at equilibrium, we prove that REML produces a consistent estimator of \({h}_{0}^{2}\) (the heritability in the ancestral randommating population), not \({h}_{\infty }^{2}\) (the present generation heritability for a trait at equilibrium), in large samples (see Supplementary Notes 2 and 3). However, under AM, \({\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}\) behaves oddly in finite samples. It is higher than \({h}_{\infty }^{2}\) in sample sizes typical of those published in the literature but drops below \({h}_{\infty }^{2}\) in sample sizes that are large by current standards (e.g., \(n \, > \, {{{{\mathrm{200}}}}},\!{000}\)). On the other hand, MoM estimators yield estimates that are biased upwards with respect to both \({h}_{\infty }^{2}\) and \({h}_{0}^{2}\) and remain stable across sample sizes. Using UK Biobank data, we observed this differential behavior of \({\hat{h}}_{{{{{{\rm{HE}}}}}}}^{2}\) and \({\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}\) for two traits with previous evidence of primary phenotypic AM but not for two negative control traits. We further showed how the two population parameters of interest, \({h}_{{{\infty }}}^{2}\) and \({h}_{0}^{2}\), can be estimated under the assumption of equilibrium given spousal correlations and \({\hat{h}}_{{{{{{\rm{HE}}}}}}}^{2}\), and that, at disequilibrium, the likely ranges of \({h}^{2}\) in the current generation and \({h}_{0}^{2}\) can also be estimated.
Implications
The impact that AM has on \({\hat{h}}_{{{{{{\rm{SNP}}}}}}}^{2}\) may often be negligible simply because AM is very low or nonexistent for many traits. For other traits, however, this does not appear to be the case, including “benchmark” traits like height and educational attainment as well as many behavioral and psychiatric traits. For example, the tetrachoric correlations between Swedish spouses for attention deficit hyperactive disorder (\(r\) = 0.31), autism spectrum disorder (\(r\) = 0.28), schizophrenia (\(r\) = 0.26), and substance use disorder (\(r\) = 0.30) are all higher than those typically observed for height^{35}. Furthermore, many social attitudes such as conservatismliberalism (\(r\) = 0.61) and religiosity (\(r\) = 0.71) exhibit extremely high spousal correlations, and available evidence is more consistent with a primary phenotypic model than social homogamy or convergence^{36}. Such social attitude traits appear to be moderately heritable (\({\hat{h}}^{2}\approx\) 0.20–0.30) in extended twin family designs robust to biases caused by AM^{37}, although no values of \({\hat{h}}_{{{{{{\rm{SNP}}}}}}}^{2}\) for such social attitude traits are yet available.
Our findings suggest caution is warranted when comparing \({\hat{h}}_{{{{{{\rm{SNP}}}}}}}^{2}\) for traits subject to AM when characteristics of the populations, samples, or designs differ. First, the effect that AM has on causal variant correlations is rapid—about half of its effect occurs after a single generation and it approaches equilibrium within 5–15 generations; as such, both the true heritability and the extent to which \({\hat{h}}_{{{{{{\rm{SNP}}}}}}}^{2}\) is biased will differ across populations that vary in strength or duration of AM. Second, because the expectation of \({\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}\) decreases monotonically in \(n\), comparing \({\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}\) across samples of different sizes can create artifactual discrepancies. Third, though both \({\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}\) and \({\hat{h}}_{{{{{{\rm{HE}}}}}}}^{2}\) are expected to increase as the fraction of causal variants included in the model increases, the relative bias of \({\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}\) will further increase if the inclusion of additional markers comes at the cost of decreased sample size. Therefore, the difference in REML estimates from a smaller sample of wholegenome sequence data (which ostensibly includes previously missing causal variants) versus those derived from a larger sample of SNP array data will appear artificially greater, though we note that additional factors, such as differences in the extents to which array versus sequence data are corrupted by subtle forms of population structure, might also contribute to such discrepancies. Fourth, our results demonstrate that the controlling for genomic principal components does not mitigate AMinduced biases; indeed, the asymptotic distributions of the eigenvalues of the GRM under random versus assortative mating are equivalent. As AM is in essence a form of population structure, our results reveal that our current understanding of the extent to which residual population structure might impact estimators of quantitative genetic parameters is incomplete. Finally, our results suggest that AM complicates comparisons of \({\hat{h}}_{{{{{{\rm{SNP}}}}}}}^{2}\) to estimates of heritability derived from familybased methods (mostly from twins, hence \({\hat{h}}_{{{{{{\rm{twin}}}}}}}^{2}\)). On one hand, as we have shown, AM reduces the gap between \({\hat{h}}_{{{{{{\rm{twin}}}}}}}^{2}\) and \({\hat{h}}_{{{{{{\rm{SNP}}}}}}}^{2}\) by biasing \({\hat{h}}_{{{{{{\rm{SNP}}}}}}}^{2}\) up. However, AM also influences \({\hat{h}}_{{{{{{\rm{twin}}}}}}}^{2}\) depending on the design, biasing it downwards in “ACE” models that estimate additive genetic and shared environmental variance and upwards in “ADE” models that estimate additive genetic and dominance genetic variance. Together with the previously discussed dependence of \({\hat{h}}_{{{{{{\rm{SNP}}}}}}}^{2}\) on method and sample size, this further problematizes efforts to quantify the “stillmissing” heritability (\({\hat{h}}_{{{{{{\rm{twin}}}}}}}^{2}{\hat{h}}_{{{{{{\rm{SNP}}}}}}}^{2}\)).
Limitations and future directions
There are several limitations of the current approach. First among these are assumptions inherent to the primary phenotypic AM model. Some of these assumptions, including equilibrium and constancy of the phenotypic mating correlations across generations, aid with mathematical tractability but are to some extent inessential to the resulting phenomena. For example, while the problem of characterizing the joint distribution of causal variants is more difficult in a population subject to disequilibrium AM, we observed that estimators behave in a similar, albeit less extreme, fashion relative to their behavior in an equilibrium population. Other assumptions, such as the absence of gene–environment correlation (which may occur, for example, in the presence of vertical transmission) and the conditional independence of mates’ genotypes given the heritable components of their phenotypes (which may be violated in structured populations), are more difficult to evaluate and deserve consideration in future investigations. For instance, when environmental influences are transmitted from parents to offspring, the dependence between causal variants will extend to nonheritable factors such that, in subsequent generations, all traitincreasing allelecounts and traitincreasing environmental factors will become positively correlated, and the linear mixed model assumed by both the REML and MoM estimators will be further misspecified.
We have also not investigated the impact that AM has on polygenic scores or withinfamily classes of estimators. For example, LDscore regression can be estimated based upon regression estimates from withinsibling analyses. The estimated genetic variance from such an analysis would be that in the base population (because it is based on the segregation variance), but the estimated phenotypic variance would be that in in the current population. This would also lead to a bias in heritability estimation (and similarly for heritability estimates using relatedness disequilibrium regression^{10}), as was pointed out in ref. ^{38}. This bias is different than those described here in that it is lower than either the base population or equilibrium population heritability. Additionally, we have not found closedform solutions to \({\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}\) that would allow us to correct REML estimates in the same way we have corrected HE estimates under the assumption of equilibrium AM. Further, we have not investigated the impact that natural selection has on the longrange correlations between causal variants and SNPs and what impact this might have on \({\hat{h}}_{{{{{{\rm{SNP}}}}}}}^{2}\). Finally, we have not considered the effects of multivariate AM or the impact of AM on markerbased genetic correlation estimators, which will also be misspecified under crosstrait AM. As such, these results should provide motivation and a starting place for the development of new methods that can provide unbiased estimates of genomic variance in the presence of AM and other factors that can influence the longrange correlations between SNPs.
Methods
Theoretical framework
The primary phenotypic assortment model
Here we introduce the model of AM as proposed by Fisher^{5} and further developed by Nagylaki and others^{39,40} (see Supplementary Note 1 for a detailed exposition). Briefly, we consider a phenotype as a random vector composed of independent heritable and nonheritable components:
where the rows of \({{{{{\bf{Z}}}}}}\), representing individuals’ standardized genotypes, are independent \(m\)dimensional random vectors following a multivariate discrete distribution with finite moments and finite support and which we assume are independent under panmixis. The vector of allele substitution effects \({{{{{\bf{u}}}}}}\), which we treat as fixed, is such that \({{{{{{\bf{u}}}}}}}^{{{{{{\rm{T}}}}}}}{{{{{\bf{u}}}}}}={\sigma }_{{{g}},0}^{2}\). Further, we assume that 1. parent–parent–offspring trios’ phenotypes are jointly Gaussian; 2. the phenotypic correlation between mates, \(r\) is constant across generations; and 3. there exists \({c}_{0}\in \left(0,{{\infty }}\right)\) such that \(\mathop{{\max }}\limits_{k=1,\ldots ,m}\left{u}_{k}\right\le {c}_{0}\cdot {m}^{1/2}\); that is, as traits become increasingly polygenic, the maximal variance attributable to individual variants decreases commensurately.
The equilibrium distribution of causal variants
Over successive generations, the correlation between mates’ phenotypes induces positive correlations across trait increasing allele counts independent of physical position on the genome and thereby increases the total genetic variance of the trait. The genetic variance rapidly approaches a stable equilibrium after several generations (typically within ten generations), at which point the withinindividual and crossmate correlations among causal variants are equal to one another. Using the results of Nagylaki^{39}, we can express the equilibrium covariance matrix between causal variants as a low rank perturbation of a diagonal matrix of the form: \({{{{{{\boldsymbol{{\Upsilon }}}}}}}}_{{{\infty }}}={{{{{\bf{D}}}}}}+2{{{{{\boldsymbol{\phi }}}}}}{{{{{{\boldsymbol{\phi }}}}}}}^{{{{{{\rm{T}}}}}}}\), where \({{{{{\boldsymbol{\phi }}}}}}\) is a known vectorvalued function of the substitution effects and mating correlation (see Supplementary Note 1.2) with elements \({\phi }_{{{k}}}=O({m}^{1/2})\) uniformly.
Higher order moments and the limiting spectral distribution of GRM
Employing tools from the study of thermodynamic equilibria, we extend these classical results to bound moments of higher orders (see Supplementary Note 2). Using these results, we extend the widelyknown MarčenkoPastur theorem, which describes the limiting distribution of the spectrum of sample covariance matrices corresponding to random matrices with independent subGaussian elements^{41}, to the case of random matrices with independent rows meeting particular moment conditions (see Supplementary Note 2). Together, these results establish the limiting spectral distribution of the sample GRM (i.e., the distribution of the eigenvalues of the sample GRM as both sample size and polygenicity increase) under AM, providing the necessary theoretical foundation to characterize the asymptotic behavior of the REML estimator. Further, these results explain why controlling for principal components fails to remove AMinduced biases: the impact of AM on the spectrum of the GRM is asymptotically negligible.
HasemanElston regression under AM
The HE regression estimator^{42} is obtained by regressing the subdiagonal elements of the standardized phenotypic outer product \(\widetilde{{{{{{\bf{y}}}}}}}{\widetilde{{{{{{\bf{y}}}}}}}}^{{{{{{\rm{T}}}}}}}\) on the subdiagonal elements of the GRM \({m}^{1}{{{{{\bf{Z}}}}}}{{{{{{\bf{Z}}}}}}}^{{{{{{\rm{T}}}}}}}\). Whereas elements of the outcome (the phenotypic outer product) reflect the dependences among all pairs of causal loci:
elements of the GRM only capture the dependences within loci:
As a result, the variance of the outcome increases whereas the variance of predictor remains largely unaffected, leading to overestimation of \({h}_{{{{{{{\mathrm{SNP}}}}}}}}^{2}\) (Fig. 1; see Supplementary Note 3 for further details and proof).
REML and the spectrum of the GRM under AM
The REML estimator^{19} models the phenotype as a random vector with marginal distribution,
where \({{{{{\bf{X}}}}}}\) is an \(n\times c\) matrix of covariates with fixed effects \({{{{{\boldsymbol{\beta }}}}}}\) and the covariance structure is comprised of a heritable component (\({\sigma }_{{{g}}}^{2}\) times the GRM) and a nonheritable component (\({\sigma }_{e}^{2}\) times the identity). The heritability estimator \({\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}={\hat{\sigma }}_{{{g}}}^{2}/({\hat{\sigma }}_{{{g}}}^{2}+{\hat{\sigma }}_{{{e}}}^{2})\) is derived by finding the values of the variance components that satisfy the equation,
where \({{{{{\mathcalligra{l}}}}}}\) denotes the marginal log likelihood of the transformed random variable \({{{{{{\bf{A}}}}}}}^{{{{{{\rm{T}}}}}}}{{{{{\bf{y}}}}}}\) for \({{{{{{\bf{A}}}}}}}^{{{{{{\rm{T}}}}}}}:{\mathbb{R}}^{n}\to {({{\mbox{col}}}\,{{{{{\bf{X}}}}}})}^{\perp }\subseteq {{\mathbb{R}}}^{nc}\), \({{{{{{\bf{A}}}}}}}^{{{{{{\rm{T}}}}}}}{{{{{\bf{A}}}}}}={{{{{\bf{I}}}}}}\). The conditional expectation of \(\nabla {{{{{\mathcalligra{l}}}}}}\) given the genotypes is a function of the eigenvalues of the GRM and, as a result, the asymptotic behavior of \({\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}\) is governed by the asymptotic distribution of the eigenvalues of \({m}^{1}{{{{{\bf{Z}}}}}}{{{{{{\bf{Z}}}}}}}^{{{{{{\rm{T}}}}}}}\). A foundational result in random matrix theory states that for zeromean unitvariance subGaussian random matrices \({{{{{\bf{W}}}}}}\in {{\mathbb{C}}}^{n\times m}\) with independent elements, the empirical spectral distribution function of \({m}^{1}{{{{{\bf{W}}}}}}{{{{{{\bf{W}}}}}}}^{{{{{{\rm{T}}}}}}}\) converges almost surely to the MarčenkoPastur distribution^{41}. Employing this result, Jiang and colleagues^{43} demonstrated that, in the case of independent causal variants, REML consistently estimates the true heritability in high dimensional settings and is robust to certain forms of model misspecification. In Supplementary Note 2, we demonstrate that even though AM induces dependence among causal variants, this dependence is “weak” in the sense that it doesn’t change the limiting spectral distribution of the GRM, thereby allowing us to apply arguments in line with those of Jiang and colleagues’ (see Supplementary Note 3). Intuitively our result can be summarized as follows: as the sample size and the number of causal variants become large, the eigenvalues of the GRM under AM behave as if the causal variants were independent (as is largely the case under random mating). The behavior of the REML estimator is determined by the behavior of the eigenvalues of the GRM, and thus \({\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}\) converges to what the heritability would be if the causal variants were independent, i.e., the panmictic heritability.
Simulation studies
We employed a realistic forwardtime simulation framework to generate genotypic and phenotypic data. We then used these data to motivate and verify theoretical results. Below, we describe the general framework and specific simulations we performed.
Simulation framework
Given a recombination map and \({n}_{{{{{\rm{input}}}}}}\) individuals’ phased biallelic genotypes at \(p\) diploid loci as input, we divided the genome into \(k\ll p\) contiguous, nonoverlapping 50kB intervals to obtain a collection of blocks, the disjoint union of which comprises the genome. Recombination events, which occurred with probabilities dictated by the recombination map, were restricted to interval boundaries, thus dramatically reducing the number of haplotypes that to keep track of while maintaining high genomic resolution and realistic LD. To achieve a target population size \({N}_{{{{{\rm{sim}}}}}} \, > \,{n}_{{{{{\rm{input}}}}}}\), \({N}_{{{{{\rm{sim}}}}}}\) pairs of the \({n}_{{{{{\rm{input}}}}}}\) individuals were nonmonogamously ‘mated’ (i.e., matched and subject to meiosis), resulting in a new generation of \({N}_{{{{{\rm{sim}}}}}}\) individuals whose genomes were could be represented in terms of the which of the \({n}_{{{{{\rm{input}}}}}}\) haplotype blocks they inherited at each of the \(k\) intervals. We then repeated this random mating procedure for an additional five generations, resulting in \({N}_{{{{{\rm{sim}}}}}}\) chimeric combinations of the original \({n}_{{{{{\rm{input}}}}}}\) genotypes while maintaining the LD structure of the original data. These chimeric genotypes comprised the input for the principal AM simulations.
At the beginning of each particular AM simulation with prespecified panmictic heritability \({h}_{0}^{2}={\sigma }_{{{g}},0}^{2}/({\sigma }_{{{g}},0}^{2}+{\sigma }_{{{e}}}^{2}),\) phenotypic correlation between mates \(r\), \(p\) SNPs, and \(m\) diploid causal loci \({z}_{1},\ldots ,{z}_{{{m}}}\), \(m\ll p\), the standardized allele substitution effects \({u}_{1},\ldots ,{u}_{{{m}}}\) were independently drawn from a Gaussian distribution with expectation zero and variance \({\sigma }_{{{g}},0}^{2}/m\). Unless otherwise stated, all simulations used \(p\) = 10^{6} SNPs. At each generation, phenotypes were constructed via \({{{{{\bf{y}}}}}}={{{{{\bf{Zu}}}}}}+{{{{{\bf{e}}}}}}\) where \({{{{{\bf{e}}}}}}\) was i.i.d. Gaussian with zero expectation and variance \({\sigma }_{{{e}}}^{2}\). Next, mates were matched according to their respective phenotypes \({y}_{{{i}}}\), \({y}_{{{j}}}\) such that \({{{{{\mathrm{corr}}}}}}\left({y}_{{{i}}},\ {y}_{j}\right)\approx r\)^{44}. This was achieved by drawing \({N}_{{{{{\rm{sim}}}}}}\) independent doubles \({\{{\left({{{{{{\bf{w}}}}}}}^{{{{{{\boldsymbol{* }}}}}}}{{{{{\boldsymbol{,}}}}}}{{{{{{\bf{w}}}}}}}^{{{{{{\boldsymbol{* }}}}}}{{{{{\boldsymbol{* }}}}}}}\right)}^{{{\rm{T}}}}\}}_{k=1}^{{N}_{{{{{\rm{sim}}}}}}}{{{{{\mathscr{\sim }}}}}}{{{{{\mathscr{N}}}}}}\left(\left[\begin{array}{c}0\\ 0\end{array}\right],\left[\begin{array}{cc}1 & r\\ r & 1\end{array}\right]\right)\) from which \({N}_{{{{{\rm{sim}}}}}}\) pairs of indices \({\{\left(i,j\right)\}}_{k=1}^{{N}_{{{\mbox{sim}}}}}\) were constructed such that \({\left(i,j\right)}_{{{k}}}\) were the positions of \({w}_{{{k}}}^{* }\) and \({w}_{{{k}}}^{* * }\) after concatenating and sorting each element of \({\{{\left({{{{{{\bf{w}}}}}}}^{{{{{{\boldsymbol{* }}}}}}},{{{{{{\bf{w}}}}}}}^{{{{{{\boldsymbol{* }}}}}}{{{{{\boldsymbol{* }}}}}}}\right)}^{{{\rm{T}}}}\}}_{k=1}^{{N}_{{{{{\rm{sim}}}}}}}\). Similarly, \({N}_{{{{{\rm{sim}}}}}}\) indices \({l=l}_{1},\ldots ,{l}_{{N}_{{{\mbox{sim}}}}}\) were constructed such that \({l}_{{{k}}}\) indexed the \(k\)th largest of the \({N}_{{{{{\rm{sim}}}}}}\) simulated phenotypes. Finally, each \(k\)th mating pair was determined by taking the \({l}_{\lfloor {i}_{k}/2\rfloor }\)th and \({l}_{\lfloor {i}_{j}/2\rfloor }\)th replicates. Having chosen mates, meiosis occurred as previously detailed to construct the next generations’ genotypes. All simulations were conducted in Python v3.6.8^{45} using the numpy v1.16.2^{46}, scipy v1.2.1^{47}, and dask v1.1.4^{48} libraries.
Simulations using UK Biobank data
For each simulation, the input data were derived from phased, imputed genotypes at \(p\) = 10^{6} randomly selected imputed SNP loci in a subsample of \({n}_{{{{{\rm{input}}}}}}\) = 435,301 European UK Biobank participants^{27}. Retained SNPs met the following criteria: minor allele frequency >0.01, Hardy–Weinberg \(p\)value >10^{−6}, INFO score >0.95, and presence on the 1000 Genomes Phase 3 (1KG3) reference panel^{49}. Genotype data were then phased to the 1KG3 reference panel in batches of 40,000 individuals using Eagle v2.4^{50}. Data were then grown to a population of \({N}_{{{{{\rm{sim}}}}}}\) = 10^{6} chimeric genotypes and subjected to an additional five generations of random mating as described above before being subject to AM.
We conducted AM simulations for varying mating correlations, \(r\in \{0,.25,.5,.75\}\) and numbers of causal variants, \(m\in \left\{{10}^{4},{10}^{5}\right\}\), with panmictic heritability fixed at \({h}_{0}^{2}=.5\). Each simulation consisted of fifteen generations of AM and produced results congruent with classical theory. Prior to heritability estimation, close relatives \(\hat{\pi }\ge .05\), were removed using GCTA v1.93.1^{20}, resulting in an average sample size of 141,667 across simulated datasets. Additionally, we ran a limited number of larger, more computationally intensive simulations (\({N}_{{{{{\rm{sim}}}}}}\) = 3 × 10^{6}) with mating correlations fixed at \(r=.5\) to investigate the large sample behavior of the REML estimator, resulting in at least 648,000 unrelated individuals across simulated datasets. There were no apparent differences across simulations as a function of \(m\), \(p\), or \({N}_{{{{{\rm{sim}}}}}}\) (Supplementary Fig. 1). We note that these simulations assume a homogenous population without any population structure apart from that induced by primary phenotypic AM; thus, the irrelevance of \(p\) here does not necessarily speak to the consequences of increasing the number of variants under consideration by decreasing allele frequency or imputation quality score thresholds, as is common practice, if the additional variants capture additional finescale population structure.
Heritability estimation in simulated data
We split each simulated genotype–phenotype dataset into collections of random subsamples mutually exclusive within collection but not across collections, yielding 16 samples of 16,000 individuals, eight samples of 16,000, four samples of 32,000 individuals, two samples of 64,000 individuals, and one sample of 128,000 individuals. We then performed HE regression and singlecomponent REML for each subsample (Fig. 2a). We used GCTA v1.91.3b^{20} to construct genomic related matrices and perform HE regression. We obtained \({\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}\) using BOLTLMM v2.3.4^{51} for computational efficiency; though BOLTLMM uses a randomized algorithm, its numerical accuracy is comparable to that of the exact algorithm implemented GCTA^{52}.
We also performed a variety of supplementary analyses for a limited set of simulation parameters (\(r=.5\), \({h}_{0}^{2}=.5\), and \(m\in \left\{{10}^{4},{10}^{5}\right\},N={10}^{6}\)). To demonstrate that including genomic PCs as covariates does not mitigate the impact of AM, we included ten PCs as covariates in the HE regression and REML analyses. For the former, HE regression was conducted in LDAK v5.0^{53}, as the HE regression implementation in GCTA cannot accommodate covariates. To demonstrate that the behavior of LDSC under AM is equivalent to that of HE regression (assuming that the LD scores accurately reflect the LD structure of the sample), we used PLINK v1.9^{54} to obtain GWAS summary statistics and LDSC v1.0.1^{18} to estimate withinsample LD scores using a one centiMorgan sliding window and to perform LDSC regression (Fig. 4a). To demonstrate that multiple variance component (also known as partitioned approaches^{30,55}) do not mitigate the impact of AM, we fit multicomponent HE regression and REML after partitioning SNPs by minor allele frequency and LD score (Fig. 4a). Finally, to assess the scenario wherein a nontrivial fraction of causal variants are missing from \({{{{{\bf{Z}}}}}}\), we estimated HE regression and REML models after removing 50 or 75% of simulated SNPs at random (Fig. 4b).
Statistics
Sampling procedures
We analyzed 1,211,273 biallelic 1KG3 SNPs with insample minor allele frequency >0.01, Hardy–Weinberg \(p\)value >10^{−6}, and INFO scores >0.95, in a sample of 335,551 unrelated European UK Biobank participants^{27}. We selected phenotypes a priori on the basis of previous evidence for AM; we chose height (\(n=\) 334,798) and years of education (\(n=\) 332,198) as traits with previous evidence of primary phenotypic AM, whereas we chose body mass index (\(n=\) 334,429) and bone mineral density (\(n=\) 191,330) as negative control traits^{14}. We measured years of education following the procedures detailed in ref. ^{9}. For the results reported in Table 1, we used previously reported estimates of phenotypic spousal correlations^{2,4}. For height specifically, we combined the estimates from multiple British cohorts included in a metaanalysis^{2} via inverse variance weighting.
Analysis/resampling
We tested for evidence of AM by comparing \({\hat{h}}_{{{{{{\rm{HE}}}}}}}^{2}\) and \({\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}\) in small and large samples. We randomly selected ten mutually exclusive subsamples of \({n}_{{{{{{\rm{small}}}}}}}\) = 16,000 individuals for each trait and compared HE and REML estimates in each subsample to the nonoverlapping complementary subsample comprised of the remaining \({n}_{{{{{{\rm{large}}}}}}}=n\)−16,000 individuals, controlling for sex, age, genotyping batch, testing center, and the first ten genomic ancestry PCs. To eliminate variance in heritability estimates due to chance differences in covariate effect estimates across subsamples, we adjusted genotypes and phenotypes in the full sample prior to all following analyses. To our knowledge, existing software is incapable of efficient REML analysis using adjusted genotypes (analogous to dosages) in large samples; e.g., BOLTREML requires hardcalls as input, whereas GCTA and LDAK have cubic complexity in the number of individuals and markers and would require weeks to run on a high threadcount server. We therefore utilized a modified Python implementation of the REML algorithm presented in ref. ^{52} (available at https://github.com/rborder/SL_REML^{56}). We used LDAK v5.0 to obtain adjusted HE regression estimates^{53}. In order to quantify the divergence of \({\hat{h}}_{{{{{{\rm{HE}}}}}}}^{2}\) and \({\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}\) as a function of \(n\), we performed the following test, analogous to a \(t\)test of the interaction effect in a 2 × 2 withinsubjects experimental design:
\({H}_{0}:\bar{\delta }:=({\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}(S)\,{\hat{h}}_{{{{{{\rm{REML}}}}}}}^{2}({S}^{C}))({\hat{h}}_{{{{{{\rm{HE}}}}}}}^{2}(S)\,{\hat{h}}_{{{{{{\rm{HE}}}}}}}^{2}({S}^{C}))=0,\)
\(\hskip 105pt{H}_{1}:\bar{\delta }\ne 0,\)where \(S\) denotes a given large subsample and S^{c} its complementary small subsample. Though this procedure accounts for the dependence among estimates derived in the same subsamples, the individual observations were derived from various partitionings of the same data and do not constitute truly independent observations. Therefore, the \(p\)values for this test reported in the main text should be interpreted as descriptive despite our application of inferential procedures.
All statistical analyses and visualizations were conducted in R v3.5.0^{57} using the ggplot2 v3.3.3^{58} and MASS v7.3.49^{59} libraries.
Ethical approval
Ethics approval for the UK Biobank study was obtained by the UK Biobank team from the North West Center for Research Ethics Committee (11/NW/0382). Access to the UK Biobank data was granted to principal investigator Dr. Matthew C. Keller (researcher ID 16651).
Reporting summary
Further information on research design is available in the Nature Research Reporting Summary linked to this article.
Data availability
Data are available through the UK Biobank Access Management System (https://www.ukbiobank.ac.uk/enableyourresearch/applyforaccess). A full catalogue of the data examined, including raw materials and descriptive statistics, is available via the online showcase (https://biobank.ndph.ox.ac.uk/ukb). A full description of the study protocols has been provided by the UK Biobank team^{60}.
Code availability
The REML implementation utilized is available online (https://github.com/rborder/SL_REML^{56}).
References
Jiang, Y., Bolnick, D. I. & Kirkpatrick, M. Assortative mating in animals. Am. Nat. 181, E125–E138 (2013).
Stulp, G., Simons, M. J. P., Grasman, S. & Pollet, T. V. Assortative mating for human height: a meta‐analysis. Am. J. Hum. Biol. 29, e22917 (2017).
Nordsletten, A. E. et al. Patterns of nonrandom mating within and across 11 major psychiatric disorders. JAMA Psychiatry 73, 354–361 (2016).
Robinson, M. R. et al. Genetic evidence of assortative mating in humans. Nat. Hum. Behav. 1, 0016 (2017).
Fisher, R. A. The correlation between relatives on the supposition of Mendelian inheritance. Trans. R. Soc. Edinb. 52, 399–433 (1919).
Eaves, L. The use of twins in the analysis of assortative mating. Heredity 43, 399–409 (1979).
Kong, A. et al. The nature of nurture: effects of parental genotypes. Science 359, 424–428 (2018).
Howe, L. J. et al. Genetic evidence for assortative mating on alcohol consumption in the UK Biobank. Nat. Commun. 10, 1–10 (2019).
Lee, J. J. et al. Gene discovery and polygenic prediction from a genomewide association study of educational attainment in 1.1 million individuals. Nat. Genet. 50, 1112 (2018).
Young, A. I. et al. Relatedness disequilibrium regression estimates heritability without environmental bias. Nat. Genet. 50, 1304–1310 (2018).
Hartwig, F. P., Davies, N. M. & Davey Smith, G. Bias in Mendelian randomization due to assortative mating. Genet. Epidemiol. 42, 608–620 (2018).
Brumpton, B. et al. Avoiding dynastic, assortative mating, and population stratification biases in Mendelian randomization through withinfamily analyses. Nat. Commun. 11, 3519 (2020).
Young, A. I. Solving the missing heritability problem. PLoS Genet. 15, e1008222 (2019).
Yengo, L. et al. Imprint of assortative mating on the human genome. Nat. Hum. Behav. 2, 948 (2018).
Wainschtein, P. et al. Recovery of trait heritability from whole genome sequence data. Preprint at bioRxiv https://doi.org/10.1101/588020. (2019).
Haseman, J. K. & Elston, R. C. The investigation of linkage between a quantitative trait and a marker locus. Behav. Genet. 2, 3–19 (1972).
Golan, D., Lander, E. S. & Rosset, S. Measuring missing heritability: Inferring the contribution of common variants. Proc. Natl. Acad. Sci. 111, E5272–E5281 (2014).
BulikSullivan, B. K. et al. LD Score regression distinguishes confounding from polygenicity in genomewide association studies. Nat. Genet. 47, 291–295 (2015).
Searle, S. R., Casella, G. & McCulloch, C. E. Variance Components. vol. 391 (Wiley, 2009).
Yang, J., Lee, S. H., Goddard, M. E. & Visscher, P. M. GCTA: a tool for genomewide complex trait analysis. Am. J. Hum. Genet. 88, 76–82 (2011).
Loh, P.R. et al. Contrasting genetic architectures of schizophrenia and other complex diseases using fast variance components analysis. Nat. Genet. 47, 1385–1392 (2015).
Domingue, B. W. et al. The social genome of friends and schoolmates in the National Longitudinal Study of Adolescent to Adult Health. Proc. Natl. Acad. Sci. 115, 702–707 (2018).
Yengo, L. et al. No evidence for social genetic effects or genetic similarity among friends beyond that due to population stratification: a reappraisal of Domingue et al. (2018). Behav. Genet. 50, 67–71 (2020).
BulikSullivan, B. Relationship between LD Score and HasemanElston Regression. https://doi.org/10.1101/018283 (2015).
de Los Campos, G., Sorensen, D. & Gianola, D. Genomic heritability: What is it? PLoS Genet. 11, e1005048 (2015).
Yang, J. et al. Common SNPs explain a large proportion of the heritability for human height. Nat. Genet. 42, 565 (2010).
Sudlow, C. et al. UK Biobank: an open access resource for identifying the causes of a wide range of complex diseases of middle and old age. PLoS Med. 12, e1001779 (2015).
Mandal, R., De Los Campo, G., Grueneberg, A. & Maiti, T. Small and large sample bias of REML estimates of genomic heritability estimates: an assessment using big data. Presented at the Joint Statistical Meetings in Baltimore, Maryland. (2017).
Rawlik, K., CanelaXandri, O., Woolliams, J. & Tenesa, A. SNP heritability: What are we estimating? Preprint at bioRxiv https://doi.org/10.1101/2020.09.15.276121. (2020).
Evans, L. M. et al. Comparison of methods that use whole genome data to estimate the heritability and genetic architecture of complex traits. Nat. Genet. 50, 737–745 (2018).
Yang, J. et al. Genetic variance estimation with imputed variants finds negligible missing heritability for human height and body mass index. Nat. Genet. 47, 1114 (2015).
Speed, D., Hemani, G., Johnson, M. R. & Balding, D. J. Improved heritability estimation from genomewide SNPs. Am. J. Hum. Genet. 91, 1011–1021 (2012).
Browning, S. R. & Browning, B. L. Population structure can inflate SNPbased heritability estimates. Am. J. Hum. Genet. 89, 191–193 (2011).
Hou, K. et al. Accurate estimation of SNPheritability from biobankscale data irrespective of genetic architecture. Nat. Genet. 51, 1244–1251 (2019).
Peyrot, W. J., Robinson, M. R., Penninx, B. W. J. H. & Wray, N. R. Exploring boundaries for the genetic consequences of assortative mating for psychiatric traits. JAMA Psychiatry 73, 1189–1195 (2016).
Zietsch, B. P., Verweij, K. J. H., Heath, A. C. & Martin, N. G. Variation in human mate choice: simultaneously investigating heritability, parental influence, sexual imprinting, and assortative mating. Am. Nat. 177, 605–616 (2011).
Eaves, L. et al. Comparing the biological and cultural inheritance of personality and social attitudes in the Virginia 30,000 study of twins and their relatives. Twin Res. Hum. Genet. 2, 62–80 (1999).
Kemper, K. E. et al. Phenotypic covariance across the entire spectrum of relatedness for 86 billion pairs of individuals. Nat. Commun. 12, 1050 (2021).
Nagylaki, T. Assortative mating for a quantitative character. J. Math. Biol. 16, 57–74 (1982).
Gimelfarb, A. Quantitative characters under assortative mating: Gametic model. Theor. Popul. Biol. 25, 312–330 (1984).
Bai, Z. & Silverstein, J. W. Spectral Analysis of Large Dimensional Random Matrices. (Springer, 2010).
Elston, R. C., Buxbaum, S., Jacobs, K. B. & Olson, J. M. Haseman and Elston revisited. Genet. Epidemiol. 19, 1–17 (2000).
Jiang, J., Li, C., Paul, D., Yang, C. & Zhao, H. On highdimensional misspecified mixed model analysis in genomewide association study. Ann. Stat. 44, 2127–2160 (2016).
Tahmasbi, R. & Keller, M. C. GeneEvolve: a fast and memory efficient forwardtime simulator of realistic wholegenome sequence and SNP data. Bioinformatics 33, 294–296 (2017).
Van Rossum, G. & Drake, F. L. Python 3 Reference Manual. (CreateSpace, 2009).
Oliphant, T. NumPy: A Guide to NumPy (Trelgol Publishing, 2006).
Virtanen, P., Gommers, E., Oliphant, T. E., & Others. SciPy 1.0: Fundamental algorithms for scientific computing in python. Nature Methods 17, 261–272 (2020).
Dask Development Team. Dask: library for dynamic task scheduling. (2016). https://dask.org.
The 1000 Genomes Project Consortium. A global reference for human genetic variation. Nature 526, 68–74 (2015).
Loh, P.R. et al. Referencebased phasing using the Haplotype Reference Consortium panel. Nat. Genet. 48, 1443–1448 (2016).
Loh, P.R., Kichaev, G., Gazal, S., Schoech, A. P. & Price, A. L. Mixedmodel association for biobankscale datasets. Nat. Genet. 1, 906–908 (2018).
Border, R. & Becker, S. Stochastic Lanczos estimation of genomic variance components for linear mixedeffects models. BMC Bioinform. 20, 411 (2019).
Speed, D., Hemani, G., Johnson, M. R. & Balding, D. J. Improved heritability estimation from genomewide SNPs. Am. J. Hum. Genet. 91, 1011–1021 (2012).
Chang, C. C. et al. Secondgeneration PLINK: rising to the challenge of larger and richer datasets. GigaScience 4, 7 (2015).
Finucane, H. K. et al. Partitioning heritability by functional annotation using genomewide association summary statistics. Nat. Genet. 47, 1228–1235 (2015).
Border, R. SL_REML: v0.1b. (2021). https://doi.org/10.5281/ZENODO.5784640.
R. Core Team. R: A Language and Environment for Statistical Computing. R Foundation for Statistical Computing, Vienna, Austria. (2018). https://www.Rproject.org/.
Wickham, H. ggplot2: Elegant Graphics for Data Analysis. (Springer, 2016).
Venables, W. N. & Ripley, B. D. Modern Applied Statistics with S. (Springer, 2002).
Bycroft, C. et al. The UK Biobank resource with deep phenotyping and genomic data. Nature 562, 203–209 (2018).
Acknowledgements
R.B. was supported by the National Institutes of Health (T32NS048004). R.B., P.M.V., L.Y., M.J., and M.C.K. were supported by the National Institutes of Health (MH100141). L.Y. and P.M.V. were supported by the Australian Research Council (DE200100425, FL180100072). S.O. was supported in part by the National Science Foundation (DMS1810500).
Author information
Authors and Affiliations
Contributions
T.d.C., M.E.G., P.M.V., and M.C.K. conceived of and initiated the research. R.B. performed all simulations and empirical data analyses. R.B., S.O., and M.J. derived the mathematical results. R.B. and M.C.K. drafted the primary manuscript. R.B., P.M.V., L.Y., M.J., and M.C.K. contributed to the interpretation and presentation of results, the generation of followup hypotheses, and the editing process.
Corresponding authors
Ethics declarations
Competing interests
The authors declare no competing interests.
Peer review
Peer review information
Nature Communications thanks the anonymous reviewer(s) for their contribution to the peer review of this work. Peer reviewer reports are available.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Border, R., O’Rourke, S., de Candia, T. et al. Assortative mating biases markerbased heritability estimators. Nat Commun 13, 660 (2022). https://doi.org/10.1038/s41467022282949
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41467022282949
This article is cited by

The genetic basis of major depressive disorder
Molecular Psychiatry (2023)

How rare mutations contribute to complex traits
Nature (2023)

Partner choice, confounding and trait convergence all contribute to phenotypic partner similarity
Nature Human Behaviour (2023)

Celebrating a Century of Research in Behavioral Genetics
Behavior Genetics (2023)
Comments
By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.