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 2195 days ago
Needs compilation? no
License LGPL (≥ 3)
CRAN checks AR results

Downloads

Yesterday 11 0%
Last 7 days 55 -92%
Last 30 days 942 +102%
Last 90 days 2.109 -23%
Last 365 days 7.704 +16%

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