dfrbinom2 {frbinom}R Documentation

Fractional binomial distribution II

Description

Generating random variables and computing density, cumulative distribution, and quantiles of the fractional binomial distribution II with the parameters size, h, c, la.

Usage

dfrbinom2(x, size, h, c, la = c/2, start = FALSE)

pfrbinom2(x, size, h, c, la = c/2, start = FALSE)

qfrbinom2(p, size, h, c, la = c/2, start = FALSE)

rfrbinom2(n, size, h, c, la = c/2, start = FALSE)

Arguments

x

A numeric vector specifying values of the fractional binomial random variable II at which the pmf or cdf is computed.

size

A number specifying the total number of trials.

h

A number specifying the strength of the dependency among trials.

c

A number specifying the dispersion of distributions.

la

A number related to the probability of success in a trial; the default value is c/2.

start

logical; if TRUE, the starting point is changed after the first success in the generalized Bernoulli process II. The default is FALSE.

p

A numeric vector specifying probabilities at which quantiles of the fractional binomial distribution II are computed.

n

A number of random variables to be simulated.

Details

In the fractional binomial distribution II, the number of successes is counted in the generalized Bernoulli process II (GBP II). In GBP II, each trial has the constant probability of success la*size^{2h-2}, and the strength of the dependency among the trials is determined by the parameters, h and c. The parameters h=H, c=c, la=\lambda should satisfy H \in (0.5,1), 0< c< 2^{2H-2}, and 0<\lambda<c. With the number of trials (size) =n, the mean of the fractional binomial random variable II is E(X)=n\lambda^{2H-1}, and the k-th moment is asymptotically proportional to n^{(2H-1)k} for k\geq 2.

Value

A numeric vector of random variables (rfrbinom2) or pmf (dfrbinom2) or cdf (pfrbinom2) or quantile (qfrbinom2) of the fractional binomial distribution II.

Functions

References

Lee, J. (2023). Generalized Bernoulli process and fractional Poisson process. arXiv:2209.01516.

Examples

# 10 random variables of a fractional binomial distribution II.
rfrbinom2(n=10, size=50, h=.8, c=.2)
# The probability that the fractional binomial random variable II equals 22.
dfrbinom2(x=22, size=50, h=.8, c=.2)
# The probability that the fractional binomial random variable II is less than or equal to 22.
pfrbinom2(x=22, size=50, h=.8, c=.2)
 # The 80th percentile of the fractional binomial distribution.
qfrbinom2(p=.8, size=50, h=.8, c=.2)

[Package frbinom version 1.0.0 Index]