Lambcast

Energy Economics • AI Infrastructure • Applied Econometrics

Which Generators Retire?

Machine learning on the PJM fleet • ECON 685, University of Maryland • Summer 2026

PJM operates the largest wholesale electricity market in the United States and sits at the center of data-center-driven demand growth. At the same moment demand is accelerating, the existing fleet is losing units to retirement every year, and the ones that leave are not a random sample. This project asks a narrow question: given a generating unit's physical and operational attributes, how closely does it match the profile of units that have already retired?

The data is the 2024 EIA-860 generator survey, restricted to the 13 states of the PJM footprint. The sample is 7,660 units, of which 1,256 (16.4 percent) are classified as retired. The outcome is binary and the predictors are physical: age, nameplate and seasonal capacity, minimum load, power factor, state, technology, prime mover, primary fuel, sector, and a set of configuration flags.

I fit seven models on a 75/25 train/test split: a logistic regression, a forward-selected logit under a BIC criterion adapted to classification, an L1-penalized logit with the penalty chosen by cross-validation, a generalized additive model with B-splines on age and log capacity, a random forest, gradient boosting, and XGBoost. Every model is evaluated out of sample on the same split for direct comparison.

Three findings organize the results. First, retirement status is highly learnable from physical attributes alone: all seven models clear a test AUC of 0.92, and the random forest reaches 0.979 with a test F-score of 0.866. Second, the predictive signal is concentrated: forward selection keeps 8 of 18 variables at essentially full-model performance. Third, although age is the single strongest predictor, it is not the whole story. A logit with age alone gets to 0.79 AUC, but removing age from the full models costs only about 0.015 AUC on average. Fuel, technology, and unit size carry most of the signal independently of vintage. The retired profile that emerges is old, small, and fuel-inflexible, which matches the coal-retirement literature.

As an extension, I score every operating unit with an out-of-fold retirement-resemblance probability and aggregate the capacity-weighted share above a threshold by state. Maryland, Indiana, and Kentucky hold the largest shares of retirement-resembling operating capacity, around 5 percent each. This is a fleet-composition lens rather than a closure forecast, but it points at where the operating fleet most resembles the units the market has already pushed out.

Model comparison (test set, threshold = 0.50)

Model Accuracy Precision Recall F-score AUC
Logit (full)0.9060.8790.5020.6390.924
Logit (forward, BIC)0.9010.8640.4800.6170.922
Logit (L1)0.9060.8790.5020.6390.925
GAM (B-splines)0.9110.8780.5420.6710.929
Gradient boosting0.9200.9230.5640.7000.955
Random forest0.9580.9160.8210.8660.979
XGBoost0.9450.9210.7300.8150.974

Download Python pipeline  •  Download term paper (PDF)

Summer 2026 • EIA-860 • Logit • GAM • Random Forest • Gradient Boosting • XGBoost • Python