{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/conformal-pid-control-for-time-series-1","title":"Conformal PID Control for Time Series Prediction","arxiv_id":"2307.16895","date":"2023-07-31","proceeding":null,"authors":["Anastasios N. Angelopoulos","Emmanuel J. Candes","Ryan J. Tibshirani"],"abstract":"We study the problem of uncertainty quantification for time series prediction, with the goal of providing easy-to-use algorithms with formal guarantees. The algorithms we present build upon ideas from conformal prediction and control theory, are able to prospectively model conformal scores in an online setting, and adapt to the presence of systematic errors due to seasonality, trends, and general distribution shifts. Our theory both simplifies and strengthens existing analyses in online conformal prediction. Experiments on 4-week-ahead forecasting of statewide COVID-19 death counts in the U.S. show an improvement in coverage over the ensemble forecaster used in official CDC communications. We also run experiments on predicting electricity demand, market returns, and temperature using autoregressive, Theta, Prophet, and Transformer models. We provide an extendable codebase for testing our methods and for the integration of new algorithms, data sets, and forecasting rules.","url_abs":"https://arxiv.org/abs/2307.16895v1","url_pdf":"https://arxiv.org/pdf/2307.16895v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"conformal-pid-control-for-time-series-1","repo_url":"https://github.com/aangelopoulos/conformal-time-series","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"none","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"conformal-prediction","task_name":"Conformal Prediction"},{"task_slug":"prediction","task_name":"Prediction"},{"task_slug":"time-series-1","task_name":"Time Series"},{"task_slug":"time-series-prediction","task_name":"Time Series Prediction"},{"task_slug":"uncertainty-quantification","task_name":"Uncertainty Quantification"}],"methods":[{"method_slug":"absolute-position-encodings","method_name":"Absolute Position Encodings"},{"method_slug":"adam","method_name":"Adam"},{"method_slug":"attention","method_name":"Attention"},{"method_slug":"bpe","method_name":"BPE"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"dropout","method_name":"Dropout"},{"method_slug":"label-smoothing","method_name":"Label Smoothing"},{"method_slug":"layer-normalization","method_name":"Layer Normalization"},{"method_slug":"linear-layer","method_name":"Linear Layer"},{"method_slug":"multi-head-attention","method_name":"Multi-Head Attention"},{"method_slug":"position-wise-feed-forward-layer","method_name":"Position-Wise Feed-Forward Layer"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"softmax","method_name":"Softmax"},{"method_slug":"transformer","method_name":"Transformer"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2307.16895","atlas_url":"https://app.syntology.ai/?focus=2307.16895","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2307.16895"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/aangelopoulos/conformal-time-series","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":6,"unverified":4},"by_repo_kind":{"official":{"samples":10,"ran":6,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"37bbb86d90955318","entry":"fit_ar_model","repo":"aangelopoulos/conformal-time-series","repo_kind":"official","path":"core/ar.py","file_url":"https://github.com/aangelopoulos/conformal-time-series/blob/HEAD/core/ar.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"37bbb86d90955318"}},{"code_sha256_prefix":"210e10c5742f02e4","entry":"generate_process","repo":"aangelopoulos/conformal-time-series","repo_kind":"official","path":"core/ar.py","file_url":"https://github.com/aangelopoulos/conformal-time-series/blob/HEAD/core/ar.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"210e10c5742f02e4"}},{"code_sha256_prefix":"37f5e5facb6455c3","entry":"generate_process_heteroskedastic","repo":"aangelopoulos/conformal-time-series","repo_kind":"official","path":"core/ar.py","file_url":"https://github.com/aangelopoulos/conformal-time-series/blob/HEAD/core/ar.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"37f5e5facb6455c3"}},{"code_sha256_prefix":"bec5ac586d39399b","entry":"generate_scores","repo":"aangelopoulos/conformal-time-series","repo_kind":"official","path":"core/synthetic_scores.py","file_url":"https://github.com/aangelopoulos/conformal-time-series/blob/HEAD/core/synthetic_scores.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"bec5ac586d39399b"}},{"code_sha256_prefix":"ba06bf589432338c","entry":"linear_scores","repo":"aangelopoulos/conformal-time-series","repo_kind":"official","path":"core/synthetic_scores.py","file_url":"https://github.com/aangelopoulos/conformal-time-series/blob/HEAD/core/synthetic_scores.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ba06bf589432338c"}},{"code_sha256_prefix":"f16fb8fbbed1a83d","entry":"sinusoidal_scores","repo":"aangelopoulos/conformal-time-series","repo_kind":"official","path":"core/synthetic_scores.py","file_url":"https://github.com/aangelopoulos/conformal-time-series/blob/HEAD/core/synthetic_scores.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f16fb8fbbed1a83d"}},{"code_sha256_prefix":"541bf2269045ac94","entry":"aci","repo":"aangelopoulos/conformal-time-series","repo_kind":"official","path":"core/methods.py","file_url":"https://github.com/aangelopoulos/conformal-time-series/blob/HEAD/core/methods.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"541bf2269045ac94"}},{"code_sha256_prefix":"b1c525a1109057fc","entry":"aci_clipped","repo":"aangelopoulos/conformal-time-series","repo_kind":"official","path":"core/methods.py","file_url":"https://github.com/aangelopoulos/conformal-time-series/blob/HEAD/core/methods.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b1c525a1109057fc"}},{"code_sha256_prefix":"a6b92b9ac05573f0","entry":"trailing_window","repo":"aangelopoulos/conformal-time-series","repo_kind":"official","path":"core/methods.py","file_url":"https://github.com/aangelopoulos/conformal-time-series/blob/HEAD/core/methods.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a6b92b9ac05573f0"}},{"code_sha256_prefix":"0d308c17ddd99063","entry":"weighted_conformal","repo":"aangelopoulos/conformal-time-series","repo_kind":"official","path":"core/quantile.py","file_url":"https://github.com/aangelopoulos/conformal-time-series/blob/HEAD/core/quantile.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0d308c17ddd99063"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}