Add downscaling-error diagnostic (OOB RMSE vs ensemble spread) - #4070
Merged
mdietze merged 3 commits intoSep 16, 2026
Merged
Conversation
Compare the downscaling random forest's out-of-bag RMSE against the between-member ensemble spread at the SDA sites, quantifying downscaling error the ensemble spread does not represent. R script plus test and README.
ankurdesai
approved these changes
Aug 24, 2026
ankurdesai
left a comment
Contributor
There was a problem hiding this comment.
look good - math makes sense to me
mdietze
approved these changes
Aug 24, 2026
mdietze
enabled auto-merge
August 24, 2026 23:33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a small diagnostic that compares the downscaling model's own predictive error against the spread of the SDA ensemble, at the assimilation sites, in each variable's own units.
Each SDA ensemble member is downscaled to a 1 km grid by its own random forest. This reads the saved per-member forests and reports, per variable and year, the between-member spread (standard deviation across members, averaged over sites), the downscaling out-of-bag RMSE (averaged over members), and their ratio. When the OOB RMSE exceeds the spread, the members agree with each other more tightly than the downscaling is actually accurate, so the downscaled maps carry error the ensemble spread does not represent. This complements the ensemble-calibration and regional diagnostics already in this directory.
Contents (in modules/benchmark/inst/ilamb/calibration/):
Note on language: the other diagnostics in this directory are Python; this one is R because the downscaling models are R randomForest objects saved in .Rdata, which R reads natively.
Motivation and Context
The ensemble-calibration work showed the ensemble is overconfident relative to independent benchmarks. One contributing mechanism is the downscaling step: the random forest emulator shares structure across members, so the members can agree closely while all being similarly off from truth. This diagnostic makes that quantitative by putting the downscaling's own error next to the between-member spread.
Review Time Estimate
Types of changes
Checklist: