Tutorials › Statistical Genetics › Multinomial Sampling Of Genotype Counts

Mendelian Probability and Allele Frequencies · Tutorial 15 of 989

Multinomial Sampling Of Genotype Counts

Model genotype counts from an independent sample and calculate their expected values, variances, and covariances from specified population probabilities.

Beginner 9 min read

What You'll Learn

  • State the sampling assumptions behind a multinomial model for genotype counts
  • Write the probability mass function for counts in mutually exclusive genotype categories
  • Calculate expected genotype counts and their variances
  • Derive and interpret the covariance between counts in distinct categories
  • Identify how zero-probability categories affect count dependence

Why Model Genotype Counts?

A population model assigns probabilities to possible genotypes. A sample does not generally contain exactly those proportions: the observed counts fluctuate from sample to sample. A probability model for those counts makes it possible to describe the expected amount of fluctuation and how the counts move together.

The model in this tutorial applies to genotype categories with specified probabilities. The probabilities could come from a Hardy–Weinberg model, an inbreeding model, assortative mating, or another population description. The multinomial sampling model does not itself require Hardy–Weinberg equilibrium. It describes how a sample of individuals is drawn, given the genotype probabilities.

The Multinomial Model for Genotype Counts

Suppose there are \(k\) mutually exclusive and exhaustive genotype categories. For example, at a locus with two alleles, the categories could be \(AA\), \(Aa\), and \(aa\). Let \(\pi_j\) be the population probability of category \(j\), for \(j=1,\ldots,k\). These probabilities satisfy \(0\leq \pi_j\leq 1\) and \(\sum_{j=1}^k \pi_j=1\).

Take a sample of \(n\) individuals. The multinomial model assumes that each sampled individual belongs to exactly one of the categories, that each individual has the same category probabilities \((\pi_1,\ldots,\pi_k)\), and that individuals’ category assignments are independent. These assumptions describe independent sampling from a population distribution, as in sampling with replacement or from a population sufficiently large for the independent-sampling approximation. Sampling without replacement from a small, fixed population need not have this model.

Definition: Let \(N_j\) be the number of sampled individuals in genotype category \(j\). Under the multinomial sampling model, the count vector \((N_1,\ldots,N_k)\) has a multinomial distribution with sample size \(n\) and probabilities \((\pi_1,\ldots,\pi_k)\). The counts are nonnegative integers and satisfy \(\sum_{j=1}^k N_j=n\).

For any possible count vector \((n_1,\ldots,n_k)\) summing to \(n\), its probability is

$$ P(N_1=n_1,\ldots,N_k=n_k) = \frac{n!}{n_1!\cdots n_k!} \prod_{j=1}^k \pi_j^{\,n_j}. $$

The factorial factor counts the different ways the \(n\) sampled individuals can be arranged into categories with those counts. The product gives the probability of any one such arrangement under independent sampling. A category with probability zero has count zero with certainty; in the probability formula, the usual convention is that a factor \(0^0\) equals 1.

Expected Counts and Variances

The expected count in category \(j\) is the sample size times that category’s probability. Its variance is \(n\pi_j(1-\pi_j)\). The standard deviation of the count, if needed, is the square root of that variance and is measured in individuals.

$$ E[N_j]=n\pi_j, \qquad \operatorname{Var}(N_j)=n\pi_j(1-\pi_j). $$

An expected count need not be an integer. It is a long-run average over repeated samples of size \(n\), not a prediction that one particular sample must have that count. The variance describes the spread of the count over those repeated samples.

Worked Example: Counts Under Hardy–Weinberg Probabilities

Consider a hypothetical population with allele probabilities 0.60 for \(A\) and 0.40 for \(a\), and suppose its genotype probabilities follow the Hardy–Weinberg model. A sample of \(n=200\) individuals is drawn independently. Calculate the expected counts, variances, and covariances for \(AA\), \(Aa\), and \(aa\).

Under the stated population model, the genotype probabilities are \(\pi_{AA}=0.60^2=0.36\), \(\pi_{Aa}=2(0.60)(0.40)=0.48\), and \(\pi_{aa}=0.40^2=0.16\). They sum to \(0.36+0.48+0.16=1.00\). The sampling assumptions are that the 200 individuals are independent draws and each has these same genotype probabilities.

The expected counts are \(E[N_j]=n\pi_j\):

