Reconditioning your quantile function

Keith Pedersen
4/26/2017
stat.COphysics.data-an

Official code: keith-pedersen/pqRand (3 stars, C++, last commit 2018-08-02).

Abstract

Monte Carlo simulation is an important tool for modeling highly nonlinear systems (like particle colliders and cellular membranes), and random, floating-point numbers are their fuel. These random samples are frequently generated via the inversion method, which harnesses the mapping of the quantile function Q(u) (e.g. to generate proposal variates for rejection sampling).

Show full abstract

Yet the increasingly large sample size of these simulations makes them vulnerable to a flaw in the inversion method; Q(u) is ill-conditioned in a distribution's tails, stripping precision from its sample. This flaw stems from limitations in machine arithmetic which are often overlooked during implementation (e.g. in popular C++ and Python libraries). This paper introduces a robust inversion method, which reconditions Q(u) by carefully drawing and using uniform variates. pqRand, a free C++ and Python package, implements this novel method for a number of popular distributions (exponential, normal, gamma, and more).

View on arXivView PDF

Code Implementations(1)

A C++/python package for drawing random numbers that utilize the full precision of the floating-point data type (versus standard implementations which do not).

31C++, PythonApr 26, 20178 years agoNOASSERTION

Similar Papers

Cite this paper

@article{pedersen2017reconditioning,
  title  = {Reconditioning your quantile function},
  author = {Keith Pedersen},
  year   = {2017},
  eprint = {1704.07949},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1704.07949}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1704.07949.svg)](https://codeofpaper.com/paper/1704.07949)

Discussion