From artifacts/commander-ratings-v4.md.

Commander residual ratings, run 4 (diagnostic)

A residual rating is not command skill, a causal effect or a ranking of record. It summarises how a commander's battles went relative to what force size and the theater and period predict, pulled towards zero, relative to their own side.

Rows: 301 battles in 108 campaigns; 120 with a modelled (grade E) side, of which 15 because their only figures were post-start; 18 with a joint-command side, which gets no commander term. 20 imputations. Every result carries whole_engagement_leakage, conditional_on_source_availability, not_causal, side_relative, modelled_strength.

The verdict (pre-registered)

Rule: campaign-bootstrap 95th percentile of the log-loss difference (commander minus context) below zero under both the battle and the campaign weighting.

ModelLog loss, battle-weightedLog loss, campaign-weighted
Commander + context (τ estimated in each fold)0.65000.6685
Context only0.66740.6771
Commander + context (τ = 0.5)0.65130.6677
Commander, no context (τ = 0.5)0.64460.6629
Strength only0.65630.6678
Commander minus contextDifference95th percentile (the rule)95% intervalResamples ≥ 0
Battle-weighted-0.0174-0.0054-0.0320 to -0.00300.9%
Campaign-weighted-0.0086+0.0092-0.0289 to +0.013020.9%

No improvement under the pre-registered rule: commander identity adds no detectable predictive signal beyond force size and context in these data. No ordered ranking is given. The JSON keeps every estimate, labelled no_heldout_signal.

Descriptive, not part of the verdict: the commander model did better in 65 campaigns and worse in 43 (ties 0; exact two-sided sign-test p = 0.043); 236 of 301 held-out rows had a commander seen in another campaign; Monte Carlo check of the difference: imputations 1–10: -0.0179 battle, -0.0090 campaign; imputations 11–20: -0.0168 battle, -0.0082 campaign.

Other held-out comparisons (descriptive)

ComparisonBattle-weightedCampaign-weighted95% interval, battle95% interval, campaign
Commander + context (τ = 0.5) − Context only-0.0161-0.0095-0.0285 to -0.0043-0.0262 to +0.0076
Commander, no context (τ = 0.5) − Strength only-0.0118-0.0049-0.0232 to -0.0005-0.0203 to +0.0114
Context only − Strength only+0.0111+0.0093-0.0082 to +0.0325-0.0127 to +0.0312
Commander + context (τ estimated in each fold) − Strength only-0.0063+0.0007-0.0272 to +0.0161-0.0245 to +0.0263
Bridge: run 3's configuration on the v3 ledger, commander − strength only-0.0134-0.0073-0.0252 to -0.0017-0.0233 to +0.0096

Without the rows that had a post-start side or a joint-command side (267 kept; stored predictions, no refit), commander minus context is -0.0159 battle-weighted and -0.0055 campaign-weighted (95th percentiles -0.0029 and +0.0143).

Concentration (no refit): the net gain over all rows is 5.228; Nathan Bedford Forrest's 12 rows carry 2.408. Without them, commander minus context is -0.0098 battle-weighted and -0.0054 campaign-weighted (95th percentiles -0.0004 and +0.0069).

How much do commanders differ? (τ, descriptive)

On all rows, the Laplace marginal likelihood (mean over imputations) peaks at τ = 0.6 on the grid 0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.8, 1.0, 1.25, 1.5; grid values within 1.92 log units of the peak run from 0.2 to 1.0 (an approximate 95% profile interval; it excludes τ = 0, no commander spread). In the held-out folds, τ-hat was 0.5 in 2, 0.6 in 106 of 108 folds. Ratings below use τ = 0.6 (tau hat).

Calibration: with outcomes simulated 100 times from the context model (no commander differences; first 5 imputations), the largest log-evidence gain over the grid had median 0.00 and 95th percentile 0.89; the observed gain on the same imputations is 2.51 (p = 0.010).

τLog evidence minus context model
0.0+0.00
0.1+0.19
0.2+0.68
0.3+1.29
0.4+1.84
0.5+2.21
0.6+2.36
0.8+1.99
1.0+0.95
1.25-0.89
1.5-3.01

