Model confidence sets

Open
#1,055 6 comments 3 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@sbfnk is already working on this.

Since Jan 19, 2026.

Assessment

This issue has not been assessed yet.

Description

feature request

Summary

Add functionality to compute Model Confidence Sets (MCS) - identifying the set of models that cannot be statistically distinguished from the best model at a given confidence level.

Motivation

When comparing multiple forecasting models, users often want to know not just which model performs best, but which models are "in the running" - i.e., cannot be ruled out as being the best given the available data. The MCS provides a principled answer to this question.

A larger MCS indicates more uncertainty about which model is truly best, often due to limited data, similar performance, or high score variability.

Related discussion: https://community.epinowcast.org/t/model-confidence-set/221 https://community.epinowcast.org/t/do-your-evaluations-have-enough-power

Proposed solution

A get_model_confidence_set() function that:

  • Takes output from get_pairwise_comparisons()
  • Identifies the best model (lowest relative skill)
  • Tests whether each other model is significantly worse
  • Returns models where the null hypothesis of equal performance cannot be rejected

This would support:

  • Conditional MCS: Separate confidence sets for subgroups (via by argument in get_pairwise_comparisons())
  • Sequential MCS: Track how MCS evolves over time (by filtering scores cumulatively)

Example usage

scores |>
  get_pairwise_comparisons() |>
  get_model_confidence_set()

# Conditional MCS by location
scores |>
  get_pairwise_comparisons(by = "location") |>
  get_model_confidence_set()

References

Dominant language
R
Stars
67
Forks
24
Avg merge
1h 24m
Merged PRs (30d)
2

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from epiforecasts/scoringutils

All issues in epiforecasts/scoringutils

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.