powered by
Functions to compute various bivariate statistics.
covariance(x, y)means_and_covariance(x, y)correlation_coefficient(x, y)
means_and_covariance(x, y)
correlation_coefficient(x, y)
A numeric value or vector with the computed statistic.
A numeric vector.
Boost Documentation for more details on the mathematical background.
# Covariance covariance(c(1, 2, 3), c(4, 5, 6)) # Means and Covariance means_and_covariance(c(1, 2, 3), c(4, 5, 6)) # Correlation Coefficient correlation_coefficient(c(1, 2, 3), c(4, 5, 6))
Run the code above in your browser using DataLab