$$ E[N_{AA}]=200(0.36)=72,\qquad E[N_{Aa}]=200(0.48)=96,\qquad E[N_{aa}]=200(0.16)=32. $$

The three expectations sum to 200, as required. The variances are:

$$ \begin{aligned} \operatorname{Var}(N_{AA})&=200(0.36)(0.64)=46.08,\\ \operatorname{Var}(N_{Aa})&=200(0.48)(0.52)=49.92,\\ \operatorname{Var}(N_{aa})&=200(0.16)(0.84)=26.88. \end{aligned} $$

These are variances in squared individuals. For example, the standard deviation of the \(AA\) count is \(\sqrt{46.08}\approx 6.788\) individuals. The expectations describe the centers of the sampling distributions, not guaranteed observed counts.

Covariances Between Genotype Counts

Counts in different genotype categories share a fixed total. If more individuals fall in one category, fewer are available for the others. For two distinct categories \(i\) and \(j\), the covariance is

$$ \operatorname{Cov}(N_i,N_j)=-n\pi_i\pi_j,\qquad i\ne j. $$

When both probabilities are positive and \(n>0\), this covariance is negative. It means that samples with a count above its mean in one category tend, in the covariance sense, to have a count below its mean in the other. Covariance is not a statement that every individual sample follows this pattern.

Important qualification: Distinct genotype counts with positive probabilities are dependent when \(n>0\), because their covariance is negative. If either category has probability zero, its count is constant at zero and is independent of the other count. If \(n=0\), all counts are constant.

Why the Moment Formulas Hold

The formulas follow by representing each count as a sum of indicators. For sampled individual \(r\), define \(I_{rj}=1\) if that individual is in category \(j\), and \(I_{rj}=0\) otherwise. Then \(N_j=\sum_{r=1}^n I_{rj}\). Each \(I_{rj}\) is a Bernoulli random variable with probability \(\pi_j\) of being 1, so its expectation is \(\pi_j\) and its variance is \(\pi_j(1-\pi_j)\).

Linearity of expectation gives \(E[N_j]=\sum_{r=1}^n E[I_{rj}]=n\pi_j\). Since the indicators for a fixed category are independent across sampled individuals, the variance of their sum is the sum of their variances, giving \(\operatorname{Var}(N_j)=n\pi_j(1-\pi_j)\).

For distinct categories \(i\) and \(j\), one individual cannot belong to both. Thus \(I_{ri}I_{rj}=0\), and

$$ \operatorname{Cov}(I_{ri},I_{rj}) =E[I_{ri}I_{rj}]-E[I_{ri}]E[I_{rj}] =0-\pi_i\pi_j =-\pi_i\pi_j. $$

Indicators belonging to different sampled individuals are independent, so their covariances are zero. Summing the within-individual covariances over the \(n\) individuals therefore gives \(\operatorname{Cov}(N_i,N_j)=-n\pi_i\pi_j\). This argument also shows why the formula gives zero covariance if either probability is zero.

Worked Example: Covariances for Specified Genotype Probabilities

Suppose a hypothetical population has genotype probabilities \(\pi_{AA}=0.50\), \(\pi_{Aa}=0.30\), and \(\pi_{aa}=0.20\). These are specified probabilities and are not assumed to follow Hardy–Weinberg proportions. For an independent sample of \(n=120\), calculate the expected counts, variances, and pairwise covariances.

The probabilities are nonnegative and sum to \(0.50+0.30+0.20=1.00\); the independent-sampling assumption is part of the hypothetical sampling setup. The expected counts are:

$$ E[N_{AA}]=120(0.50)=60,\qquad E[N_{Aa}]=120(0.30)=36,\qquad E[N_{aa}]=120(0.20)=24. $$

The variances are:

$$ \begin{aligned} \operatorname{Var}(N_{AA})&=120(0.50)(0.50)=30.0,\\ \operatorname{Var}(N_{Aa})&=120(0.30)(0.70)=25.2,\\ \operatorname{Var}(N_{aa})&=120(0.20)(0.80)=19.2. \end{aligned} $$

The pairwise covariances are:

$$ \begin{aligned} \operatorname{Cov}(N_{AA},N_{Aa})&=-120(0.50)(0.30)=-18.0,\\ \operatorname{Cov}(N_{AA},N_{aa})&=-120(0.50)(0.20)=-12.0,\\ \operatorname{Cov}(N_{Aa},N_{aa})&=-120(0.30)(0.20)=-7.2. \end{aligned} $$

