Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://hal.archives-ouvertes.fr/hal-04518848
25 March 2024, 13:54:30 UTC
  • Code
  • Branches (0)
  • Releases (1)
  • Visits
    • Branches
    • Releases
      • HEAD
    • ae11172
    • /
    • README.md
    Raw File Download

    To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
    Select below a type of object currently browsed in order to display its associated SWHID and permalink.

    • content
    • directory
    • snapshot
    • release
    origin badgecontent badge
    swh:1:cnt:26829e2f28e5448d68d946d7db5c39aad727c3e1
    origin badgedirectory badge
    swh:1:dir:ae11172fdb2bd2c857fb93545fc4b574fb5d992c
    origin badgesnapshot badge
    swh:1:snp:adcf821cdecb1ec7e35cc5204760908e0efdf16d
    origin badgerelease badge
    swh:1:rel:3039b53c70fc905e385267cce4c312c1920f3ce2

    This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
    Select below a type of object currently browsed in order to generate citations for them.

    • content
    • directory
    • snapshot
    • release
    (requires biblatex-software package)
    Generating citation ...
    (requires biblatex-software package)
    Generating citation ...
    (requires biblatex-software package)
    Generating citation ...
    (requires biblatex-software package)
    Generating citation ...
    README.md
    # Estimation of extreme quantiles from heavy-tailed distributions with neural networks
    Implementation of the paper ["Estimation of extreme quantiles from heavy-tailed distributions with neural networks", 2022](LINK),
    by Michaël Allouche, [Stéphane Girard](http://mistis.inrialpes.fr/people/girard/) and [Emmanuel Gobet](http://www.cmap.polytechnique.fr/~gobet/).
    
    The repo contains the codes for comparing our proposed neural network quantile estimator with 7 other known estimators in the literature 
    on simulated data.
    
    ## Abstract
    We propose new parametrizations for neural networks in order to estimate extreme quantiles in both non-conditional and conditional heavy-tailed settings. All proposed neural network estimators feature a bias correction based on an extension of the usual second-order condition to an arbitrary order.
    The convergence rate of the uniform error between extreme log-quantiles and their neural network approximation is established.
    The finite sample performances of the non-conditional neural network estimator are compared to other bias-reduced extreme-value competitors on simulated data. Finally, 
    the conditional neural network estimators are implemented to investigate the behavior of extreme rainfalls as functions of their geographical location in the southern part of France.
    
    ## Dependencies
    Clone the repo
    
    ```
    git clone https://github.com/michael-allouche/nn-quantile-extrapolation.git
    cd nn-quantile-extrapolation
    ```
    
    Install the requirements for each software version used:
    
    - Python 3.8.12
    
    ```
    conda create --name nnQextreme-session python=3.8.12
    conda activate nnQextreme-session
    conda install --file requirements.txt
    ```
    
    - R 4.1.2
    ```
    install.packages("evt0")
    ```
    
    ## Simulated data
    Eight heavy-tailed distributions are implemented in `./extreme/distribution.py` 
    
    **Burr, NHW, Fréchet, Fisher, GPD, Inverse Gamma, Student**.
    
    
    
    ## EVT quantile estimators
    
    Seven bias reduced extreme quantile estimators are considered. 
    See also this [repo](https://github.com/michael-allouche/refined-weissman.git) for an extreme quantile estimation study.
    
    In `run_evt_estimators.py`, one can update the `dict_runner` with the desired parametrization. 
    Next, run `run_evt_estimators.py` to compute all the quantile estimators at level alpha=1/(2n). 
    For example, estimations applied to 500 replications of 500 samples issued from a Burr distribution:
    
    `python run_evt_estimators.py -d burr -r 500 -n 500`
    
    Once the run is finished, all the metrics for each estimator are saved in the folder `./ckpt/DISTRIBUTION/extrapolation/.`.
    
    ## NN estimator
    Let us describe the implementation of the NN estimator of (unconditional) extreme quantiles introduced in Section 3 
    and illustrated in Section 6 of the [paper](LINK).
    ### Training
    First complete the data, training and model configurations in `./configs/config_file.yaml`
    
    ![configfile](imgs/readme/configfile.png)
    
    Next, train each NN model replication in multi-processing by specifying the number of processes (default 1).
    ```
    python train.py --processes 2
    ```
    
    After training you can plot the theoretical function (black curve), the empirical pointwise estimation (green dots) 
    and the NN estimation (purple dots):
    
    ![f](imgs/readme/f_funcNN.png)
    
    ## Results
    
    The median estimator and the RMedSE of our NN model and the 7 other quantile estimators can be visualized for 
    a given heavy tailed parametrization. The RMedSE performance criteria (eq 32, p.13) is emphasized in the legend. 
    
    ![quantile](imgs/readme/quantile_estimation.png)
    
    
    ## Citing
    @article{allouche2024estimation,
      title={Estimation of extreme quantiles from heavy-tailed distributions with neural networks},
      author={Allouche, Micha{\"e}l and Girard, St{\'e}phane and Gobet, Emmanuel},
      journal={Statistics and Computing},
      volume={34},
      number={1},
      pages={12},
      year={2024},
      publisher={Springer}
    }

    back to top

    Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
    The source code of Software Heritage itself is available on our development forge.
    The source code files archived by Software Heritage are available under their own copyright and licenses.
    Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API