R/CovIndep.R
CovIndep.Rd
near_zero is the decision abs(Cov) <= tol. A zero covariance is necessary but not sufficient for independence.
CovIndep(x, y, tol = 1e-09)
equal-length data vectors, n >= 2.
absolute tolerance on the covariance.
list(cov, near_zero).
Morin, D. J. (2016). Probability: For the Enthusiastic Beginner. Createspace. Eq (6.63).
CovIndep(c(-1, 0, 1), c(1, 0, 1))$near_zero #> [1] TRUE