The Hardy-Weinberg principle and estimating allele frequencies

By now you've seen that there's a lot more involved in Hardy-Weinberg than you ever imagined possible. Today you'll also see a relatively simple application of JAGS for Bayesian inference. You will almost certainly wonder why you'd bother with anything as complicated as what I'm going to show you simply to estimate an allele frequency, but I'll do my best to convince you that (a) in complicated situations the advantages are even more apparent and (b) there are real advantages even in simple cases.

We may not have time to go over the ABO blood group example that's in the notes. If you'd like to try it on your own, the R script and JAGS script are available here.

  1. R script (multinomial.R)
  2. JAGS script (multinomial.jags)

Online notes

The Hardy-Weinberg principle and estimating allele frequencies

Return to lecture schedule