CRAN/E | AR

AR

Another Look at the Acceptance-Rejection Method

Installation

About

In mathematics, 'rejection sampling' is a basic technique used to generate observations from a distribution. It is also commonly called 'the Acceptance-Rejection method' or 'Accept-Reject algorithm' and is a type of Monte Carlo method. 'Acceptance-Rejection method' is based on the observation that to sample a random variable one can perform a uniformly random sampling of the 2D cartesian graph, and keep the samples in the region under the graph of its density function. Package 'AR' is able to generate/simulate random data from a probability density function by Acceptance-Rejection method. Moreover, this package is a useful teaching resource for graphical presentation of Acceptance-Rejection method. From the practical point of view, the user needs to calculate a constant in Acceptance-Rejection method, which package 'AR' is able to compute this constant by optimization tools. Several numerical examples are provided to illustrate the graphical presentation for the Acceptance-Rejection Method.

Key Metrics

Version 1.1
Published 2018-05-02 2177 days ago
Needs compilation? no
License LGPL (≥ 3)
CRAN checks AR results

Downloads

Yesterday 0
Last 7 days 39 -41%
Last 30 days 242 -74%
Last 90 days 2.492 +47%
Last 365 days 7.042 +5%

Maintainer

Maintainer

Abbas Parchami

parchami@uk.ac.ir

Authors

Abbas Parchami

(Department of Statistics, Faculty of Mathematics and Computer, Shahid Bahonar University of Kerman, Kerman, Iran)

Material

Reference manual
Package source

macOS

r-release

arm64

r-oldrel

arm64

r-release

x86_64

r-oldrel

x86_64

Windows

r-devel

x86_64

r-release

x86_64

r-oldrel

x86_64

Old Sources

AR archive

Imports

DISTRIB