Package: ShiftConvolvePoibin
Type: Package
Title: Exactly Computing the Tail of the Poisson-Binomial Distribution
Version: 1.0.0
Authors@R: c(
  person("Andrew", "Lee", role = c("aut", "cre"), email = "andrewl@maths.usyd.edu.au"),
  person("Noah", "Peres", role = c("aut", "ctb"), email = "noahp@maths.usyd.edu.au"),
  person("Uri", "Keich", role = c("aut", "ctb"), email = "uri.keich@sydney.edu.au"),
  person("Alexander", "Mukhin", role = c("cph"), email = "alexander.i.mukhin@gmail.com"))
Author: Andrew Lee [aut, cre],
  Noah Peres [aut, ctb],
  Uri Keich [aut, ctb],
  Alexander Mukhin [cph]
Maintainer: Andrew Lee <andrewl@maths.usyd.edu.au>
Description: An exact method for computing the Poisson-Binomial Distribution (PBD). The package provides a function for generating a random sample from the PBD, as well as two distinct approaches for computing the density, distribution, and quantile functions of the PBD. The first method uses direct-convolution, or a dynamic-programming approach which is numerically stable but can be slow for a large input due to its quadratic complexity. The second method is much faster on large inputs thanks to its use of Fast Fourier Transform (FFT) based convolutions. Notably in this case the package uses an exponential shift to practically guarantee the relative accuracy of the computation of an arbitrarily small tail of the PBD -- something that FFT-based methods often struggle with. This ShiftConvolvePoiBin method is described in Peres, Lee and Keich (2020) <arXiv:2004.07429> where it is also shown to be competitive with the fastest implementations for exactly computing the entire Poisson-Binomial distribution.
License: GPL (>= 2)
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.1.0
NeedsCompilation: yes
Packaged: 2020-04-29 05:45:33 UTC; andrewlee
Repository: CRAN
Date/Publication: 2020-05-04 14:00:02 UTC
Built: R 4.6.0; x86_64-apple-darwin20; 2026-04-25 12:25:13 UTC; unix
Archs: ShiftConvolvePoibin.so.dSYM