All three probabilities are positive, so each pair of distinct counts has negative covariance and is dependent. The expected counts add to 120, while the negative covariances reflect the fixed total across samples.

A Useful Check: The Total Count Is Fixed

Because \(N_1+\cdots+N_k=n\) in every sample, the sum of the count variances and twice the sum of the distinct pairwise covariances must equal zero. For the three-category example above, the variance sum is \(30.0+25.2+19.2=74.4\). The sum of the three covariances is \(-18.0-12.0-7.2=-37.2\), so

$$ 74.4+2(-37.2)=0. $$

This agrees with the variance of the fixed total, which is zero. More generally, the count covariance formulas satisfy this constraint because \(\sum_j\pi_j=1\). It is a useful arithmetic check, but it does not replace checking each probability or calculation.

Worked Example: A Genotype Category With Zero Probability

Suppose a hypothetical population has genotype probabilities \(\pi_{AA}=0.70\), \(\pi_{Aa}=0.30\), and \(\pi_{aa}=0\). For an independent sample of \(n=50\), calculate the count moments and explain how the zero probability affects dependence.

The probabilities sum to 1, and the sampling setup assumes independent individuals with the same probabilities. The expected counts are:

$$ E[N_{AA}]=50(0.70)=35,\qquad E[N_{Aa}]=50(0.30)=15,\qquad E[N_{aa}]=50(0)=0. $$

The variances are:

$$ \begin{aligned} \operatorname{Var}(N_{AA})&=50(0.70)(0.30)=10.5,\\ \operatorname{Var}(N_{Aa})&=50(0.30)(0.70)=10.5,\\ \operatorname{Var}(N_{aa})&=50(0)(1)=0. \end{aligned} $$

The covariance between the two positive-probability categories is \(\operatorname{Cov}(N_{AA},N_{Aa})=-50(0.70)(0.30)=-10.5\), so those two counts are dependent. By contrast, \(\operatorname{Cov}(N_{AA},N_{aa})=-50(0.70)(0)=0\), and \(N_{aa}=0\) with certainty. A constant random variable is independent of every random variable, so \(N_{aa}\) is independent of both other counts. The same reasoning applies to its covariance with \(N_{Aa}\), which is also zero.

Common Mistakes and Practical Interpretation

  • Treating the genotype probabilities as sample proportions. The \(\pi_j\) values are the population probabilities specified by the model. The observed proportions \(N_j/n\) can differ from them because of sampling variation.
  • Assuming the multinomial model requires Hardy–Weinberg equilibrium. It does not. Any valid set of genotype probabilities can be used, provided the sampling assumptions hold.
  • Calling all distinct counts dependent without checking for zero probabilities. Positive probabilities for both categories and \(n>0\) give negative covariance and dependence. A zero-probability category has a constant zero count, which is independent of the others.
  • Interpreting a negative covariance as a rule for every sample. The covariance summarizes how two counts vary jointly over repeated samples; it does not require every sample with one count above expectation to have the other below expectation.
  • Forgetting the fixed total. The counts cannot vary independently when their sum is fixed and the category probabilities are positive. Their negative covariances are part of the model, not a calculation defect.
Key takeaway: For an independent sample of \(n\) individuals with specified genotype probabilities \(\pi_j\), the count in category \(j\) has expectation \(n\pi_j\) and variance \(n\pi_j(1-\pi_j)\). Counts in distinct categories have covariance \(-n\pi_i\pi_j\); if either probability is zero, that category’s constant count is independent of the other counts.

Check Your Understanding

Use the multinomial count model and show the calculations that support your answers.

  1. A sample of 80 individuals is drawn independently from a population with genotype probabilities \(0.25\), \(0.50\), and \(0.25\). What is the expected count in each category?
  2. For the first category in question 1, calculate the variance of its count and give the unit of the variance.
  3. With probabilities \(0.25\) and \(0.50\), what is the covariance between the corresponding counts for a sample of 80? What does its sign indicate?
  4. Explain why the multinomial sampling model does not, by itself, imply Hardy–Weinberg equilibrium.
  5. If one genotype category has probability zero, what can be said about its count and its independence from another category’s count?
Clinical Biostats