SystemofEquations 1
SystemofEquations 1
Overview
If you have a system of linear equations, you can quickly solve it with Linear Algebra using the Matrix
formulas in Excel. This works in the Pearson Vue environment as well.
→ See the next two tabs for examples from the Exam 9 Problem Pack and Exam 8 Cookbook.
Example
Solve the system of linear equations below for unknown variables a, b and c:
2a + 12b + 4c = 25
3b + 12c = 9
8a + 6b + 11c = 32
A = Matrix of coefficients
X = The unknown variables (solution vector): a, b and c
B = The vector of constants
2 12 4
A= 0 3 12 X=
8 6 11
25
B= 9
32
Solution
In Linear Algebra, the solution for the unknown variable vector is: X = A-1 * B
X = A-1 * B 2.3282
X = MMULT( A-1 , B ) X= 1.5767
0.3558
Alternative Solution
Alternatively, you can solve for X in one step by combining the two steps above:
2.3282
X = MMULT( MINVERSE( A ) , B ) X= 1.5767
0.3558
Questions?
Send me an email at: [email protected]
©Rising Fellow
www.RisingFellow.com
Linear Algebra using the Matrix
a
b
c
0.1350
-0.0245
0.0061
eps above:
RF BKM 10-1
Note: This is a practice problem from the Rising Fellow Exam 9 Problem Pack
Consider three well-diversified portfolios with the information below, analyzed using a three-factor AP
by an investor:
Portfolio βA βB βC E[rp]
1 0.8 1.2 0.75 13.9%
2 0.6 1.5 1.4 16.2%
3 1.2 0.5 1.2 12.2%
a.
Calculate the expected return of each factor A, B, and C.
b.
The investor also sees a well-diversified porfolio, P, promising a 14.5% expected returns. It has the fol
βA = 0.9 βB = 1 βC =
Create an arbitrage opportunity using this new portfolio and some combination of two or more of the
three analyzed portfolios.
Solution
Part a
Portfolio βA βB βC
X = E[RX] = 0.119 (1) 0.8 1.2 0.75
Y = E[RY] = 0.142 (2) 0.6 1.5 1.4
Z = E[RZ] = 0.102 (3) 1.2 0.50 1.2
Solve system of linear equations with matrix algebra (see note in Discussion):
Part b
Find the expected return of the new portfolio based on the APT model:
E[r] = 0.142
The investor expects 14.5%, which is 0.3% above the APT expected return, so we want to exploit this.
By inspection, the betas for each factor of the portfolio are the averages of the betas for each respective
factor in portfolios 2 and 3. For portfolio Q, set the weights of portfolios 2 and 3 at 50%:
β'A = 0.9
β'B = 1
β'C = 1.3
E[rQ] = 14.2%
If we short portfolio Q and take a long position in the investor's portfolio, the combined portfolio has:
β''A = 0
β''B = 0
β''C = 0
E[r] = 0.3%
All betas are zero and the portfolio is well-diversified, so the arbitrage will receive a 0.3% riskless retur
Discussion
Other combinations will work, but look for shortcuts like the above if you're given a similar problem.
Recipe
BKM 10 - Multifactor APT Arbitrage
analyzed using a three-factor APT model
1.3
E[RP]
0.119
0.142
0.102
Factors
#NAME? = E[RA]
#NAME? = E[RB]
#NAME? = E[RC]
6.0% = E[rA]
8.0% = E[rB]
4.0% = E[rC]
similar problem.
Couret & Venter - Multi-Dimensional Credibility
Note: This is a recipe from the Rising Fellow Exam 8 Cookbook
Problem
Given the following information for Class 294, which is part of Hazard Group B:
a. Calculate the multiplicative factors b and c that can be used with multi-dimensional credibility to
estimate the F:TT ratio, vi, for Class 294.
b. Calculate the predicted F:TT ratio, vi, using multi-dimensional credibility and parameters b and c fro
Solution
Part a – Multiplicative Factors
1) Solve for the unconditional variance of each variable along the matrix diagonal, Var(V i) and Var(W
2) Set up the matrix equation with the covariance matrix to solve for the multiplicative factors.
Solve system of linear equations with matrix algebra (see note in Discussion):
Alternatively, you can solve for the factors as a system of equations using algebra.
5) Use the multiplicative factors to calculate the predicted frequency relativity for the injury type to
claims. Remember that the multiplicative factors will vary by injury type.
Discussion
We’re excluding Minor and Major claims so that this is a more realistic problem. If we include
Minor and Major claims, the matrix algebra in steps two and three would be based on a 4x4 matrix
with a system of four equations to solve.
One tricky thing to remember in step two is that Cov(V i, vi) is set to the VHMV. In order to solve
for the bw and cw parameters for the wi ratio, we would use the matrix equation below and Cov(W i, wi)
would be set to the VHMW. This is how we get different credibility parameters for calculating the
different predicted vi, wi, xi and yi ratios.
To solve for the wi ratios we would use the formulas below:
𝐶𝑜𝑣 (𝑉_𝑖, 𝑤_𝑖 ))¦(𝐶𝑜𝑣 (𝑊_𝑖,𝑤_𝑖 ) ))= ((𝑉𝑎𝑟 (𝑉_𝑖))¦(𝐶𝑜𝑣 (𝑉_𝑖, 𝑊_𝑖)) (𝐶𝑜𝑣 (𝑉_𝑖, 𝑊_𝑖) )¦(𝑉𝑎𝑟 (𝑊_𝑖)))∙(𝑏_𝑤¦𝑐_𝑤 )
Couret & Venter use some simplifying assumptions in the model, discussed on the bottom of pg. 78
in the paper. The observed ratio Wi is assumed to be the hypothetical mean w i plus a random
error term. Based on this simplifying assumption, we use Cov(W i, wi) = Cov(wi, wi) = VHMW.
Source
Couret & Venter – pg. 77-79
More Practice
CAS 2019 – 1
lti-dimensional credibility to
0.000501
0.000891
[email protected]))=( ■8(0.000501&[email protected]&0.000891))∙(■8(𝑏_𝑣@𝑐_𝑣 ))
ng algebra.
problem. If we include
uld be based on a 4x4 matrix