Covariance and the two-share portfolio belong to bivariate probability, Bivariate Wahrscheinlichkeitsrechnung, the last topic of the CBK Mathematik exam at WU Vienna. Capital is split between two securities, and the task asks for the expected return, the risk of the portfolio, or the share at which that risk is lowest. The formulas are short and the calculator helps with the arithmetic. The mistakes happen when numbers go into the formula: a standard deviation instead of a variance, a lost factor of 2, or the correlation coefficient where the covariance belongs.
Bivariate probability in the CBK Mathematik syllabus
In the syllabus (as of 28.06.2026) this is the ninth of nine topics. The online training of the textbook «Mathematik für Wirtschaftswissenschaften» on mathe4wiwi.org has eight chapters, and this topic is not one of them. For it you need the course materials or our theory, which covers all nine topics.1Syllabus Mathematik, WU Wien (LEARN) · dated 28.06.20262Mathematik für Wirtschaftswissenschaften (Rudloff, Zeileis), mathe4wiwi.org
In our trainer the tasks on this topic fall into two groups. In the covariance tasks you take the variances and the covariance of two random variables to the variance of a linear combination, or go back from that variance to the covariance. In the portfolio tasks capital is split between securities, sometimes including a risk-free one, and you find the share with the lowest variance, set up the Lagrange equations or pick the true statements about the portfolio.
Covariance and portfolio formulas with their German names
| German | English | Formula |
|---|---|---|
| Kovarianz | covariance | |
| Korrelationskoeffizient | correlation coefficient | , between and |
| Varianz einer Summe | variance of a sum | |
| Portfoliorendite | portfolio return | , |
| Portfoliovarianz | portfolio variance | |
| Minimum-Varianz-Portfolio | minimum variance portfolio |
Other words from the tasks: gemeinsame Verteilung is the joint distribution, Randverteilung the marginal distribution, Erwartungswert the expected value and Standardabweichung the standard deviation. When and the standard deviations are given, the covariance is .
A formula sheet comes with the exam tasks, according to the students' union ÖH WU for 2022/23. Your own notes and formula collections go in your bag, under WU's standard exam instructions. The CBK Mathematik theory, open to everyone, has that formula sheet typeset as it is handed out in the exam, so you practise looking formulas up where you will find them.3ÖH WU Literaturliste, Wintersemester 2022/23 (Archivkopie)4Leitfaden für Fachaufsichten: Ablauf und Anweisungen bei Prüfungen, Prüfungsorganisation der WU Wien · dated 27.05.2026
Calculating covariance from three scenarios
The returns of two shares depend on the state of the economy:
| Scenario | Probability | Share A | Share B |
|---|---|---|---|
| recession | 0.2 | −5 % | 15 % |
| normal | 0.5 | 0 % | 5 % |
| boom | 0.3 | 20 % | 5 % |
In decimals, and . For , weight each pair of returns by the probability of its scenario; the normal year drops out because A returns zero there.
The covariance is . It is negative although is positive, so taking for the covariance gets even the sign wrong. With and , and , so the correlation is .
Worked portfolio variance task in German
The task is in German, as in the exam:
Ein Portfolio besteht zu 60 % aus Aktie A und zu 40 % aus Aktie B. Die Renditen haben die Standardabweichungen und , der Korrelationskoeffizient beträgt . Wie groß ist die Varianz der Portfoliorendite?
It asks for the variance of a portfolio of 60 % share A and 40 % share B.
| (a) | (b) | (c) | (d) | (e) |
|---|---|---|---|---|
| 0.0288 | 0.0324 | 0.0360 | 0.0672 | 0.1272 |
First the covariance, . Then the portfolio variance, in which the shares and the standard deviations are squared.
The answer is (c). The portfolio's standard deviation, , is below the weighted average : with a correlation below 1 the two shares partly offset each other. This is diversification (Diversifikation).
As a check: since lies between 0 and 1, the portfolio variance must be above 0.0288, the value without covariance, and below , the value at , where the portfolio's standard deviation equals the weighted average. That rules out (a), (d) and (e).
Each wrong option comes from one mistake:
- (a) 0.0288: no covariance at all, only the first two terms.
- (b) 0.0324: the covariance counted once, without the factor 2.
- (d) 0.0672: the shares not squared, .
- (e) 0.1272: standard deviations instead of variances, .
The tasks in the CBK Mathematik trainer are solved in the same blocks: what the task is about, the steps, the answer, a check, and a line for each wrong option saying which mistake leads to it or which step to recompute. The topic there is split into the exam's task types, so you can practise covariance from a table and portfolios separately.
The minimum variance portfolio of two shares
With the same shares the task may ask which share of A gives the lowest variance:
That is 75 % in A and 25 % in B. The variance is then , a standard deviation of about 0.184, lower than share A on its own. At the neighbouring shares 0.7 and 0.8 the variance is 0.034 both times, so 0.75 is indeed the minimum. The numerator holds the variance of the other share, which is why the less risky share gets the larger weight.
Common mistakes with covariance and portfolios
The slips from the German task give other numbers in the minimum variance formula.
- Standard deviations instead of variances. instead of 0.75.
- The factor 2 lost in the denominator. The denominator becomes and the share .
- in place of the covariance. Using 0.25 instead of 0.015 gives .
- The other share's weight. 0.25 is the weight of B, and the task asked about A.
A quick check of any covariance: it always lies between and , between and in the scenario example.
How to practise covariance and portfolio tasks
In the CBK Mathematik theory every method has a card, saying when it is needed, which formula applies and where people slip, next to an example worked step by step. Start with the theory on the covariance of random variables, with the joint distribution as a table and the variance of a sum. Then read the theory on portfolio optimisation, which derives the minimum variance formula through the derivative. Before each calculation, write down what the task gives: standard deviations or variances, covariance or correlation.
Once the topics are done, sit a CBK Mathematik mock exam in the real format: 20 tasks with five options in 90 minutes, scored by WU's rule of three free mistakes and minus a quarter point for each further one. The first eight mocks repeat no task, and the tasks of the first chapter, linear and quadratic functions, can be solved without signing up. How this topic fits into your preparation is in our article on preparing for CBK Mathematik, and the exam as a whole in our overview of CBK Mathematik.
Sources
· 4 checked 15.11.2026
- Syllabus Mathematik, WU Wien (LEARN) · dated 28.06.2026
- Mathematik für Wirtschaftswissenschaften (Rudloff, Zeileis), mathe4wiwi.org
- ÖH WU Literaturliste, Wintersemester 2022/23 (Archivkopie)
- Leitfaden für Fachaufsichten: Ablauf und Anweisungen bei Prüfungen, Prüfungsorganisation der WU Wien · dated 27.05.2026
Ready to practice?
Go to trainer