EProportions · Guide test 302
Transmission disequilibrium test
Tests excess transmission of an allele from heterozygous parents to affected offspring.
Do it in CodeSplash
In the app, set it up in Analyze with this method:
- Transmission disequilibrium test (TDT) — Do heterozygous parents pass one allele to affected children more often than chance?
In Transmission disequilibrium test (TDT), choose Test = Exact binomial or choose Test = McNemar χ².
Do it in CodeSplash Run this test on your own data, in Python or R.
Bench
Change the design, drag the data, move α. The statistic, its reference distribution and the verdict follow.
Bench · Transmission disequilibrium test
Your data
Edit the counts| After: yes | After: no | Total | |
|---|---|---|---|
| Before: yes | 36E = 29.7 | 30E = 36.3 | 66 |
| Before: no | 18E = 24.3 | 36E = 29.7 | 54 |
| Total | 54 | 66 | 120 |
E is the count expected if rows and columns were unrelated.
If H₀ were true
- The reference: how χ² varies across samples when H₀ is true (χ² approximation).
- Your statistic, from the data above.
- The p-value: the area at least as extreme as yours (p = .083).
- The hatched rejection region at α = .050: statistics landing here reject H₀.
The formula
With your numbers
- transmissions of allele 1 vs. allele 2 from heterozygous parents
The verdict
χ²(1) = 3.00, p = .083
p > α = .050: compatible with H₀
McNemar's test on transmissions: family-based, so population stratification cannot create a false association.
- Statistic
- 3.000
- p-value
- 0.0833
Transmission disequilibrium test on a 2 × 2 table of 120 counts: χ²(1) = 3.00, p = .083. The p-value is above α = .050, so the data are compatible with H₀.
Question and hypotheses
H0: a heterozygous parent transmits either allele to an affected child with probability 1/2 under the relevant no-association null.
Assumptions
Appropriately ascertained family trios, Mendelian transmission, accurate genotypes and correct handling of related siblings/parents.
Formula
Parameters and notation
b,c count transmissions versus nontransmissions of the tested allele from informative heterozygous parents.
Structure of the method
Use informative heterozygous parental transmissions to compare transmitted and untransmitted allele counts. Conditional on their total, the simplest null is binomial with probability one half; a squared imbalance gives a one-degree-of-freedom asymptotic statistic for the appropriate family design.
Estimated and nuisance parameters
The transmission proportion and imbalance are estimated from informative transmissions. The null transmission probability is fixed by the model. Population allele frequency is not a nuisance parameter in the basic conditional comparison, but genotype phase, family structure and ascertainment affect which transmissions are informative.
Settings and design choices
Specify the tested allele, affected-offspring ascertainment, exact versus asymptotic tail and handling of multiple siblings or ambiguous transmissions. Family-based extensions are needed for complex pedigrees or multiple alleles. A transmitted/nontransmitted table should not be confused with an ordinary case-control allele table.
Fitting and adaptation
There is no neural fitting. Validate pedigree and Mendelian consistency, construct informative counts under the chosen design and apply the calibrated test. For related transmissions, use a family-aware method or justified resampling at the family level rather than treating all counted events as independent.
Sensitivity and robustness
Few informative parents yield discrete p values and favor exact calibration. Genotyping errors can create apparent transmission imbalance; population-stratification robustness does not eliminate ascertainment or pedigree problems. Report informative-family counts, allele direction and quality checks, and distinguish association from localization of a unique causal variant.
How to use and calibrate
Use χ²1 or an exact transmission binomial test; extensions handle multiple alleles and complex families.
Example application
Test family-based genetic association with reduced population-stratification confounding.
Interpretation and pitfalls
Watch out
Not every family member provides an independent transmission. Genotyping error and ascertainment assumptions still matter.
What changed in edition 2
- New sections: structure of the method, estimated and nuisance parameters, settings and design choices, fitting and adaptation, sensitivity and robustness.
Python and R
Counts are transmitted versus nontransmitted alleles from informative heterozygous parents. Shows uncorrected chi-square and exact conditional-binomial calibrations; neither treats uninformative parents as independent transmissions.
Validated — Executed successfully in the validation environment · needs numpy, scipy
import numpy as np
from scipy import stats
rng = np.random.default_rng(2026)
b=30;c=18;T=(b-c)**2/(b+c)
print(T,stats.chi2.sf(T,1));print(stats.binomtest(b,b+c,p=.5))
Output
3.0 0.08326451666355042 BinomTestResult(k=30, n=48, alternative='two-sided', statistic=0.625, pvalue=0.11140289106101878)
Validated — Executed successfully in the validation environment · needs Base/standard library
b<-30;c<-18;T<-(b-c)^2/(b+c);print(c(TDT=T,p=pchisq(T,1,lower.tail=FALSE)));print(binom.test(b,b+c,p=.5))
Output
TDT p
3.00000000 0.08326452
Exact binomial test
data: b and b + c
number of successes = 30, number of trials = 48, p-value = 0.1114
alternative hypothesis: true probability of success is not equal to 0.5
95 percent confidence interval:
0.4735058 0.7604776
sample estimates:
probability of success
0.625Sources
- pmc.ncbi.nlm.nih.gov/articles/PMC1682161/pmc.ncbi.nlm.nih.gov
- Method sourcepmc.ncbi.nlm.nih.gov
- Statistics guide v4 (historical):
- R: Executed successfully in the validation environment
- Reference's record:
- Edition 2 review: Python: executed · R: not executed (Rscript unavailable). Python: Ran in the reference's review, on this exact code. R: Reviewed but not run: R wasn't available to the reference's authors.
From the CodeSplash statistics guide (v4), entry 302, updated from the reference's edition 2 (reviewed 14 November 2026) as STAT302.