Hi, in code #2 `cov` is used in alphas to get correlation and `corr` is used to get the covariance. I think it should be the other way around...