How the two shares moved
Show these returns as a table
How it’s calculated
About the data: sources and method
- Prices: daily closing prices from the Pakistan Stock Exchange data portal, downloaded automatically every Saturday.
- Returns: each weekly or monthly return uses the last closing price in that week or month: price ÷ previous price − 1. The current, unfinished week or month is not used.
- No price adjustments: prices are as PSX reports them, so bonus shares, splits and dividends make a share price drop. A day when a share fell more than 11% while the market moved less than 5% is treated as one of these events, and the week or month containing it is left out (listed above for each company).
- Yearly figures: average return × 52 (weekly) or × 12 (monthly); volatility × √52 or × √12. These are simple averages, not compound growth. Variances and covariances divide by n − 1.
- Pairs: only weeks (or months) with a price for both shares are used, and a period with an unusual drop in either share is left out for both, so both shares are measured over exactly the same periods.
- Rounding: figures loaded into the boxes are rounded to the decimals shown, and every calculation uses exactly those numbers.
Covariance matrix
Where your portfolio’s risk comes from