Tutorials › Statistical Genetics › Genetic Effects on Binary Phenotypes

Genetic Effects and Trait Models · Tutorial 31 of 989

Genetic Effects on Binary Phenotypes

Represent binary phenotypes with genotype-specific probabilities and interpret probability-scale genetic effects as absolute changes in risk.

Beginner 10 min read

What You'll Learn

  • Define a binary phenotype and its genotype-specific probability
  • Express genotype-specific probabilities using additive dosage coding
  • Interpret an additive coefficient as a risk change in percentage points
  • Write dominant and genotype-specific probability models
  • Check that model probabilities are valid and interpret contrasts without claiming causation

Why Model a Binary Phenotype on the Probability Scale?

A genetic association question often begins with an outcome such as whether a person developed a disease during a stated follow-up period. The recorded outcome has only two values, but its probability can differ across genotypes. Describing those probabilities directly gives a clear scale for asking how much the chance of the outcome changes between genotype groups.

The probability scale is especially interpretable because a difference such as 0.03 is an absolute change of 3 percentage points. It is not a 3% relative increase. A probability-scale model therefore describes genetic effects in terms of changes in outcome probability, while keeping the outcome itself binary.

Definition: Let \(Y\) be a binary phenotype coded \(Y=1\) when the outcome is present and \(Y=0\) otherwise. For genotype \(g\), the genotype-specific probability is \(p_g=P(Y=1\mid G=g)\), where \(G\) denotes genotype or its chosen coding. For a disease observed over a defined period, \(p_g\) is the disease risk for that period among people with genotype \(g\) in the population and context being described.

The outcome definition matters. “Disease present at the examination” describes the probability of having the disease at that assessment; “new diagnosis within five years” describes risk over five years. A probability is meaningful only when the outcome, its timing, and the population are specified. The conditional probabilities describe how outcome frequency varies with genotype. By themselves, they do not establish that genotype differences cause the outcome differences.

From a Binary Observation to a Probability

For an individual, \(Y\) is still either 0 or 1. The probability model concerns the distribution of that outcome among individuals with a given genotype. If \(P(Y=1\mid G=g)=p_g\), then \(P(Y=0\mid G=g)=1-p_g\). This is a Bernoulli model for the binary outcome conditional on genotype.

$$ Y\mid G=g\sim\operatorname{Bernoulli}(p_g), \qquad E(Y\mid G=g)=p_g. $$

The second equality follows directly from the two possible outcomes: \(Y\) contributes 1 with probability \(p_g\) and 0 with probability \(1-p_g\). Thus \(E(Y\mid G=g)=1\cdot p_g+0\cdot(1-p_g)=p_g\). A model for the conditional mean of a binary outcome is therefore also a model for its conditional probability.

Worked Example: Comparing Genotype-Specific Risks

Suppose a hypothetical population has three genotype groups, coded by the number \(G\) of alternate alleles: \(G=0\), \(G=1\), and \(G=2\). For a specified disease outcome and follow-up period, suppose the group probabilities are \(p_0=0.04\), \(p_1=0.07\), and \(p_2=0.13\). These values are hypothetical population probabilities, not results from a real study.

The risk difference between \(G=1\) and \(G=0\) is \(0.07-0.04=0.03\), or 3 percentage points. Between \(G=2\) and \(G=0\), it is \(0.13-0.04=0.09\), or 9 percentage points. The increase from \(G=1\) to \(G=2\) is \(0.13-0.07=0.06\), or 6 percentage points.

These differences are not equal: the first allele step is 3 percentage points, and the second is 6 percentage points. The probabilities can be described genotype by genotype, but they do not follow a constant additive change in risk per alternate allele. These comparisons describe probability differences; they do not, on their own, establish a causal effect of genotype.

Probability-Scale Models and Genotype Coding

A genotype coding represents the genetic categories with a predictor. The earlier material on genotype dosage and indicator coding distinguishes counting alleles from marking particular genotype groups. On the probability scale, the coding specifies which genotype probabilities are constrained to follow the same pattern.

Let \(G\) be the alternate-allele dosage, so \(G\in\{0,1,2\}\). A linear probability model for this dosage is:

$$ P(Y=1\mid G=g)=p_g=\beta_0+\beta_1g,\qquad g\in\{0,1,2\}. $$

Here \(\beta_0\) is the modeled probability for the reference genotype \(G=0\). The coefficient \(\beta_1\) is the change in probability for a one-unit increase in dosage. Under this model, the risk difference is the same at both genotype steps: \(p_1-p_0=\beta_1\) and \(p_2-p_1=\beta_1\). The model therefore imposes equal probability-scale steps; it does not merely describe a general tendency for risk to rise with dosage.

A probability must be between 0 and 1. Consequently, an additive linear probability model is valid for the genotype values being modeled only when \(0\leq\beta_0+\beta_1g\leq1\) for each such value of \(g\). This restriction is important: a straight line is not automatically a sensible probability model for every possible coefficient or extrapolated dosage.

Worked Example: Interpreting an Additive Risk Model

Consider a hypothetical additive probability model for a binary disease outcome: \(p_g=0.02+0.03g\), where \(g\) is alternate-allele dosage. The model and its probabilities are hypothetical.

For \(G=0\), \(p_0=0.02+0.03(0)=0.02\), or 2%. For \(G=1\), \(p_1=0.02+0.03(1)=0.05\), or 5%. For \(G=2\), \(p_2=0.02+0.03(2)=0.08\), or 8%.

