What is PaCAL? PaCAL is a Python package which allows you to perform arithmetic on random variables just like you do with ordinary program variables. The variables can follow practically any distribution. Below are some examples which explain what the project is all about. See also our gallery.

Who's behind it? PaCAL is maintained by Szymon Jaroszewicz and Marcin Korzeń

How do I get started? Requirements and downloading information can be found in getting started.

Where can i find documentation? See examples included with the package and/or this paper:

Marcin Korzeń and Szymon Jaroszewicz. "PaCAL: A Python Package for Arithmetic Computations with Random Variables", Journal of Statistical Software, Volume 57, Issue 10, 2014.

The paper is available here.

How does it work? Discussion of the implementation and some theoretical guarantees are in this paper:

Szymon Jaroszewicz and Marcin Korzeń. "Arithmetic Operations on Independent Random Variables: A Numerical Approach", SIAM Journal on Scientific Computing, Volume 34, Issue 3, 2012, pages A1241-A1265.

The paper is available directly from SIAM or as a preprint.

Acknowledgements. PaCAL was supported by Research Grant no. 0685/B/T02/2009/37 of the Polish Ministry of Science and Higher Education (Ministerstwo Nauki i Szkolnictwa Wyższego). An inspiration for PaCAL was the Chebfun project.