Skip to content
Tech Interview Prep
Technical interview guide

Statistical Genomics

The statistical machinery behind genome-wide association studies: testing millions of variants for association with a trait without drowning in false positives.

Minutes to read
3
Practice MCQs
25
Interview Q&A
25
Edition
v5
Editorial status
Reviewed

Scope: PLINK 2 alpha 7.x; GWAS Catalog and summary-statistics standards; EIGENSTRAT, BOLT-LMM, LD Score, KING, imputation, TOPMed and PRS source publications reviewed 2026-09-04.

Overview

Curated: · Written: · Reviewed:

Statistical Genomics

In one line

A GWAS regresses the phenotype on each variant's genotype dosage plus covariates, across millions of variants. You reach for it to find which alleles tag trait variation in a defined population, with structure, relatedness and QC handled before any p-value is read. A hit licenses an association in that population under that model, not causality or portability.

Key definitions

  • Beta or log-OR: expected change in phenotype units (or log-odds) per additional effect allele, with covariates held fixed.
  • Dosage: expected copies of the effect allele (0 to 2), carrying imputation uncertainty.
  • Lambda GC: inflation of the test statistic against the null. A diagnostic to investigate, not a divisor.
  • LD: correlation between nearby variants. A lead SNP may only tag the causal allele.
  • Kinship (genetic relationship) matrix: genome-wide genetic similarity used in mixed models.
  • Summary statistics: per-variant beta, SE, effect allele, other allele, allele frequency, N and genome build.

Formulas and complexity

log⁡P(y=1)1−P(y=1)=α+βg+γ⊤c\log\frac{P(y=1)}{1-P(y=1)}=\alpha+\beta g+\gamma^\top c αBonf=0.05106=5×10−8\alpha_{\text{Bonf}}=\frac{0.05}{10^{6}}=5\times10^{-8}

For 1,000,000 tests under a complete null, uncorrected p < 0.05 gives 50,000 expected false positives. Bonferroni brings that to 0.05 family-wise.

How it works

The analysis runs in five steps. Each step fixes a specific source of bias before the next one is read.

  1. Sample and variant QC, with thresholds fixed in advance and checked for differential removal by outcome or batch.
  2. Ancestry principal components or a kinship matrix absorb structure and relatedness.
  3. A per-variant regression of phenotype on dosage, with covariates.
  4. Multiplicity control sets the threshold, and an inflation check tests whether the null holds.
  5. Lead signals are conditioned on and fine-mapped under ancestry-matched LD.
Sample and variant QC Ancestry PCs or kinship matrix Per-variant regression on dosage plus covariates Inflation check: QQ plot and LD score intercept Multiplicity threshold Conditional analysis and fine-mapping

When to use and when not to

SituationGWAS fitsPrefer instead
Common variants, large N, one defined traitYesNone needed
Rare variants with few carriers eachSingle-variant tests underpoweredGene-level collapsing with predefined masks
Related samples in a family cohortMixed model keeps themRemoving relatives discards information
Phenotype measured once, lifetime risk wantedNot as statedSurvival or longitudinal model
Risk prediction in a new ancestryNot without validationRecalibrated score in the target population

Traps interviewers probe

  1. Calling the lead SNP causal. Fix: fine-map with ancestry-matched LD and keep indistinguishable candidates in the credible set.
  2. Dividing every statistic by lambda. Fix: inspect the QQ plot shape and the LD score intercept, check batch and stratification, and recognise that overcorrection erases real signal.
  3. Deleting every HWE failure. Fix: test in unrelated controls per ancestry. A deviation that appears only in the pooled sample, and not within strata, points to structure rather than a bad variant.
  4. Adding a batch covariate to fix plate confounding. Fix: measure missingness by batch and outcome, inspect cluster plots, and run a sensitivity analysis.
  5. Averaging betas without aligning effect alleles. Fix: align to one effect allele on one build before pooling, and flip the sign when alleles are swapped.

Interview tips

Opening: state the population, phenotype, model and effect unit, then name the main threat (structure, relatedness, batch or LD).

Expected follow-ups:

  • What if the key assumption fails?
  • How would you detect that in the data you have?
  • What would you tell a clinician this result means?

For each fix you name, give a concrete detection step. Without one, the answer is recited rather than defended.

30-second outline: Per-variant regression on dosage with PCs or kinship, after QC, with matched LD. Threshold 5e-8 for common variants in European-ancestry data, with roughly 1e-7 as the effective number of independent tests. A hit is an association in this population, and it may tag a causal variant. Check inflation with the LD score intercept, replicate using the same effect allele and build, and fine-map before naming a gene. Quote beta with its SE and unit, and say which population and model it came from.

Feedback on this overview

Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.