Skip to main content

StudentT

Bivariate Student’s t copula estimator. The copula is defined as C_(u, v) = T_(t_v^(u), t_v^(v)), where t_v^ is the univariate t-quantile and T_ is the bivariate t CDF. For numerical stability we constrain the degrees of freedom v to [2, 50]: values below 2 produce extremely heavy tails, while values above 50 are effectively Gaussian. Notes: rho: Fitted correlation parameter (in (-1, 1)). ddof: Fitted degrees of freedom (in [2, 50]). See Also: Elliptical copulas (Gaussian, Student-t) are symmetric and do not require rotation variants. Method generated by attrs for class StudentT.

Ancestors

  • systematica.models.arbitrage_index.base.BaseCopula
  • abc.ABC

Instance variables

  • lower_tail_dependence: float: Theoretical lower tail dependence coefficient.
  • upper_tail_dependence: float: Theoretical upper tail dependence coefficient.
  • ddof: float: Degree of freedom. If set to auto, applies best fitted degree of freedom. Defaults to auto.
  • ddof_: float: Best fitted degree of freedom applied to the copula model.

Methods

set_ddof

Set degree of freedom. Returns: Raises:

density

Calculate log probability density of the bivariate copula: P(U=u,V=v)P(U=u, V=v). Parameters: Returns:

cumulative_density

Calculate cumulative density of the bivariate copula: P(U<=u,V<=v)P(U<=u, V<=v). Parameters: Returns:

arbitrage

Compute the h-function (partial derivative) for the bivariate Clayton copula, a.k.a. the mispricing index, for every time step in the trading period using the estimated copula. Parameters: Returns:

partial_derivative

Compute the h-function (partial derivative) for the bivariate Clayton copula, a.k.a. the mispricing index, for every time step in the trading period using the estimated copula. Parameters: Returns: Raises:

score

Compute the log-likelihood score of each sample (log-pdf) under the model.
u and v are bivariate inputs (u, v) where each row represents a bivariate observation. Both u and v must be in the interval [0, 1], having been transformed to uniform marginals.
Parameters: Returns: Raises: