Bayesian GWAS in Educational Research — Genome-Wide Association with Bayesian Inference

Statistics
Introduced by
Social Science Genetic Association Consortium (SSGAC); Bayesian GWAS methods developed by Ter Braak, Meuwissen, and others
Year
2013–2018 (educational attainment GWAS); Bayesian GWAS framework ~2001–2010
Type
Statistical genomics pipeline
Family
Bioinformatics / omics

What does it do?

Bayesian genome-wide association study (Bayesian GWAS) fits Bayesian statistical models to genome-wide SNP data to identify genetic variants associated with educational outcomes such as years of schooling or cognitive test scores.

Rather than testing each SNP separately, these models place prior distributions over the effects of all variants and estimate them jointly. This suits the polygenic architecture of educational traits, shrinks small effects toward zero, and yields posterior probabilities that individual variants are included in the model. The term covers individual-level Bayesian regression as well as the summary-statistics methods often used with very large samples.

The intuition behind the method

Classical GWAS tests each SNP independently with a p-value, which requires stringent multiple-testing thresholds and discards information about the joint genetic architecture. Bayesian GWAS instead models the genome as a whole: it starts from a prior belief that most SNPs have zero or near-zero effects, reflecting polygenicity, and updates that belief with the observed data to give posterior probabilities that each SNP truly influences the trait. For educational attainment, a highly polygenic trait shaped by very many small genetic influences, this framework is a natural fit because it represents the distribution of effect sizes directly, rather than forcing a significant or non-significant verdict on each variant.

History

The large-scale GWAS of educational attainment were carried out by the Social Science Genetic Association Consortium (SSGAC). Rietveld et al. (2013, Science) reported a genome-wide association study in a discovery sample of 101,069 individuals and a replication sample of 25,490; three SNPs reached genome-wide significance and replicated, with small estimated effects of roughly one month of schooling per allele. Lee et al. (2018, Nature Genetics) extended the analysis to 1.1 million individuals, with a focus on gene discovery and polygenic prediction. Bayesian whole-genome regression priors were developed for genomic prediction in animal breeding and were later applied to human genetic data.

When to use it

Choose Bayesian GWAS when you have genome-wide genotype data from a very large sample and want to use prior assumptions about polygenic architecture to improve effect-size estimates, fine-map credible sets of candidate causal variants, or build shrunk polygenic scores. Sample size is the first constraint: educational traits have very small per-SNP effects, so discovery samples must be large, and in small samples the prior dominates and the posteriors are unreliable. As an anchor for power calculations, Rietveld et al. (2013) analysed 126,559 individuals in total; their genome-wide significant SNPs explained about 0.02% of the variance each, corresponded to roughly one month of schooling per allele, and a linear polygenic score from all measured SNPs explained about 2% of the variance. Individual-level MCMC on biobank-scale data is computationally demanding; if that is not feasible, summary-statistics Bayesian methods such as SBayesR or LDpred2 are the usual alternative, provided a well-matched LD reference panel is available. Do not choose this approach if the aim is only a Manhattan plot for hypothesis generation: standard frequentist GWAS is simpler to run and easier to interpret.

Limitations and considerations

  • Per-SNP effects on educational traits are tiny, so very large discovery samples are a hard requirement. A Bayesian prior cannot compensate for insufficient statistical power.
  • Full individual-level MCMC is computationally intensive. Summary-statistics approximations such as SBayesR and LDpred2 are more tractable but add their own assumptions, including an LD reference that matches the study population.
  • Results are sensitive to hyperparameters, especially the assumed proportion of causal SNPs and the variance per causal SNP; misspecified priors can bias effect-size estimates.
  • Posterior inclusion probabilities are often read as p-values, which they are not. Interpreting them correctly requires familiarity with Bayesian inference.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Encodes the expectation that most variants have tiny or zero effects. For a polygenic trait such as educational attainment, this shrinks noisy effect estimates and reduces spurious hits compared with testing each SNP alone.
  • Posterior inclusion probabilities and credible sets give a fine-mapping output: a set of candidate causal SNPs that jointly contain the causal variant with a stated posterior probability.
  • Modelling all SNPs jointly accounts for linkage disequilibrium among neighbouring variants, so correlated SNPs share credit rather than each being treated as an independent signal.
  • Posterior mean effects are already shrunk, so they can serve directly as polygenic score weights; the score still needs validation in an independent cohort.

Applications

  • Constructing polygenic scores for educational attainment to study gene-environment interactions in longitudinal cohort studies.
  • Mendelian randomization studies using educational attainment variants as instruments to test causal effects of education on health outcomes such as cardiovascular disease or mental health.
  • Identifying genomic loci associated with cognitive ability, school achievement, or years of schooling in biobank-scale studies.
  • Genetic nurture and indirect genetic effect analyses that distinguish direct genetic effects on children's education from parental genetic effects transmitted through the environment.
  • Within-sibling designs that limit confounding by population stratification and indirect genetic effects in educational trait analyses.

How it works

How it works

1

Raw genotype data from SNP arrays undergo strict quality-control steps: removal of SNPs with low call rate, minor allele frequency below a threshold (often 1%), deviation from Hardy-Weinberg equilibrium, and samples with excessive missingness or population stratification outliers. For educational GWAS, principal components are computed to control for ancestry, and phenotype data (years of education, cognitive scores) are regressed on covariates such as age, sex, and cohort before analysis.

2

