HWEP: Difference between revisions

From Genome Analysis Wiki
Jump to navigationJump to search
Atks (talk | contribs)
Created page with 'Hardy Weinberg equilibrium is expected in a panmictic population. The following formulation is a likelihood ratio test statistic that incorporates the genotype uncertainty via g…'
 
Atks (talk | contribs)
No edit summary
Line 1: Line 1:
Hardy Weinberg equilibrium is expected in a panmictic population.  The following formulation is a likelihood ratio test statistic that incorporates the 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.  
<math>P(R_{k}|\textbf{g})</math>  is the probability of observing the reads for individual <math>k</math> assuming that a locus does not observe HWE.
<math>P(R_{k}|\textbf{g})</math>  is the probability of observing the reads for individual <math>k</math> assuming that a locus does not observe HWE.
Line 9: Line 9:
<math>
<math>
\begin{align}
\begin{align}
   L(R|g) & =  & \frac{\prod_{k}{P(R_{k}|\textbf{p})}}
   L(R|g) & =  \frac{\prod_{k}{P(R_{k}|\textbf{p})}}
                     {\prod_{k}{P(R_{k}|\textbf{g})}} \\
                     {\prod_{k}{P(R_{k}|\textbf{g})}} \\
         & = & \frac{\prod_{k}{\sum_{i,j}{P(R_{k}, G_{i,j}|\textbf{p})}}}
         & =   \frac{\prod_{k}{\sum_{i,j}{P(R_{k}, G_{i,j}|\textbf{p})}}}
                     {\prod_{k}{\sum_{i,j}{P(R_{k}, G_{i,j}|\textbf{g})}}} \\
                     {\prod_{k}{\sum_{i,j}{P(R_{k}, G_{i,j}|\textbf{g})}}} \\
         & = & \frac{\prod_{k}{\sum_{i,j}{P(R_{k} |G_{i,j} )P(G_{i,j}|\textbf{p})}}}
         & =   \frac{\prod_{k}{\sum_{i,j}{P(R_{k} |G_{i,j} )P(G_{i,j}|\textbf{p})}}}
                     {\prod_{k}{\sum_{i,j}{P(R_{k} |G_{i,j})P(G_{i,j}|\textbf{g})}}} \\
                     {\prod_{k}{\sum_{i,j}{P(R_{k} |G_{i,j})P(G_{i,j}|\textbf{g})}}} \\
\end{align}
\end{align}

Revision as of 11:03, 11 April 2013

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.