formula search instrument
| Definition | A score written as a short expression in the features, such as the smaller of two features plus a third, with a threshold. Chapter 6. Also formula classifier, formula classifier, formula-search. |
|---|---|
| Example | Depth three over 18 operations found a feature minus a principal component plus a feature at F1 0.963 on breast cancer. |
| Book | Data Mining as Observation, draft 0.2, commit f3914f0; entry id formula-search, kind instrument. |
| Status | no ledger row names this entry. Corrections: 2 item(s), see below. |
| Defining equation | Book equation 5.4. |
| Assumptions and scope |
|
| Prior art | none recorded |
| Evidence | theory-radar/ERRATA.md:3-75, theory-radar/paper/REVISION_PLAN.md:39-45, lean/DataMiningAsObservation/MonotoneInvariance.lean, lean/DataMiningAsObservation/YoudenF1.lean |
| Reviewed | not yet reviewed; generated 2026-09-10 from records at the commits on the provenance page. |
Equation
Book equation 5.4.
\[\begin{gathered} F_1^{\max}\ \le\ \sup_{t\in[J,\,1]}\ \frac{2t\pi}{t\pi+\pi+(t-J)(1-\pi)},\qquad J=\max_{\tau}\big(\mathrm{TPR}-\mathrm{FPR}\big),\qquad \pi=\text{prevalence}, \\ J\le 2A-1\ \text{when the ROC curve is concave, and not in general.} \end{gathered}\]
Conditions
- The search enumerates short expressions over the features and scores each by its optimal thresholded F1, pruning monotone unary nodes by the Monotone Invariance Theorem and, in the A* companion, leaves by an F1 ceiling.
- Its first comparison reported nine wins that became three under the Nadeau and Bengio correction, with seventeen datasets indeterminate, and the record carries the retraction at the size of the result.
- The main comparison used a fold-local meta-learned pruning rule and never rested on the AUROC form of the ceiling. The A* companion did, and the rerun shows what that cost, nothing on those datasets.
Conditions are curated in entries.toml rather than read
from a record.
Ledger
none
First stated
theory-radar, DOI 10.5281/zenodo.20660206,
theory-radar/README.md, with the corrected comparison in
the constraint-gap review,
constraint-gap/review/REDESIGN.md:1-110.
Measurements
none
Failures and corrections
theory-radar/ERRATA.md:3-75at 37c4e6c. 2026-09-03. The AUROC to F1 bound holds only for concave ROC curves What was claimed. Theorem “AUROC-F1 Bound” inpaper/astar_paper.tex, the derivation insrc/symbolic_search/_auroc_proof.py, and the pruning bounds inrun_astar_v2.pyandsrc/symbolic_search/_heuristic_dag.pyall rested on the statement that any ROC curve with area A has maximum Youden index J = max(TPR − FPR) at most 2A − 1. Why it is wrong. The statement holds for concave ROC curves (equivalently, scores whose likelihood ratio is monotone), because a concave curve lies above the two chords through its Youden point and so has area at least (1 + J)/2. It fails for non-concave curves. Counterexample, found by an external reviewer of the companion textbook: rank three quarters of the positives above every negative and the remaining quarter below every negative. AUROC is 0.75, the maximum Youden index is 0.75, and at prevalence one half the best thresholded F1 is 0.857, above the 0.80 the AUROC form of the ceiling allows. The sound ceiling for that score, from J = 0.75, is 0.889, and the score sits under it. Theauroc_f1_boundformula inrun_astar_v2.py, 2Aπ/(Aπ + (1 − A)(1 − π)), is not a valid upper bound either: at prevalence 0.1 the same score reaches F1 0.857 against a “bound” of 0.5. Consequence for reported results. The searches that used these bounds to prune could have discarded a candidate formula whose ROC curve was not concave and whose true best F1 exceeded the computed ceiling. The formulas and wins reported by those runs are therefore what a pruned search found, and are lower bounds on what an unpruned search would find. The Monotone Invariance Theorem and the results that do not depend on the AUROC bound are unaffected. Correction. The sound form of the ceiling substitutes the measured maximum Youden index of the candidate’s own scores for 2A − 1. It holds for every score, costs the same sort as AUROC, and is whatmax_f1_for_youdenandyouden_f1_boundnow compute. The AUROC form is retained under its original names with a docstring stating the concavity condition, and the pruning sites now use the measured index. A rerun of the published searches under the corrected bound was done on 2026-09-03 and 2026-09-04,rerun_youden_2026_09_03.py, results inresults/rerun_youden_2026_09_03.json, run on the Atlas workstation, CPU only. Rerun, part A, the pre-filter admissibility table (tab:auroc). Depth-2 pairwise enumeration on the eight datasets, exhaustive against the AUROC pre-filter at the seven published thresholds, with the sound Youden ceiling beside it. The evaluation counts under the pre-filter reproduce the published table (Breast Cancer 8700 pairs, 2576 evaluated at 0.75; Wine 1560, 413; Circles 20, 4; Moons 20, 2). The pre-filter lost no optimum on any dataset at any threshold, which is what the paper reported. That was luck of the data, not the theorem: the retracted ceiling sat below the F1 a pair formula actually reachtheory-radar/paper/REVISION_PLAN.md:39-45at 37c4e6c. Fix: - Drop “σ significance” everywhere - Report: mean ΔF1, std, 95% CI, and corrected resampled t-statistic - Table columns: “Test F1”, “GB F1”, “ΔF1”, “95% CI”, “Direction” - Text: “the formula outperforms GB by ΔF1=0.031, 95% CI [0.028, 0.034]” - Add Nadeau-Bengio corrected t-test (accounts for CV fold correlation) - Keep effect size as supplementary but don’t call it “σ”
Invariance envelope
none declared
Machine checked
lean/DataMiningAsObservation/MonotoneInvariance.lean,
theorems aurocNum_comp, auroc_comp,
predicted_comp, predictedBelow_comp,
sweptF1_comp, sweptF1Below_comp,
optF1_comp, at observation-data-mining f3914f0; what the
check covers is stated in the book’s appendix
C.
lean/DataMiningAsObservation/YoudenF1.lean,
theorems f1_eq, f1_le_of_youden,
auroc_eq, youden_eq,
youden_exceeds_auroc_form, at observation-data-mining
f3914f0; what the check covers is stated in the book’s appendix
C.
Used in
Data Mining as Observation chapters 0, 5, 6, 7, 14.
Related
Monotone Invariance Theorem; safe pruning; Youden F1 bound; read operator.
See also
Book equations stated beside the entry’s terms, not defining it: 6.2, 7.4, 7.6.
Sources-table rows that share a record with the entry without naming it: chapter 5 section 5.4, chapter 6 section 6.3, chapter 6 section 6.4, chapter 6 section 6.5, chapter 7 section 7.3, chapter 7 section 7.4, chapter 8 section 8.4, chapter 8 section 8.5, chapter 8 section 8.9.
Status
Generated 2026-09-10 by encyclopedia/generate.py; book
at observation-data-mining f3914f0; the commit of every record is listed
in the encyclopedia’s provenance.