The coefficient \(\beta_1=0.03\) means that each additional alternate allele corresponds to a 0.03 increase in modeled disease probability: 3 percentage points per allele. In particular, \(p_1-p_0=0.05-0.02=0.03\), and \(p_2-p_1=0.08-0.05=0.03\). The probabilities all lie between 0 and 1, so the model produces valid probabilities for the three genotype values considered. The interpretation is an absolute probability difference, not a relative percentage change and not, without additional assumptions, a causal effect.

If the genotype-specific probabilities do not have equal steps, a model with a separate parameter for each nonreference genotype can represent them without the additive restriction. Using \(G=0\) as the reference, one such model is:

$$ P(Y=1\mid G=g) =\beta_0+\beta_1 I(g=1)+\beta_2 I(g=2). $$

The indicator \(I(g=k)\) equals 1 when \(g=k\) and 0 otherwise. Thus \(p_0=\beta_0\), \(p_1=\beta_0+\beta_1\), and \(p_2=\beta_0+\beta_2\). Here \(\beta_1\) and \(\beta_2\) are risk differences relative to \(G=0\); the two genotype groups need not have the same difference from the reference. Valid fitted probabilities must still be between 0 and 1.

A dominant coding instead groups the two carrier genotypes together. Define \(D=I(G\geq1)\), and use \(p=\beta_0+\beta_DD\). This model assigns probability \(\beta_0\) to \(G=0\) and probability \(\beta_0+\beta_D\) to both \(G=1\) and \(G=2\). Its coefficient is the carrier-versus-noncarrier difference in modeled probability. The equality of the two carrier probabilities is a modeling constraint, not a fact guaranteed by the coding.

Worked Example: A Dominant Probability Model From Hypothetical Counts

In a hypothetical sample with a fixed disease definition and follow-up period, suppose 20 of 500 people with \(G=0\) have the outcome, 30 of 300 people with \(G=1\) have it, and 20 of 200 people with \(G=2\) have it. These counts are invented for illustration. Assume the outcome is recorded for every person in the stated group and that the genotype categories are coded as specified.

The observed proportions are \(20/500=0.04\) for \(G=0\), \(30/300=0.10\) for \(G=1\), and \(20/200=0.10\) for \(G=2\). Under a dominant coding, the carrier group combines \(G=1\) and \(G=2\): it has \(30+20=50\) outcomes among \(300+200=500\) people. Its observed proportion is therefore \(50/500=0.10\).

The corresponding reference and carrier probabilities, as represented by these sample proportions, are 0.04 and 0.10. The dominant-model difference is \(0.10-0.04=0.06\), or 6 percentage points. In the notation \(p=\beta_0+\beta_DD\), the sample-based values are \(\beta_0=0.04\) and \(\beta_D=0.06\). The two carrier proportions happen to agree here, so combining them preserves their observed proportion. These sample proportions estimate population probabilities; this arithmetic alone does not quantify sampling uncertainty or prove a genetic effect.

How to Read and Check a Probability-Scale Effect

A careful interpretation names the outcome, the genotype contrast, the scale, and the units. For example, “the modeled probability of disease over five years is 3 percentage points higher per alternate allele” states an absolute difference, its genotype increment, and its time context. It is more informative than saying only that “the genetic effect is 0.03.”

Before interpreting any probability model, check that its coding matches the intended comparison and that each probability it assigns is within \([0,1]\). Also distinguish the model's constraints from the observed genotype pattern. An additive dosage model imposes equal steps; a dominant model imposes equal probabilities for both carrier groups; a genotype-specific model allows those probabilities to differ. These are different descriptions of how probability varies by genotype.

1
Define the outcome.
State what counts as \(Y=1\), what counts as \(Y=0\), and the relevant assessment or follow-up period.
2
Choose the genotype coding.
Specify which allele dosage or genotype indicator is represented by each predictor value.
3
Write the probability model.
Translate its coefficients into genotype-specific probabilities and check that the probabilities are between 0 and 1.
4
Interpret a contrast.
Subtract the relevant probabilities and report the result as an absolute difference in probability, in context.

Common Mistake: Confusing Percentage Points With Percent Change

Suppose modeled risk increases from 0.02 to 0.05. The difference is \(0.05-0.02=0.03\), so the absolute increase is 3 percentage points. Calling it “a 3% increase” is ambiguous and can be incorrect: relative to 0.02, the increase is \(0.03/0.02=1.5\), or 150%. For a probability-scale coefficient, use percentage points or state the probability difference explicitly.

Another mistake is interpreting a genotype association as proof that changing genotype would change disease risk. The probability model describes the distribution of the outcome across genotype groups in the population and context under study. A causal interpretation requires additional design and assumptions; it does not follow from the probability-scale representation alone.

Key takeaway: A binary genetic phenotype can be modeled through \(P(Y=1\mid G)\). The genotype coding determines which probabilities may differ and which are constrained to follow a pattern. On the probability scale, a coefficient for a genotype contrast is an absolute change in outcome probability, subject to valid probability bounds.

Check Your Understanding

For each question, state the probability-scale interpretation precisely.

  1. If \(p_0=0.03\) and \(p_1=0.06\), what is the risk difference in percentage points, and why is it not a 3% relative increase?
  2. Under \(p_g=0.04+0.02g\), calculate \(p_0\), \(p_1\), and \(p_2\). What does the dosage coefficient mean?
  3. What equality of genotype-specific probabilities does a dominant coding impose?
  4. A probability model gives \(p_0=0.08\), \(p_1=0.11\), and \(p_2=0.17\). Are the two allele-step differences equal? Show the arithmetic.
  5. Why does a higher observed disease probability in one genotype group not, by itself, establish a causal genetic effect?
Clinical Biostats