Covariance Function as described here: www.investopedia.com can be used for example to calculate Beta:
Beta as described here: www.investopedia.com