- Introduced by
- Rakyan, Down, Balding, and Beck (conceptual EWAS framework); Bayesian extensions by multiple groups including Teschendorff and colleagues
- Year
- EWAS framework ~2010–2011; Bayesian EWAS variants ~2013–2017; educational applications ~2015–present
- Type
- Genomic association study with Bayesian inference
- Family
- Bioinformatics / omics
What does it do?
A Bayesian epigenome-wide association study (Bayesian EWAS) tests DNA methylation at many CpG sites across the genome for association with an educational outcome or exposure, such as cognitive test scores, years of schooling, or childhood socioeconomic adversity.
Rather than reporting only a p-value per site, it fits Bayesian models that combine the data with prior assumptions, typically that most sites have no effect, and reports a posterior inclusion probability (PIP) for each site. It is an applied combination of EWAS and Bayesian inference rather than a single standardised method, and its application to educational outcomes is comparatively new and largely observational. Its PIPs are conditional on the chosen model, priors and covariates, so they should be read alongside a sensitivity analysis rather than as stand-alone evidence.
The intuition behind the method
Think of the genome as a library with several hundred thousand bookmarks (CpG sites). Each bookmark can be more or less tightly closed, that is, more or less methylated, and this degree of closure may be partly shaped by life experiences, including schooling and socioeconomic conditions. A Bayesian EWAS checks every bookmark and asks: given what is already known about methylation and its biological context, how probable is it that this site's state is associated with the educational outcome? Because the analysis starts from prior assumptions, such as that most sites are irrelevant, it weighs evidence differently from a scan that treats every site as equally likely to matter. Its output is a probability for each site, which is easier to read than a thresholded p-value, but it is only as credible as the priors and the cohort behind it.
History
Epigenome-wide association studies were set out as a framework by Rakyan and colleagues in a 2011 Nature Reviews Genetics review, modelled on genome-wide association studies (GWAS). Early EWAS commonly used frequentist regression at each site with multiple-testing correction. Bayesian methods for high-dimensional association testing were developed in genetics more broadly and later adapted to methylation data. The application to educational outcomes followed the growth of large population cohorts that hold both methylation and educational data; whether a given cohort holds the required measures must be checked for each study.
When to use it
Choose Bayesian EWAS when you have a cohort with genome-wide methylation data (450K or EPIC arrays) and reasonably measured educational outcomes or exposures, such as years of schooling, cognitive test scores, school readiness or socioeconomic status. The Bayesian framework is most useful when sample sizes are modest and reliable biological prior knowledge can guide the analysis, or when calibrated probability statements are preferred to binary thresholds. Do not use it without methylation array data, or when the study is too small and unreplicated for a single cohort's posterior estimates to be treated as more than provisional. In large, well-powered cohorts, a frequentist EWAS with established multiplicity correction is simpler to audit. If the question is whether education causes methylation change, a cross-sectional Bayesian EWAS cannot answer it alone; pair it with Mendelian randomisation or longitudinal data.
Limitations and considerations
- Full MCMC across the whole array is computationally demanding; variational approximations are faster but can distort posterior estimates.
- Results depend on the prior: an informative prior drawn from annotation or published results can favour genes already studied, and sensitivity analyses across prior settings are needed but are not always reported.
- A single cohort is rarely sufficient; posterior estimates from one sample need replication in independent data.
- Blood-based cell-type deconvolution is approximate, so residual cell heterogeneity can remain a confounder.
- Educational phenotypes are often measured with error and are entangled with socioeconomic factors that also shape methylation, which limits causal interpretation.
- PIPs are conditional on the model, priors and covariates; a site's PIP can shift considerably across reasonable prior choices, so a sensitivity analysis is required before interpreting individual sites.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Posterior inclusion probabilities express evidence as a probability of association under the stated model and priors, rather than as a p-value to be compared with a cut-off.
- Biological priors from functional annotation or pathway databases can add information where a cohort is too small to detect weak effects on its own.
- Sparsity-inducing priors (spike-and-slab, horseshoe) encode the expectation that few of the hundreds of thousands of sites are truly associated, which suits this high-dimensional setting.
- Full posterior distributions of effect sizes allow the uncertainty around each estimate to be reported, not only its significance.
- Bayesian multi-omics models can in principle combine methylation with gene expression data in a single framework.
Applications
- Identifying CpG sites associated with years of schooling or educational attainment in population cohort studies.
- Mapping methylation signatures of early-life socioeconomic adversity that predict later school readiness or cognitive outcomes.
- Investigating whether DNA methylation mediates the biological pathway between childhood poverty and adult cognitive function.
- Exploring epigenetic correlates of stress, adversity, or toxic exposure in school-age children using blood or buccal cell methylation data.
- Cross-cohort meta-analysis of educational EWAS results to identify replicated methylation associations robust to population heterogeneity.
- Integrating EWAS findings with GWAS and gene expression data to identify multi-omic signatures of educational phenotypes.
How it works
How it works
Raw intensities from Illumina BeadChip arrays (typically 450K or EPIC) are background-corrected and normalised, for example with BMIQ or Noob, and probes with known cross-hybridisation, SNP overlap or high missingness are removed. For blood-derived samples, cell-type proportions are estimated, for example with the Houseman algorithm, and included as covariates, because differences in blood cell composition are a major source of spurious associations.
Each CpG site receives a prior on its effect size and on the probability that it has any effect on the outcome. Priors can draw on functional annotation (gene body versus promoter, CpG island versus shore), published EWAS results or pathway databases. Sparsity-inducing priors such as spike-and-slab or horseshoe encode the expectation that only a small fraction of sites are truly associated with the outcome.
A Bayesian regression is fitted at each site, linear for continuous outcomes or logistic for binary ones, or jointly across sites in multivariate models. Markov chain Monte Carlo (MCMC) or variational inference yields posterior distributions for each effect and a PIP per site. For a site j, the PIP is the posterior probability that its effect is non-zero, given the data, the priors and the stated covariates. It expresses evidence on a probability scale and is not a frequentist error rate. Variational approximations are faster but can distort the posterior estimates.
Multiplicity is handled partly by the sparsity prior, which shrinks inclusion probabilities for most sites, and by reporting PIPs or Bayes factors rather than applying a fixed p-value cut-off. Under the assumed model and prior, the expected number of false discoveries among a set of selected sites is the sum of (1 minus PIP) over those sites; this estimate is only as reliable as the prior and model. Sites are flagged using a threshold fixed before analysis. No universal PIP or Bayes factor threshold exists. Values such as a PIP of 0.5 or a Bayes factor above 10 are examples only, and any threshold needs justification for the specific study.
Flagged CpG sites are annotated to genes, regulatory regions and chromatin states and grouped into biological pathways. In educational research, interpretation usually concerns candidate mediators such as stress-response or inflammatory genes. Causal direction is then tested with Mendelian randomisation or longitudinal designs, because annotation alone does not establish mechanism.
Common pitfalls
- Neglecting cell-type composition adjustment: failure to account for differential cell-type proportions in blood-derived DNA is a well-known source of spurious EWAS associations.
- Treating PIPs as p-values: a PIP of 0.9 does not mean 'p = 0.1'; it is a probability of inclusion given the model and priors. Threshold choices must be justified before analysis and not set blindly at 0.5.
- Over-relying on annotation for interpretation: annotating a CpG to a nearby gene does not establish biological mechanism; follow-up functional experiments or co-localisation analyses are necessary.
- Ignoring batch effects: methylation arrays are highly susceptible to technical variation across processing batches; surrogate variable analysis (SVA) or explicit batch correction must be applied before modelling.
- Conflating correlation with causation: educational exposures, socioeconomic position, and epigenetic state are mutually confounded; observational Bayesian EWAS findings should be treated as hypothesis-generating unless supported by longitudinal or instrumental variable methods.
Frequently asked questions
How is Bayesian EWAS different from a standard (frequentist) EWAS?
Standard EWAS fits a linear or logistic regression at each CpG site and reports p-values with Bonferroni or FDR correction. Bayesian EWAS instead computes a posterior probability of association (posterior inclusion probability, PIP) for each site, incorporating prior biological knowledge. In modest samples, an appropriate informative prior can increase sensitivity to weak effects, but it also makes the results depend on that prior. The Bayesian approach produces probability-scale summaries that are often easier to interpret than thresholded p-values.
What sample size is needed for a Bayesian EWAS in an educational cohort?
There is no universal minimum. Frequentist EWAS needs enough participants to pass multiple-testing correction, which usually means large cohorts. Bayesian priors can help in smaller samples, but results from small cohorts are fragile and should be validated in independent data. Larger cohorts with high-quality educational phenotypes give the most reliable results.
Can I apply Bayesian EWAS to saliva or buccal cell DNA rather than blood?
Yes. Saliva and buccal cells are more practical to collect in school-based research. However, cell-type composition differs from blood and deconvolution reference panels are less mature for these tissues. Methylation patterns also differ by tissue, so blood-based reference EWAS results may not replicate in saliva data and vice versa. Tissue-matched reference panels and careful cell-type adjustment are essential.
Does a significant EWAS hit mean education causes the methylation change?
No. A significant EWAS association is observational: it shows that methylation at a given site is correlated with the educational variable, but does not establish the direction of causation. Educational exposures and methylation can be mutually influenced by shared socioeconomic or genetic confounders. Causal inference requires additional designs such as Mendelian randomization, longitudinal pre-post studies with educational interventions, or natural experiments.
Which software is commonly used for Bayesian EWAS?
R is widely used for this work. minfi, ChAMP and ENmix handle normalisation and quality control of Illumina array data, and minfi or EpiDISH are commonly used for cell-type deconvolution. General Bayesian models can be fitted with JAGS (via rjags) or Stan (via RStan or brms). Dedicated Bayesian EWAS packages should be checked for current availability and maintenance before use.
Related methods
Sources
Rakyan, V. K., Down, T. A., Balding, D. J., & Beck, S. (2011). Epigenome-wide association studies for common human diseases. Nature Reviews Genetics, 12(8), 529–541.
Open publication referenceLigthart, S., Marzi, C., Aslibekyan, S., Mendelson, M. M., Conneely, K. N., Tanaka, T., ... & Dehghan, A. (2016). DNA methylation signatures of chronic low-grade inflammation are associated with complex diseases. Genome Biology, 17(1), 255.
Open publication reference