The UCI Heart Disease data are a widely used machine-learning benchmark. We show that their chest-pain variable is stored in reverse of its documentation. At all four sites, the code documented as "asymptomatic" (4) marks patients with typical angina, and the code documented as "typical angina" (1) marks patients with almost none of the classical angina features (at Cleveland, no chest pain). Two complementary checks establish this: (i) the chest-pain table and regression coefficients of the original 1986 Cleveland study are reproduced only under the corrected reading; (ii) in the Budapest, Switzerland and Long Beach files, 93-96% of patients coded 4 have all three classical angina features. A 1990 word-labeled Cleveland file already uses the documented labels, and Statlog (Heart), a Cleveland subset, stores the same codes. OpenML, PMLB and two highly voted Kaggle copies that name the categories use the same documented labels (about 400,000 downloads combined). We audited a seeded random sample of 150 records from a pre-specified Scholar query for SHAP studies of these data mentioning asymptomatic chest pain (124 readable). Of 32 papers that state a direction for a named category, 25 (78%; 95% CI 61-89%) state one inconsistent with the corrected category identities; 22 (69%; 51-82%; post hoc) are attributable to the documentation error, and nine of these explain it clinically. None of the 124 readable papers identifies the reversal. Conventional models are essentially unaffected, one reason the error went unnoticed. Interpretations that attach the documented names to model effects are reversed, and zero-shot language-model classifiers that read the labels are misled: with the documented labels, three open-weight models lose 0.12-0.33 in area under the receiver operating characteristic curve (AUC) given age, sex and chest-pain type. We give the corrected mapping, evidence and code.
Figures & tables
Constant
Age
Sex
Pain
Published
−2.29
0.07
−0.85
−1.10
Refit, cp as stored
−7.77
0.07
−0.85
+1.10
Refit, cp corrected ( 5−cp )
−2.29
0.07
−0.85
−1.10
Table 1: Logistic regression of CAD on age, sex and chest pain in the Cleveland data (303 patients): coefficients published by Detrano et al. [ 5 ] (Table 8, subset 1) and refitted on the UCI file with cp as stored and corrected ( 5−cp ).
Site / stored code
0 features
1
2
3 features
Budapest, code 1 (“typical angina”)
10
0
0
1
Budapest, code 4 (“asymptomatic”)
0
0
5
118
Switzerland, code 1
4
0
0
0
Switzerland, code 4
1
3
3
91
Long Beach, code 1
8
0
0
0
Long Beach, code 4
0
0
5
126
Table 2: Classical angina features (substernal, exertional, relieved by rest) by stored chest-pain code, in the raw records of three UCI sites. Each cell gives the number of patients with 0, 1, 2 or 3 of the features, among patients with all three recorded. Full tables for all four codes are in the repository.
Table 3: Coding of chest-pain type in widely used copies (coding checked 17–18 Nov 2026; usage counts read from the pages on 18 Nov 2026). “Wrong” means the copy’s own labels give the documented reading.
Model
Template
AUC D
AUC C
AUC no cp
Δ AUC [95% interval]
Δ log loss [95% interval]
Qwen2.5-7B
full
0.844
0.861
0.859
+0.016 [0.004, 0.030]
−0.128 [ −0.215 , −0.042 ]
Qwen2.5-7B
minimal
0.458
0.789
0.637
+0.331 [0.240, 0.425]
−1.788 [ −2.108 , −1.487 ]
Llama-3.1-8B
full
0.512
0.589
0.477
+0.077 [0.043, 0.114]
−0.110 [ −0.139 , −0.082 ]
Llama-3.1-8B
minimal
0.542
0.779
0.626
+0.238 [0.145, 0.338]
−0.846 [ −1.003 , −0.700 ]
Phi-3.5-mini
full
0.855
0.856
0.837
+0.002 [ −0.012 , 0.016]
−0.107 [ −0.148 , −0.067 ]
Phi-3.5-mini
minimal
0.673
0.795
0.638
+0.122 [0.056, 0.191]
−0.955 [ −1.127 , −0.798 ]
Table 4: LLM probe on Cleveland (303 patients). AUC under documented (D) and corrected (C) labels, and differences C − D with paired-bootstrap 95% intervals (2,000 resamples).
School of Electronics and Communication Engineering, Sun Yat-sen University, Shenzhen Campus, Shenzhen, China · Department of Network Intelligence, Pengcheng Laboratory, Shenzhen, China