OPEN-SOURCE SCRIPT

Function Covariance

Covariance Function as described here:
investopedia.com/articles/financial-theory/11/calculating-covariance.asp

can be used for example to calculate Beta:
BETA

Disclaimer