A prior distribution is placed over SNP effect sizes, reflecting the assumption that most variants have no effect and a small fraction have small nonzero effects. Common priors include spike-and-slab (BayesB, BayesC) or continuous shrinkage priors (Bayesian ridge, Bayesian LASSO). Under a spike-and-slab prior, each SNP effect is exactly zero with probability 1 − π and otherwise drawn from a normal distribution with variance σ²_β; π (the proportion of causal SNPs) and σ²_β (the variance per causal SNP) are the hyperparameters. They can be estimated from the data (empirical Bayes) or set based on external estimates of trait heritability.

3

Given the prior and the likelihood of the observed genotype-phenotype data, Markov chain Monte Carlo (MCMC) or variational Bayes algorithms estimate the joint posterior distribution of all SNP effects at once. Because correlated neighbouring variants (linkage disequilibrium, LD) are modelled together, the method can share credit among them and represent uncertainty about which of several correlated SNPs drives an association, something single-SNP tests do not do.

4

Posterior inclusion probabilities (PIPs) are extracted for each SNP, indicating the probability that the variant has a nonzero effect given the data and prior. Credible sets — the smallest collections of SNPs that jointly contain the causal variant with, say, 95% posterior probability — are reported as the fine-mapping output; in practice, SNPs are ranked by PIP and added until their summed PIPs reach the chosen level. Effect-size estimates from the posterior mean or median are used for downstream analyses.

5

Posterior effect-size estimates are used as weights to build polygenic scores (PGS) for individuals in independent validation cohorts, summing weighted allele counts across SNPs. In educational research, such scores are used to predict attainment in held-out samples, to study gene-environment interactions, and as instruments in Mendelian randomization analyses of education and health outcomes. Scores must be validated in samples that did not contribute to the discovery GWAS.

Common pitfalls

  • Population stratification confounding: failure to adequately control for ancestry with principal components or mixed-model correction inflates association statistics and produces spurious hits, particularly in diverse cohorts.
  • Winner's curse without out-of-sample validation: effect sizes estimated in the discovery sample are upwardly biased, so polygenic scores must be validated in an independent cohort that did not contribute to the GWAS.
  • Misinterpreting PGS as deterministic: a polygenic score for educational attainment explains only a modest share of variance in population samples and describes probabilistic associations across a population, not an individual's destiny.
  • Over-reliance on LD reference panels: summary-statistics Bayesian methods require an LD reference panel matched to the study population. A mismatched reference, such as a European panel for an East Asian cohort, distorts posterior estimates.
  • Ignoring gene-environment correlation: GWAS identifies statistical associations between variants and educational outcomes measured in specific social contexts. The same variants may show different associations in populations with different educational systems or social structures.

Frequently asked questions

How is Bayesian GWAS different from standard frequentist GWAS?

Standard frequentist GWAS tests each SNP independently using a linear regression and reports a p-value; significance requires crossing a genome-wide threshold of 5×10⁻⁸ after Bonferroni-like correction. Bayesian GWAS instead places prior distributions over effect sizes reflecting genetic architecture and computes posterior probabilities of association jointly across all variants. The outputs — posterior inclusion probabilities and credible sets — are more directly interpretable than p-values and are better suited for fine-mapping and polygenic score construction.

What sample size is needed for a Bayesian GWAS of educational attainment?

Educational attainment is highly polygenic. In the Rietveld et al. 2013 study, the reported effect sizes of the genome-wide significant SNPs were small (R² ≈ 0.02%), and a linear polygenic score from all measured SNPs accounted for about 2% of variance in that sample. Detecting genome-wide significant loci therefore requires very large samples, and the Lee et al. 2018 study drew on 1.1 million individuals. For polygenic score construction rather than locus discovery, useful scores can be built from smaller discovery samples, but predictive accuracy generally improves as the discovery sample grows.

Can Bayesian GWAS establish that genetics causes educational outcomes?

No. GWAS identifies statistical associations between genetic variants and phenotypes; it does not establish causation. Many associations reflect gene-environment correlations, indirect genetic effects transmitted via parenting, or population stratification. Mendelian randomization designs can leverage GWAS results to make stronger causal inferences, but even MR rests on assumptions that must be tested.

What software is used for Bayesian GWAS?

Examples of tools include GCTA (GBLUP models for variance components and prediction), GCTB (which implements BayesR and the summary-statistics method SBayesR), LDpred2 (an R package for Bayesian polygenic score weighting), and FINEMAP or SuSiE for fine-mapping credible sets. GenSel is used for individual-level Bayesian genomic prediction in animal breeding. This is a non-exhaustive list, and the choice depends on whether individual-level or summary-statistics data are available.

Are polygenic scores for educational attainment ethical to use in educational policy?

This is actively debated. PGS explain a fraction of variance in population samples and have low predictive value for individuals. They capture genetic propensity under specific historical social conditions, not fixed biological potential. Their predictive accuracy does not support using them for individual selection, admissions, or resource allocation decisions. Research use in cohort studies with appropriate consent is standard practice.

Related methods

Sources

  1. Lee, J. J., Wedow, R., Okbay, A., Kong, E., Maghzian, O., Zacher, M., ... & Cesarini, D. (2018). Gene discovery and polygenic prediction from a genome-wide association study of educational attainment in 1.1 million individuals. Nature Genetics, 50(8), 1112–1121.

    Open DOI reference
  2. Rietveld, C. A., Medland, S. E., Derringer, J., Yang, J., Esko, T., Martin, N. W., ... & Koellinger, P. D. (2013). GWAS of 126,559 individuals identifies genetic variants associated with educational attainment. Science, 340(6139), 1467–1471.

    Open DOI reference