:orphan:
.. _regression_examples:
All regression examples
========================
Following is a collection of notebooks demonstrating how to use MAPIE.
.. raw:: html
.. thumbnail-parent-div-open
.. thumbnail-parent-div-close
.. raw:: html
1. Quickstart
----------------------
The following examples present the main functionalities of MAPIE through basic quickstart regression problems.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples_regression/1-quickstart/images/thumb/sphx_glr_plot_toy_model_thumb.png
:alt:
:ref:`sphx_glr_examples_regression_1-quickstart_plot_toy_model.py`
.. raw:: html
Plot prediction intervals
.. raw:: html
.. only:: html
.. image:: /examples_regression/1-quickstart/images/thumb/sphx_glr_plot_compare_conformity_scores_thumb.png
:alt:
:ref:`sphx_glr_examples_regression_1-quickstart_plot_compare_conformity_scores.py`
.. raw:: html
Data with gamma distribution
.. raw:: html
.. only:: html
.. image:: /examples_regression/1-quickstart/images/thumb/sphx_glr_plot_prefit_thumb.png
:alt:
:ref:`sphx_glr_examples_regression_1-quickstart_plot_prefit.py`
.. raw:: html
Use a pre-trained model
.. raw:: html
.. only:: html
.. image:: /examples_regression/1-quickstart/images/thumb/sphx_glr_plot_heteroscedastic_1d_data_thumb.png
:alt:
:ref:`sphx_glr_examples_regression_1-quickstart_plot_heteroscedastic_1d_data.py`
.. raw:: html
Data with uneven uncertainty
.. raw:: html
.. only:: html
.. image:: /examples_regression/1-quickstart/images/thumb/sphx_glr_plot_homoscedastic_1d_data_thumb.png
:alt:
:ref:`sphx_glr_examples_regression_1-quickstart_plot_homoscedastic_1d_data.py`
.. raw:: html
Data with constant uncertainty
.. raw:: html
.. only:: html
.. image:: /examples_regression/1-quickstart/images/thumb/sphx_glr_plot_ts-tutorial_thumb.png
:alt:
:ref:`sphx_glr_examples_regression_1-quickstart_plot_ts-tutorial.py`
.. raw:: html
Tutorial for time series
.. thumbnail-parent-div-close
.. raw:: html
-----
2. Advanced analysis
--------------------
The following examples use MAPIE for discussing more complex MAPIE problems.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples_regression/2-advanced-analysis/images/thumb/sphx_glr_plot_conformal_predictive_distribution_thumb.png
:alt:
:ref:`sphx_glr_examples_regression_2-advanced-analysis_plot_conformal_predictive_distribution.py`
.. raw:: html
Conformal Predictive Distribution
.. raw:: html
.. only:: html
.. image:: /examples_regression/2-advanced-analysis/images/thumb/sphx_glr_plot_cqr_symmetry_difference_thumb.png
:alt:
:ref:`sphx_glr_examples_regression_2-advanced-analysis_plot_cqr_symmetry_difference.py`
.. raw:: html
The symmetric correction parameter in conformalized quantile regression
.. raw:: html
.. only:: html
.. image:: /examples_regression/2-advanced-analysis/images/thumb/sphx_glr_plot_nested-cv_thumb.png
:alt:
:ref:`sphx_glr_examples_regression_2-advanced-analysis_plot_nested-cv.py`
.. raw:: html
Hyperparameters tuning with cross-conformal regression
.. raw:: html
.. only:: html
.. image:: /examples_regression/2-advanced-analysis/images/thumb/sphx_glr_plot_both_uncertainties_thumb.png
:alt:
:ref:`sphx_glr_examples_regression_2-advanced-analysis_plot_both_uncertainties.py`
.. raw:: html
Estimating aleatoric and epistemic uncertainties
.. raw:: html
.. only:: html
.. image:: /examples_regression/2-advanced-analysis/images/thumb/sphx_glr_plot_timeseries_enbpi_thumb.png
:alt:
:ref:`sphx_glr_examples_regression_2-advanced-analysis_plot_timeseries_enbpi.py`
.. raw:: html
EnbPI technique for time series
.. raw:: html
.. only:: html
.. image:: /examples_regression/2-advanced-analysis/images/thumb/sphx_glr_plot-coverage-width-based-criterion_thumb.png
:alt:
:ref:`sphx_glr_examples_regression_2-advanced-analysis_plot-coverage-width-based-criterion.py`
.. raw:: html
Focus on intervals width
.. raw:: html
.. only:: html
.. image:: /examples_regression/2-advanced-analysis/images/thumb/sphx_glr_plot_ResidualNormalisedScore_tutorial_thumb.png
:alt:
:ref:`sphx_glr_examples_regression_2-advanced-analysis_plot_ResidualNormalisedScore_tutorial.py`
.. raw:: html
Focus on residual normalised score
.. raw:: html
.. only:: html
.. image:: /examples_regression/2-advanced-analysis/images/thumb/sphx_glr_plot_conditional_coverage_thumb.png
:alt:
:ref:`sphx_glr_examples_regression_2-advanced-analysis_plot_conditional_coverage.py`
.. raw:: html
Focus on local (or "conditional") coverage
.. raw:: html
.. only:: html
.. image:: /examples_regression/2-advanced-analysis/images/thumb/sphx_glr_plot_cqr_tutorial_thumb.png
:alt:
:ref:`sphx_glr_examples_regression_2-advanced-analysis_plot_cqr_tutorial.py`
.. raw:: html
Conformalized quantile regression on gamma distributed data
.. raw:: html
.. only:: html
.. image:: /examples_regression/2-advanced-analysis/images/thumb/sphx_glr_plot_coverage_validity_thumb.png
:alt:
:ref:`sphx_glr_examples_regression_2-advanced-analysis_plot_coverage_validity.py`
.. raw:: html
Coverage validity for regression tasks
.. raw:: html
.. only:: html
.. image:: /examples_regression/2-advanced-analysis/images/thumb/sphx_glr_plot_main-tutorial-regression_thumb.png
:alt:
:ref:`sphx_glr_examples_regression_2-advanced-analysis_plot_main-tutorial-regression.py`
.. raw:: html
Comparison between conformalized quantile regressor and cross methods
.. thumbnail-parent-div-close
.. raw:: html
-----
3. Simulations from scientific articles
---------------------------------------
The following examples reproduce the simulations from the scientific
articles that introduce the methods implemented
in MAPIE for regression settings.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples_regression/3-scientific-articles/images/thumb/sphx_glr_plot_barber2020_simulations_thumb.png
:alt:
:ref:`sphx_glr_examples_regression_3-scientific-articles_plot_barber2020_simulations.py`
.. raw:: html
Predictive inference with the jackknife+, Foygel-Barber et al. (2020)
.. raw:: html
.. only:: html
.. image:: /examples_regression/3-scientific-articles/images/thumb/sphx_glr_plot_zaffran2022_comparison_thumb.png
:alt:
:ref:`sphx_glr_examples_regression_3-scientific-articles_plot_zaffran2022_comparison.py`
.. raw:: html
Adaptive conformal predictions for time series, Zaffran et al. (2022)
.. raw:: html
.. only:: html
.. image:: /examples_regression/3-scientific-articles/images/thumb/sphx_glr_plot_kim2020_simulations_thumb.png
:alt:
:ref:`sphx_glr_examples_regression_3-scientific-articles_plot_kim2020_simulations.py`
.. raw:: html
Predictive inference is free with the Jackknife+-after-Bootstrap, Kim et al. (2020)
.. thumbnail-parent-div-close
.. raw:: html
-----
4. Other notebooks
--------------------------------------------
This section lists a series of Jupyter notebooks hosted on the MAPIE Github repository that can be run on Google Colab:
- `Estimating prediction intervals for time series forecast with EnbPI and ACI