HWEP: Difference between revisions

From Genome Analysis Wiki
Jump to navigationJump to search
Atks (talk | contribs)
No edit summary
Atks (talk | contribs)
No edit summary
Line 1: Line 1:
=== Formulation ===
Hardy Weinberg equilibrium is expected in a panmictic population.  The following formulation is a likelihood ratio test statistic that incorporates genotype uncertainty via genotype likelihoods.  
Hardy Weinberg equilibrium is expected in a panmictic population.  The following formulation is a likelihood ratio test statistic that incorporates genotype uncertainty via genotype likelihoods.  
<math>P(R_{k}|\textbf{p})</math> is the probability of observing the reads for individual <math>k</math> assuming that a locus observes HWE.  
<math>P(R_{k}|\textbf{p})</math> is the probability of observing the reads for individual <math>k</math> assuming that a locus observes HWE.  

Revision as of 11:04, 11 April 2013

Formulation

Hardy Weinberg equilibrium is expected in a panmictic population. The following formulation is a likelihood ratio test statistic that incorporates genotype uncertainty via genotype likelihoods. P(Rk|p) is the probability of observing the reads for individual k assuming that a locus observes HWE. P(Rk|g) is the probability of observing the reads for individual k assuming that a locus does not observe HWE. Gi,j denotes the genotype composed of alleles i and j . k indexes the individuals from 1 to N . P(Rk|Gi,j) is the genotype likelihood. P(Gi,j|p) and P(Gi,j|g) are the genotype frequencies estimated with and without HWE assumption respectively.


L(R|g)=∏kP(Rk|p)∏kP(Rk|g)=∏k∑i,jP(Rk,Gi,j|p)∏k∑i,jP(Rk,Gi,j|g)=∏k∑i,jP(Rk|Gi,j)P(Gi,j|p)∏k∑i,jP(Rk|Gi,j)P(Gi,j|g)


The likelihood ratio test statistic is as follows with v degrees of freedom where n is the number of alleles.

−2logL(R|g)∼Xv2,v=n(n−1)2

Maintained by

This page is maintained by Adrian, formulation by Hyun.