UQ4k: Uncertaininty Quantification of the 4th Kind
Project description
UQ4k: Uncertaininty Quantification of the 4th Kind
This package accompines the Uncertainty Quantification of the 4th kind; optimal posterior accuracy-uncertainty tradeoff with the minimum enclosing ball paper.
Paper's Abstract
There are essentially three kinds of approaches to Uncertainty Quantification (UQ): (A) robust optimization, (B) Bayesian, (C) decision theory. Although (A) is robust, it is unfavorable with respect to accuracy and data assimilation. (B) requires a prior, it is generally brittle and posterior estimations can be slow. Although (C) leads to the identification of an optimal prior, its approximation suffers from the curse of dimensionality and the notion of risk is one that is averaged with respect to the distribution of the data. We introduce a 4th kind which is a hybrid between (A), (B), (C), and hypothesis testing. It can be summarized as, after observing a sample x, (1) defining a likelihood region through the relative likelihood and (2) playing a minmax game in that region to define optimal estimators and their risk. The resulting method has several desirable properties (a) an optimal prior is identified after measuring the data, and the notion of risk is a posterior one, (b) the determination of the optimal estimate and its risk can be reduced to computing the minimum enclosing ball of the image of the likelihood region under the quantity of interest map (which is fast and not subject to the curse of dimensionality). The method is characterized by a parameter in [0,1] acting as an assumed lower bound on the rarity of the observed data (the relative likelihood). When that parameter is near 1, the method produces a posterior distribution concentrated around a maximum likelihood estimate with tight but low confidence UQ estimates. When that parameter is near 0, the method produces a maximal risk posterior distribution with high confidence UQ estimates. In addition to navigating the accuracy-uncertainty tradeoff, the proposed method addresses the brittleness of Bayesian inference by navigating the robustness-accuracy tradeoff associated with data assimilation.
Installation
The package can be simply installed by:
$ pip install uq4k
Usage
To fully run the provided examples, you'll need to have
matplotlib
in your environment
There are two versions of uq4k
that can be used: gradient-based version and non-gradient version. For the gradient-based, consult the gradient-based quadratic model example for the usage. For the non-gradient version, check:
Detailed instruction on applying uq4k
for your custom models will be provided soon
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file uq4k-0.1.0b0.tar.gz
.
File metadata
- Download URL: uq4k-0.1.0b0.tar.gz
- Upload date:
- Size: 21.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.8.2 requests/2.27.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.63.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d53a7fe652ef59c1ef03eb7725a279c80aa953bb88915ed0b2f88946b21b4d6 |
|
MD5 | 2b60eb65a2bc8a7052b43dc45e8452d9 |
|
BLAKE2b-256 | c160e655cc0a0bceb36ffa812fae3da2bdd0ce55d1265a852a03868d5f28076a |
File details
Details for the file uq4k-0.1.0b0-py2.py3-none-any.whl
.
File metadata
- Download URL: uq4k-0.1.0b0-py2.py3-none-any.whl
- Upload date:
- Size: 19.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.8.2 requests/2.27.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.63.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e42eb3fb73e2c4a9e971984739c45d78f0ff1fab381d8c700f2f48b6b68c990 |
|
MD5 | b3ec623b8563159fcbba34eb6c097b77 |
|
BLAKE2b-256 | e650e1a94105183703ae83981fa53baccea7384b243c916f091c378f23533387 |