Documentation
Copula
.
Rank
.
Spearman
Search
return to top
source
Imports
Init
Copula.Rank.Basic
Imported by
ProbabilityTheory
.
Copula
.
spearmanRho_eq_one_sub
ProbabilityTheory
.
Copula
.
spearmanRho_eq_neg_one_add
ProbabilityTheory
.
Copula
.
spearmanRho_mem_Icc
ProbabilityTheory
.
Copula
.
spearmanRho_independence
ProbabilityTheory
.
Copula
.
spearmanRho_comonotonic
ProbabilityTheory
.
Copula
.
spearmanRho_countermonotonic
← Copula mathematical handbook
Spearman's rho: distance formulas, bounds and benchmark copulas
#
source
theorem
ProbabilityTheory
.
Copula
.
spearmanRho_eq_one_sub
(
C
:
Copula
2
)
:
C
.
spearmanRho
=
1
-
6
*
∫
(
x
:
Fin
2
→
↑
unitInterval
)
,
(
↑
(
x
0
)
-
↑
(
x
1
)
)
^
2
∂
C
.
toMeasure
source
theorem
ProbabilityTheory
.
Copula
.
spearmanRho_eq_neg_one_add
(
C
:
Copula
2
)
:
C
.
spearmanRho
=
-
1
+
6
*
∫
(
x
:
Fin
2
→
↑
unitInterval
)
,
(
↑
(
x
0
)
+
↑
(
x
1
)
-
1
)
^
2
∂
C
.
toMeasure
source
theorem
ProbabilityTheory
.
Copula
.
spearmanRho_mem_Icc
(
C
:
Copula
2
)
:
C
.
spearmanRho
∈
Set.Icc
(-
1
)
1
source
@[simp]
theorem
ProbabilityTheory
.
Copula
.
spearmanRho_independence
:
(
independence
2
)
.
spearmanRho
=
0
source
@[simp]
theorem
ProbabilityTheory
.
Copula
.
spearmanRho_comonotonic
:
(
comonotonic
2
)
.
spearmanRho
=
1
source
@[simp]
theorem
ProbabilityTheory
.
Copula
.
spearmanRho_countermonotonic
:
countermonotonic
.
spearmanRho
=
-
1