get_best_copula_rotation
| Name | Type | Default | Description |
|---|---|---|---|
u | tp.Array1d | -- | The first component of the bivariate input. |
v | tp.Array1d | -- | The second component of the bivariate input. |
func_nb | Callable | -- | A numba compiled function that computes a criterion (e.g., a negative log-likelihood) for a given rotated dataset and copula parameter theta. |
theta | float | -- | The estimated copula parameter. |
| Type | Description |
|---|---|
BaseCopulaRotation | The rotation (an element of BaseCopulaRotation) that minimizes the criterion value. |
apply_copula_rotation_nb
BaseCopulaRotation.R0(0°):BaseCopulaRotation.R90(90°):BaseCopulaRotation.R180(180°):BaseCopulaRotation.R270(270°):
| Name | Type | Default | Description |
|---|---|---|---|
u | tp.Array1d | -- | The first component of the bivariate input. |
v | tp.Array1d | -- | The second component of the bivariate input. |
rotation | int | -- | The rotation to apply to the copula. |
| Type | Description |
|---|---|
tp.Tuple[tp.Array1d, tp.Array1d] | The rotated u and v arrays. |
apply_cumulative_density_rotation_nb
u and v and compute the corresponding
cumulative density values.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
u | tp.Array1d | -- | The first component of the bivariate input. |
v | tp.Array1d | -- | The second component of the bivariate input. |
cum_density | tp.Array1d | -- | Cumulative density. |
rotation | int | -- | The rotation to apply. |
| Type | Description |
|---|---|
tp.Array1d | The transformed cumulative density values after applying the rotation. |
apply_partial_derivatives_rotation_nb
u and v and compute the corresponding partial derivatives.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
arbitrage | tp.Array2d | -- | The mispricing indices for the copula, a.k.a. arbitrage. |
rotation | int | -- | The rotation to apply. |
| Type | Description |
|---|---|
tp.Array2d | The transformed partial derivative values after applying the rotation. |
apply_truncate_rotation_nb
| Name | Type | Default | Description |
|---|---|---|---|
u | tp.Array1d | -- | The first component of the bivariate input. |
v | tp.Array1d | -- | The second component of the bivariate input. |
rotation | int | -- | The rotation to apply. |
truncate | float | -- | Truncate filter at specific point. |
| Type | Description |
|---|---|
tp.Array2d | boolean mask to focus on tail regions of a probability density distribution. |
| Type | Description |
|---|---|
AssertionError | Truncate must be in the range [0, 1]. |
apply_triangle_rotation_nb
| Name | Type | Default | Description |
|---|---|---|---|
mask | tp.Array2d | -- | Probability density matrix mask. |
lower_triangle | int | -- | Lower coordinate point. |
upper_triangle | int | -- | Upper coordinate point. |
rotation | int | -- | The rotation to apply. |
| Type | Description |
|---|---|
tp.Array2d | boolean mask to focus on triangle regions of a probability density distribution. |
| Type | Description |
|---|---|
AssertionError | Lower and upper must be in the range [0, 1]. |
BaseCopulaRotation
Ancestors
enum.Enum
Class variables
-
R0: int: No rotation (0°) . -
R90: int: 90° rotation . -
R180: int: 180° rotation . -
R270: int: 270° rotation .