Descriptive 1861–1863→1864–1865 split (no verdict): trained on 167, tested on 134, τ-hat 0.6 on the training years; log loss commander + context (τ estimated in each fold) 0.6321, context only 0.6457, commander + context (τ = 0.5) 0.6343, commander, no context (τ = 0.5) 0.6429, strength only 0.6505.

US commanders with two or more modelled battles (alphabetical)

CommanderBattlesModelled-strength rowsW–LPooled θ80% interval95% intervalRank 80%SD ratioLabels
A.J. Smith212–0+0.15-0.58 to +0.88-0.96 to +1.264–420.95no_heldout_signal, not_connected
Alfred Pleasonton322–1+0.01-0.70 to +0.72-1.07 to +1.097–440.92no_heldout_signal
Alfred Torbert212–0+0.23-0.50 to +0.95-0.89 to +1.343–400.94no_heldout_signal, not_connected
Ambrose E. Burnside735–2+0.16-0.47 to +0.79-0.80 to +1.135–400.82no_heldout_signal
Benjamin Franklin Butler522–3-0.17-0.83 to +0.50-1.18 to +0.8511–460.87no_heldout_signal
Benjamin M. Prentiss202–0+0.22-0.50 to +0.95-0.88 to +1.333–400.94no_heldout_signal, not_connected
Cuvier Grover332–1+0.08-0.61 to +0.79-0.99 to +1.175–430.92no_heldout_signal
David G. Farragut222–0+0.19-0.54 to +0.93-0.93 to +1.304–410.95no_heldout_signal, not_connected
David Hunter201–1-0.02-0.73 to +0.69-1.09 to +1.077–450.92no_heldout_signal
E. R. S. Canby312–1-0.05-0.75 to +0.67-1.11 to +1.038–450.92no_heldout_signal
Edward O.C. Ord212–0+0.25-0.47 to +0.97-0.84 to +1.353–390.93no_heldout_signal
Erastus Tyler210–2-0.27-0.99 to +0.45-1.37 to +0.8212–470.93no_heldout_signal
Fitz John Porter422–2-0.07-0.75 to +0.62-1.10 to +0.978–450.88no_heldout_signal
Franz Sigel200–2-0.28-1.00 to +0.45-1.38 to +0.8213–470.94no_heldout_signal
Frederick Steele323–0+0.26-0.46 to +0.97-0.82 to +1.343–390.92no_heldout_signal
G.K. Warren414–0+0.46-0.23 to +1.14-0.58 to +1.502–330.89no_heldout_signal
George B. McClellan303–0+0.41-0.29 to +1.11-0.65 to +1.482–350.91no_heldout_signal
George Crook201–1-0.03-0.74 to +0.68-1.12 to +1.067–450.93no_heldout_signal
George G. Meade403–1+0.18-0.50 to +0.86-0.87 to +1.214–400.88no_heldout_signal
George H. Thomas524–1+0.07-0.61 to +0.75-0.97 to +1.116–430.89no_heldout_signal
George Stoneman212–0+0.23-0.49 to +0.95-0.88 to +1.343–400.94no_heldout_signal
H. Judson Kilpatrick432–2-0.24-0.92 to +0.45-1.29 to +0.7912–470.89no_heldout_signal
Horatio G. Wright201–1-0.03-0.75 to +0.68-1.11 to +1.057–450.93no_heldout_signal
Irvin McDowell200–2-0.24-0.97 to +0.49-1.34 to +0.8711–470.94no_heldout_signal
Jacob D. Cox211–1-0.04-0.77 to +0.68-1.15 to +1.077–450.94no_heldout_signal
James G. Blunt644–2+0.09-0.57 to +0.73-0.93 to +1.086–410.85no_heldout_signal
James H. Wilson401–3-0.25-0.92 to +0.42-1.28 to +0.7813–470.87no_heldout_signal
James M. Williams211–1-0.03-0.75 to +0.69-1.14 to +1.077–450.94no_heldout_signal, not_connected
James Negley212–0+0.18-0.54 to +0.90-0.92 to +1.304–410.94no_heldout_signal, not_connected
James Shackelford211–1-0.15-0.88 to +0.57-1.27 to +0.949–460.95no_heldout_signal
John G. Foster222–0+0.26-0.45 to +0.98-0.83 to +1.343–400.93no_heldout_signal, not_connected
John G. Parke212–0+0.22-0.49 to +0.95-0.86 to +1.334–400.93no_heldout_signal, not_connected
John M. Schofield423–1+0.03-0.66 to +0.73-1.03 to +1.106–430.90no_heldout_signal
John McNeil313–0+0.41-0.30 to +1.09-0.68 to +1.442–350.90no_heldout_signal
John T. Wilder221–1-0.11-0.84 to +0.61-1.20 to +0.999–460.94no_heldout_signal, not_connected
Joseph A. Mower212–0+0.15-0.58 to +0.88-0.96 to +1.264–420.95no_heldout_signal
Joseph Hooker311–2-0.31-1.02 to +0.39-1.40 to +0.7513–470.91no_heldout_signal
Nathaniel Lyon201–1-0.07-0.80 to +0.65-1.17 to +1.048–450.94no_heldout_signal
Nathaniel P. Banks714–3-0.09-0.74 to +0.55-1.07 to +0.919–440.84no_heldout_signal
Philip Sheridan816–2+0.29-0.35 to +0.93-0.67 to +1.274–360.82no_heldout_signal
Quincy A. Gillmore411–3-0.38-1.06 to +0.30-1.44 to +0.6516–480.89no_heldout_signal, not_connected
Robert Milroy200–2-0.27-0.99 to +0.44-1.37 to +0.8312–470.93no_heldout_signal
Samuel D. Sturgis432–2-0.25-0.93 to +0.44-1.31 to +0.7913–470.90no_heldout_signal
Samuel R. Curtis312–1+0.01-0.69 to +0.70-1.06 to +1.087–440.91no_heldout_signal
Ulysses S. Grant1029–1+0.47-0.15 to +1.10-0.48 to +1.442–300.81no_heldout_signal
William S. Rosecrans504–1+0.13-0.53 to +0.80-0.89 to +1.165–410.87no_heldout_signal
William T. Sherman1055–5-0.38-0.98 to +0.23-1.29 to +0.5418–470.79no_heldout_signal
William W. Averell313–0+0.34-0.36 to +1.04-0.73 to +1.413–370.91no_heldout_signal, not_connected
Winfield Scott Hancock430–4-0.57-1.24 to +0.11-1.61 to +0.4722–490.88no_heldout_signal

