statsmodels.distributions.copula.api.GaussianCopula.plot_scatter#

GaussianCopula.plot_scatter(sample=None, nobs=500, rng=None, ax=None)#

Sample the copula and plot.

Parameters:
samplearray_like, optional

The sample to plot. If not provided (the default), a sample is generated.

nobsint, optional

Number of samples to generate from the copula.

rngint, array_like of int, numpy.random.Generator, or numpy.random.RandomState, optional

If rng is None, a new Generator is created using fresh entropy from the operating system. If rng is an int or array of ints, a new Generator is created, seeded with rng. If rng is already a Generator or RandomState instance, that instance is used.

axAxesSubplot, optional

If given, this subplot is used to plot in instead of a new figure being created.

Returns:
figFigure

If ax is None, the created figure. Otherwise the figure to which ax is connected.

samplendarray of shape (nobs, k_dim)

Sample from the copula.