
Permutation Importance
Permutation importance shuffles one held-out column for a fixed model and measures the score drop, with repeated shuffles and baseline scores guiding interpretation, especially under correlated predictors.
Fontes
Resumo completo
Permutation importance begins with a fitted model and a held-out dataset. Take one column, shuffle its values so the rows no longer match their original partners, and score the model again. The drop in score from the baseline measures how much the model leaned on that column for those rows. If a classroom model predicts plant height from sunlight, water, and soil nitrogen, shuffling the water column while leaving sunlight and nitrogen intact might drop the R-squared from 0.81 to 0.74. That seven-point drop is the permutation importance of water for this model and this dataset. It says nothing about whether water causes height in the world, only that this fitted model used the water column to make these predictions.
A single shuffle is noisy. Repeating the shuffle twenty or thirty times gives a mean drop and a sense of spread. Always report the baseline score first. A drop from 0.81 to 0.74 is a seven-point change, but the same seven points from a baseline of 0.55 would be a larger relative loss, and from a baseline near chance the model has little reliable signal to lose. The score matters too. Accuracy, mean squared error, or a probability score respond differently to the same shuffle, so state which score you used and its units.
Correlated predictors complicate the reading. If water and humidity move together, shuffling water alone leaves humidity as a stand-in. The model may still recover much of the lost information, so the drop for water is small even though moisture information matters. Both water and humidity can show small drops, and neither number reflects their joint role. A useful extension is to shuffle the group of correlated columns together and watch the score fall further. Random shuffles can also create unrealistic combinations, such as a cactus row with rainforest water and desert sunlight, which may push the model outside the data it was trained on. The drop then measures sensitivity to impossible inputs, not just loss of a feature.
Permutation importance is not refitting. Refitting removes or scrambles a column and trains a new model, which can learn new weights and compensate. Permutation holds the fitted model fixed and probes its behaviour on held-out rows. A feature the model ignores will show a drop near zero, but that does not mean the feature is useless in a different model or population. The numbers are descriptions of this model on this data, not causal claims or a universal ranking.
In a classroom, students can predict the drop before computing it. Give them a shuffled table and ask which column will cause the largest drop. One student may say water, another sunlight. Run twenty shuffles for each column, record the mean drops, and compare predictions with results. Ask why did the model rely on sunlight more than water? Was water redundant with humidity? Did the baseline score leave room to fall? A short written reflection, naming the baseline, the number of shuffles, the drop, and one reason the drop could understate a column's role, keeps the interpretation honest and the reasoning visible.