Confederate commanders with two or more modelled battles (alphabetical)

CommanderBattlesModelled-strength rowsW–LPooled θ80% interval95% intervalRank 80%SD ratioLabels
A.P. Hill301–2-0.13-0.82 to +0.56-1.20 to +0.959–390.90no_heldout_signal
Braxton Bragg511–4-0.09-0.76 to +0.59-1.12 to +0.958–390.88no_heldout_signal
D. H. Hill220–2-0.25-0.97 to +0.46-1.36 to +0.8411–410.93no_heldout_signal
Douglas H. Cooper201–1-0.01-0.74 to +0.71-1.11 to +1.096–390.94no_heldout_signal
Earl Van Dorn531–4-0.21-0.88 to +0.47-1.22 to +0.8211–400.87no_heldout_signal
George A. Anderson211–1+0.14-0.59 to +0.87-0.97 to +1.254–370.95no_heldout_signal, not_connected
George Pickett211–1+0.11-0.60 to +0.83-0.99 to +1.215–370.94no_heldout_signal
Henry Heth321–2-0.11-0.79 to +0.59-1.16 to +0.979–390.90no_heldout_signal
Humphrey Marshall221–1+0.03-0.69 to +0.76-1.08 to +1.156–380.94no_heldout_signal
J.E.B. Stuart311–2-0.06-0.76 to +0.63-1.13 to +1.008–390.90no_heldout_signal
James Longstreet744–3+0.34-0.28 to +0.97-0.61 to +1.323–310.82no_heldout_signal
James R. Chalmers312–1+0.23-0.46 to +0.92-0.83 to +1.304–340.90no_heldout_signal
John B. Floyd211–1+0.03-0.70 to +0.75-1.08 to +1.156–380.94no_heldout_signal
John B. Gordon200–2-0.24-0.96 to +0.48-1.34 to +0.8611–410.94no_heldout_signal, not_connected
John B. Magruder212–0+0.36-0.36 to +1.08-0.73 to +1.452–320.93no_heldout_signal, not_connected
John Bell Hood941–8-0.42-1.06 to +0.22-1.38 to +0.5517–410.83no_heldout_signal
John C. Breckinridge513–2+0.23-0.42 to +0.89-0.77 to +1.224–330.85no_heldout_signal, not_connected
John C. Pemberton321–2+0.09-0.61 to +0.81-1.00 to +1.185–370.93no_heldout_signal
John Hunt Morgan612–4+0.07-0.58 to +0.73-0.93 to +1.096–360.85no_heldout_signal
John S. Bowen321–2+0.12-0.59 to +0.83-0.96 to +1.215–360.93no_heldout_signal
John S. Marmaduke1023–7-0.22-0.83 to +0.39-1.15 to +0.7013–400.79no_heldout_signal
John S. Williams210–2-0.14-0.87 to +0.59-1.27 to +0.968–400.95no_heldout_signal
Joseph E. Johnston935–4+0.39-0.23 to +1.02-0.57 to +1.353–290.81no_heldout_signal
Joseph Wheeler520–5-0.44-1.13 to +0.24-1.46 to +0.6216–410.88no_heldout_signal
Jubal A. Early813–5-0.11-0.74 to +0.51-1.07 to +0.8310–390.81no_heldout_signal
Lawrence O'Bryan Branch200–2-0.25-0.95 to +0.47-1.33 to +0.8511–410.93no_heldout_signal
Nathan Bedford Forrest1249–3+0.96+0.38 to +1.54+0.09 to +1.831–130.75no_heldout_signal
Nathan Evans312–1+0.26-0.44 to +0.96-0.81 to +1.313–340.91no_heldout_signal, not_connected
P.G.T. Beauregard726–1+0.64+0.01 to +1.27-0.33 to +1.612–230.82no_heldout_signal
Patrick R. Cleburne202–0+0.43-0.29 to +1.15-0.65 to +1.542–300.93no_heldout_signal
Richard H. Anderson211–1+0.04-0.67 to +0.75-1.05 to +1.116–380.92no_heldout_signal, not_connected
Richard S. Ewell412–2+0.04-0.64 to +0.71-0.99 to +1.086–370.89no_heldout_signal
Richard Taylor731–6-0.41-1.07 to +0.25-1.42 to +0.6016–410.86no_heldout_signal
Robert E. Lee1858–10+0.05-0.48 to +0.58-0.76 to +0.859–350.69no_heldout_signal
Robert Hoke211–1+0.01-0.71 to +0.74-1.07 to +1.116–380.94no_heldout_signal
Sterling Price1054–6+0.00-0.61 to +0.61-0.93 to +0.948–370.79no_heldout_signal
Thomas C. Hindman200–2-0.24-0.96 to +0.49-1.33 to +0.8910–410.94no_heldout_signal, not_connected
Thomas J. Jackson816–2+0.36-0.28 to +0.99-0.61 to +1.343–300.83no_heldout_signal
Tom Green533–2+0.18-0.48 to +0.85-0.83 to +1.204–340.86no_heldout_signal
Wade Hampton202–0+0.32-0.40 to +1.05-0.77 to +1.423–330.93no_heldout_signal
William C. Quantrill222–0+0.39-0.33 to +1.10-0.72 to +1.482–310.94no_heldout_signal, not_connected
William T. Martin220–2-0.17-0.90 to +0.55-1.29 to +0.959–400.95no_heldout_signal

Views, the per-view table, every held-out prediction and the per-fold τ are in the JSON. Commanders with one modelled battle are there with their estimate, which is almost entirely the prior.