https://github.com/bytespider/covariance
In probability theory and statistics, covariance is a measure of how much two random variables change together. http://en.wikipedia.org/wiki/Covariance
https://github.com/bytespider/covariance
Last synced: 8 months ago
JSON representation
In probability theory and statistics, covariance is a measure of how much two random variables change together. http://en.wikipedia.org/wiki/Covariance
- Host: GitHub
- URL: https://github.com/bytespider/covariance
- Owner: bytespider
- License: other
- Created: 2014-01-30T14:38:53.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-01-30T15:04:51.000Z (over 12 years ago)
- Last Synced: 2025-04-12T05:45:07.573Z (about 1 year ago)
- Language: JavaScript
- Size: 97.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# covariance
In probability theory and statistics, covariance is a measure of how much two random variables change together.
http://en.wikipedia.org/wiki/Covariance
# example
```
var covariance = require('covariance');
var a = [1, 3, 2, 5, 8, 7, 12, 2, 4];
var b = [8, 6, 9, 4, 3, 3, 2, 7, 7];
var result = covariance(a, b);
console.log('The covariance is:', result);
```
# license
MIT