statsmodels.distributions.copula.api.ClaytonCopula.plot_scatter¶
- ClaytonCopula.plot_scatter(sample=None, nobs=500, random_state=None, ax=None)¶
Sample the copula and plot.
- Parameters:
sample (array-like, optional) – The sample to plot. If not provided (the default), a sample is generated.
nobs (int, optional) – Number of samples to generate from the copula.
random_state ({None, int, numpy.random.Generator}, optional) – If seed is None then the legacy singleton NumPy generator. This will change after 0.13 to use a fresh NumPy
Generator, so you should explicitly pass a seededGeneratorif you need reproducible results. If seed is an int, a newGeneratorinstance is used, seeded with seed. If seed is already aGeneratorinstance then that instance is used.ax (AxesSubplot, optional) – If given, this subplot is used to plot in instead of a new figure being created.
- Returns:
fig (Figure) – If ax is None, the created figure. Otherwise the figure to which ax is connected.
sample (array_like (n, d)) – Sample from the copula.