statsmodels.distributions.copula.api.StudentTCopula

class statsmodels.distributions.copula.api.StudentTCopula(corr=None, df=None, k_dim=2)[source]

Student t copula.

Parameters:
corrscalar or array_like

Correlation or scatter matrix for the elliptical copula. In the bivariate case, corr` can be a scalar and is then considered as the correlation coefficient. If ``corr is None, then the scatter matrix is the identity matrix.

dffloat (optional)

Degrees of freedom of the multivariate t distribution.

k_dimint

Dimension, number of components in the multivariate random variable.

Notes

Elliptical copulas require that copula parameters are set when the instance is created. Those parameters currently cannot be provided in the call to methods. (This will most likely change in future versions.) If non-empty args are provided in methods, then a ValueError is raised. The args keyword is provided for a consistent interface across copulas.

References

[1]

Joe, Harry, 2014, Dependence modeling with copulas. CRC press. p. 181

Methods

cdf(u[, args])

Cumulative distribution function evaluated at points u.

corr_from_tau(tau)

Pearson correlation from kendall's tau.

dependence_tail([corr])

Bivariate tail dependence parameter.

fit_corr_param(data)

Copula correlation parameter using Kendall's tau of sample data.

logpdf(u[, args])

Log of copula pdf, loglikelihood.

pdf(u[, args])

Probability density function of copula.

plot_pdf([ticks_nbr, ax])

Plot the PDF.

plot_scatter([sample, nobs, random_state, ax])

Sample the copula and plot.

rvs([nobs, args, random_state])

Draw n in the half-open interval [0, 1).

spearmans_rho([corr])

Bivariate Spearman's rho based on correlation coefficient.

tau([corr])

Bivariate kendall's tau based on correlation coefficient.

tau_simulated([nobs, random_state])

Kendall's tau based on simulated samples.