Skip to content
Back to WU

Guide

Covariance and portfolios in CBK Mathematik at WU Vienna: formulas and worked tasks

VWUPass Team7 min read

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.

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

GermanEnglishFormula
KovarianzcovarianceCov⁡(X,Y)=E(XY)−E(X) E(Y)
Korrelationskoeffizientcorrelation coefficientρ=Cov⁡(X,Y)/(σXσY), between −1 and 1
Varianz einer Summevariance of a sumVar⁡(X+Y)=Var⁡(X)+Var⁡(Y)+2Cov⁡(X,Y)
Portfoliorenditeportfolio returnE(RP)=w1μ1+w2μ2, w1+w2=1
Portfoliovarianzportfolio varianceσP2=w12σ12+w22σ22+2w1w2Cov⁡
Minimum-Varianz-Portfoliominimum variance portfoliow1=σ22−Cov⁡σ12+σ22−2Cov⁡

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 Cov⁡=ρ σ1σ2.

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.

Calculating covariance from three scenarios

The returns of two shares depend on the state of the economy:

ScenarioProbabilityShare AShare B
recession0.2−5 %15 %
normal0.50 %5 %
boom0.320 %5 %

In decimals, E(A)=0.2⋅(−0.05)+0.3⋅0.20=0.05 and E(B)=0.2⋅0.15+0.5⋅0.05+0.3⋅0.05=0.07. For E(AB), weight each pair of returns by the probability of its scenario; the normal year drops out because A returns zero there.

E(AB)=0.2⋅(−0.05)⋅0.15+0.3⋅0.20⋅0.05=−0.0015+0.003=0.0015.

The covariance is 0.0015−0.05⋅0.07=−0.002. It is negative although E(AB) is positive, so taking E(AB) for the covariance gets even the sign wrong. With Var⁡(A)=0.0125−0.052=0.01 and Var⁡(B)=0.0065−0.072=0.0016, σA=0.10 and σB=0.04, so the correlation is ρ=−0.002/(0.10⋅0.04)=−0.5.

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 σA=0.2 und σB=0.3, der Korrelationskoeffizient beträgt ρ=0.25. 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.02880.03240.03600.06720.1272

First the covariance, Cov⁡=0.25⋅0.2⋅0.3=0.015. Then the portfolio variance, in which the shares and the standard deviations are squared.

σP2=0.62⋅0.04+0.42⋅0.09+2⋅0.6⋅0.4⋅0.015=0.0144+0.0144+0.0072=0.036.

The answer is (c). The portfolio's standard deviation, 0.036≈0.19, is below the weighted average 0.6⋅0.2+0.4⋅0.3=0.24: 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 0.242=0.0576, the value at ρ=1, 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, 0.6⋅0.04+0.4⋅0.09+0.0072.
  • (e) 0.1272: standard deviations instead of variances, 0.36⋅0.2+0.16⋅0.3+0.0072.

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:

wA=0.09−0.0150.04+0.09−0.03=0.0750.10=0.75.

That is 75 % in A and 25 % in B. The variance is then 0.5625⋅0.04+0.0625⋅0.09+2⋅0.75⋅0.25⋅0.015=0.03375, 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.

  1. Standard deviations instead of variances. (0.3−0.015)/(0.2+0.3−0.03)≈0.606 instead of 0.75.
  2. The factor 2 lost in the denominator. The denominator becomes 0.13−0.015=0.115 and the share 0.075/0.115≈0.652.
  3. ρ in place of the covariance. Using 0.25 instead of 0.015 gives (0.09−0.25)/(0.13−0.5)≈0.432.
  4. 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 −σXσY and σXσY, between −0.004 and 0.004 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
  1. Syllabus Mathematik, WU Wien (LEARN) · dated 28.06.2026
  2. Mathematik für Wirtschaftswissenschaften (Rudloff, Zeileis), mathe4wiwi.org
  3. ÖH WU Literaturliste, Wintersemester 2022/23 (Archivkopie)
  4. 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

Read next