Python, Quant, Finance, Investing, Data Science.
deviation for each investment as well as their covariance and correlation. Luckily, numpy’s cov (covariance) method accomodates the inclusion of probabilities: If ddof=0 the array of weights (aweights can be used to assign probabilities to observation vectors We are almost there now. Let’s switch