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 (o, 1) interval.
- size
int Number of observations to simulate.
- bw
float 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
Noneorcallable The default kernel function is currently a beta function with 1 added to the first beta parameter.
- return_extrasbool
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{
None,int, array_like[int],numpy.random.Generator,numpy.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.