beta is calculated as: beta = stock_cov / market_variance where: stock_cov = market.corr(coca) But it should be: stock_cov = market.**cov**(coca)