Distribution-Free Conformal Prediction for Steel Fatigue Strength: Marginal Validity Is Not Enough
Year: 2026
Type: preprint
Abstract: Code for: Distribution-Free Conformal Prediction for Steel Fatigue Strength: Marginal Validity Is Not Enough Python implementation of the multi-seed conformal prediction experiment described in the paper "Distribution-Free Conformal Prediction for Steel Fatigue Strength: Marginal Validity Is Not Enough." Compares seven uncertainty quantification methods (split-conformal, cross-fitted normalized conformal, Mondrian group-conditional conformal, conformalized quantile regression, bootstrap ensemble, Gaussian process regression, and raw quantile regression) for steel fatigue strength prediction on the NIMS MatNavi dataset, across 50 random train/calibration/test splits. The core finding: split-conformal prediction is marginally valid (0.918 coverage on average) but conditionally miscalibrated, dropping to 0.758 coverage in the highest-strength quartile, where design margins matter most. A Gaussian process baseline fails identically. Two locally-adaptive methods correct this: a cross-fitted normalized conformal method restores near-uniform coverage (0.872-0.940) across all quartiles at no meaningful width cost, and Mondrian group-conditional conformal prediction holds the tightest conditional band of any method tested (0.917-0.939) at a 12% width premium. Conformalized quantile regression restores marginal validity without closing the conditional gap. Quartile cut points are fixed from training-derived out-of-fold predictions rather than test-set percentiles, so all methods are scored against the same partition. Contents:- 01_leakage_audit.py: duplicate and near-duplicate detection on the 437-sample dataset- diagnose_columns.py: dataset column diagnostic (identifies and excludes the non-physical row-index column)- 02_multi_seed_experiment.py: main experiment, produces all marginal and conditional coverage results across 50 seeds and seven methods- q4_bias_diagnostic.py: bias/variance decomposition for the highest-strength quartile- generate_clean_shap_figures.py: SHAP interpretability figures (bar and beeswarm)- make_quartile_figures.py: conditional coverage and interval-width bar charts by quartile- multi_seed_results.csv: marginal coverage and interval width per seed per method (Table 1)- quartile_coverage.csv: per-quartile coverage and width per seed per method (Tables 2-3)- shap_bar.png, shap_beeswarm.png: SHAP figures as they appear in the paper- quartile_coverage.png, quartile_width.png: conditional coverage figures as they appear in the paper Dataset: NIMS MatNavi steel fatigue dataset, obtained from Japan's National Institute for Materials Science (not included here due to third-party licensing; see paper for access details). Version note: corrects the input filenames in make_quartile_figures.py, which referenced an earlier working filename (quartile_coverage_v5.csv) rather than the deposited quartile_coverage.csv. No changes to data, results, or any other script.
Source: arXiv
Author: Boruah, Irene
Institution: Dibrugarh University
Language: English
Subfield: Materials Chemistry
Field: Materials Science
Domain: Physical Sciences
Open Access status: green
Funder: Carnegie Mellon University
OpenAlex ID: W7202210085
