statsmodels.distributions.copula.api.rvs_kernel#
- statsmodels.distributions.copula.api.rvs_kernel(sample, size, bw=1, k_func=None, return_extras=False, rng=None)[source]#
Random sampling from empirical copula using Beta distribution
- Parameters:
- sample
ndarray Sample of multivariate observations in (0, 1) interval.
- size
int Number of observations to simulate.
- bw
float,optional Bandwidth for Beta sampling. The beta copula corresponds to a kernel estimate of the distribution. bw=1 corresponds to the empirical beta copula. A small bandwidth like bw=0.001 corresponds to small noise added to the empirical distribution. Larger bw, e.g., bw=10 corresponds to kernel estimate with more smoothing.
- k_func
callable,optional The default kernel function is currently a beta function with 1 added to the first beta parameter.
- return_extrasbool,
optional If this is False, then only the random sample will be returned. If true, then extra information is returned that is mainly of interest for verification.
- rng
int, array_likeofint,numpy.random.Generator,ornumpy.random.RandomState,optional If rng is None, a new
Generatoris created using fresh entropy from the operating system. If rng is an int or array of ints, a newGeneratoris created, seeded with rng. If rng is already aGeneratororRandomStateinstance, that instance is used.
- sample
- Returns:
- rvs
ndarray Multivariate sample with
sizeobservations drawn from the Beta Copula.
- rvs
Notes
Status: experimental, API will change.