- Introduced by
- Paul W. Holland & Dorothy T. Thayer (Mantel-Haenszel approach, 1988)
- Year
- 1988
- Type
- Item-level fairness / measurement equivalence analysis
What does it do?
Differential Item Functioning (DIF) analysis tests whether examinees from different groups, such as gender, ethnicity, or language background, who have the same underlying ability respond differently to a test item.
Holland and Thayer (1988) adapted the Mantel-Haenszel procedure for this purpose, and it remains one of the standard methods for detecting and reviewing item bias in test development.
The intuition behind the method
Imagine two students who both know the subject equally well, but one answers a particular test item correctly far more often than the other. If that gap cannot be explained by their actual ability levels, something about the item itself is creating an unfair advantage. DIF analysis catches exactly this: it matches examinees on total score or estimated ability, then asks whether one group still outperforms the other on a specific item after that matching. An item that passes the DIF check is working the same way for everyone; one that fails is flagged for expert review.
History
Holland and Thayer (1988) adapted the Mantel-Haenszel estimator, a general stratified odds-ratio method, to the detection of differential item functioning, and the Educational Testing Service is associated with its use in operational testing. Logistic regression methods extended the framework to non-uniform DIF and to covariates such as language status. Magis, Béland, Tuerlinckx and De Boeck (2010) set out a general framework for dichotomous DIF detection and released an R package for applying it.
When to use it
DIF analysis is appropriate when a test or scale is intended to measure the same construct fairly across two or more distinct groups. The reference group (typically the majority or standardisation group) and the focal group (the group being evaluated for possible disadvantage) must be defined in advance, on theoretical or practical grounds. Ability matching relies on the total score or an IRT-estimated theta, so the test as a whole must provide a meaningful ordering of examinees. Power depends mainly on the size of the smaller group, the expected size of the DIF effect, and the number of items tested, so the analysis should be planned with the smaller group in mind; very small focal groups make Mantel-Haenszel estimates unstable and DIF detection unreliable. Items must be scored as binary (dichotomous) responses. The procedures described on this page are not designed for ordinal or polytomous items, which require a polytomous extension that is not covered here. Do not use DIF analysis to judge whether an item is biased in itself: it identifies statistical differences that still need substantive review. Multiple-comparison correction (Bonferroni) must be applied when testing many items simultaneously.
Limitations and considerations
- DIF detection is purely statistical: a flagged item may show differential functioning for defensible content reasons rather than bias, so every flagged item requires substantive expert review before it is removed.
- Power depends on the size of the smaller group and on the expected size of the DIF effect; small focal groups produce low power and unstable estimates, and no fixed sample size guarantees reliable detection.
- The analysis requires a purified matching criterion. If many items have DIF, the total score used for matching is itself biased, distorting the DIF estimates for the remaining items.
- DIF analysis identifies group-level patterns; it says nothing about fairness for individual examinees.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Provides a principled, statistically grounded method for identifying items that function differently across groups, which supports fairness review in high-stakes testing.
- The Mantel-Haenszel procedure stratifies on ability rather than fitting an IRT model, so it does not depend on IRT model fit when that fit is uncertain.
- The ETS A/B/C classification translates statistical results into categories that test developers can act on without deep psychometric expertise.
- Logistic regression DIF detects both uniform and non-uniform DIF, giving a fuller picture of item behaviour than the Mantel-Haenszel odds ratio alone.
Applications
- Large-scale standardised tests and licensing examinations, where DIF review is commonly part of item evaluation before release.
- Cross-cultural and multilingual survey research, detecting items that function differently across language or cultural groups.
- Educational equity research, investigating whether assessment instruments disadvantage students from minority or historically underserved groups.
- Clinical outcome measurement, checking whether patient-reported outcome scales perform equivalently across demographic subgroups.
How it works
How it works
For a single item, the model in the formula treats the probability of a correct response as a logistic function of latent ability θ plus a group-specific intercept α_g, with a common slope β on ability. This is the uniform-DIF form. If the item has no DIF, the intercept is the same for both groups, so a difference in α_g between groups at the same ability level indicates uniform DIF: a consistent advantage or disadvantage for one group across the ability range. Non-uniform DIF, where the group gap changes at different points on the ability scale, requires extending the model with a group-by-ability interaction term; the formula shown here does not include that term.
Formula
\ln\frac{P(X_{ig}=1|\theta_i)}{1-P(X_{ig}=1|\theta_i)} = \alpha_g + \beta\theta_iThe Mantel-Haenszel estimator quantifies DIF non-parametrically by stratifying examinees into ability score strata k. Within each stratum it forms a 2×2 contingency table of group (reference vs. focal) by response (correct vs. incorrect), counting A (reference correct), B (reference incorrect), C (focal correct), and D (focal incorrect) out of T total examinees in the stratum. The common odds ratio across strata estimates how much more likely the reference group is to succeed relative to the focal group at the same ability level. This log-odds ratio is converted to the ETS delta scale, which is a linear transform of its natural logarithm, and the Mantel-Haenszel chi-square test is used to assess significance. Items are then classified as A (negligible DIF), B (moderate DIF), or C (large DIF). Because the matching score itself contains the items being tested, DIF items are normally purified iteratively: items flagged as DIF are removed from the matching score, the DIF statistics are recomputed, and the cycle is repeated until the flagged set no longer changes. This is common practice rather than a single fixed standard. Lord's chi-square offers a complementary test based on item parameters estimated from an IRT model, and item-level tests should be corrected for multiplicity with the Bonferroni adjustment.
Formula
\hat{\alpha}_{MH} = \frac{\sum_k A_k D_k / T_k}{\sum_k B_k C_k / T_k}Common pitfalls
- Defining groups after inspecting the data. Reference and focal groups must be specified on theoretical or practical grounds before the analysis begins.
- Skipping the item-purification step. When the initial matching criterion (total score) includes DIF items, iterative purification (removing flagged items and re-estimating) is needed for valid DIF detection.
- Omitting Bonferroni or other multiple-comparison correction when testing many items. Without it, the number of spuriously flagged items rises sharply.
- Treating every statistically significant DIF result as item bias. Statistical DIF and item bias are not the same: a DIF flag is a hypothesis to investigate, not a verdict.
Frequently asked questions
What is the difference between DIF and item bias?
DIF is a statistical finding: an item shows differential functioning when examinees of equal ability from different groups respond to it at different rates. Item bias is a substantive judgment: an item is biased when that differential functioning cannot be justified by the construct being measured. Every biased item has DIF, but not every DIF item is biased, because differential functioning may reflect a legitimate multidimensional feature of the construct. Human expert review of flagged items is therefore essential.
Which DIF method should I use: Mantel-Haenszel, logistic regression, or Lord's chi-square?
Mantel-Haenszel is a long-standing and computationally simple method; it detects uniform DIF and its delta-scale output maps directly to the ETS A/B/C classification. Logistic regression is preferred when you also want to detect non-uniform DIF, or when you wish to include covariates such as language status alongside group membership. Lord's chi-square requires fitting an IRT model and is appropriate when IRT parameter estimates are already available and model fit is adequate. Running Mantel-Haenszel and logistic regression together and comparing their flags is a useful check.
How large a sample do I need for DIF analysis?
There is no single fixed sample size that guarantees reliable DIF detection. Power depends mainly on the size of the smaller (focal) group, the expected size of the DIF effect, and the number of items tested. Small focal groups in particular produce unstable Mantel-Haenszel and logistic regression estimates and a higher rate of missed DIF. If your focal group is too small for formal DIF testing, consider descriptive item statistics as a preliminary diagnostic.
What does ETS A/B/C DIF classification mean?
Under the Educational Testing Service (ETS) convention, the Mantel-Haenszel log-odds ratio is translated into a difference on the delta scale, and the thresholds apply to the absolute value of that difference. Class A (negligible DIF) means the absolute delta is below 1.0 or the result is not statistically significant; items are generally retained without review. Class B (moderate DIF) covers absolute delta values from 1.0 to below 1.5 that are statistically significant; items are flagged for substantive expert review. Class C (large DIF) means an absolute delta of at least 1.5 that is also statistically significant; items are typically eliminated or substantially revised before use in high-stakes contexts.
Related methods
Sources
Holland, P. W. & Thayer, D. T. (1988). Differential Item Performance and the Mantel-Haenszel Procedure. ETS Research Report Series.
Open publication referenceMagis, D., Beland, S., Tuerlinckx, F. & De Boeck, P. (2010). A General Framework and an R Package for the Detection of Dichotomous Differential Item Functioning. Behavior Research Methods, 42(3), 847–862.
Open DOI reference