Matrices
Matrices
8 4 13 14 12 8 11 5 20
5 6 3 5 12 12 6 12 17
11 8 11 14 6 5 3 12 17
9 5 15 6 7 14 11 9 16
14 4 7 3 7 4 6 5 21
A-B
Matrix C Err:502
10 16 8 5 Err:502
7 8 13 12 Err:502
16 3 7 13 Err:502
5 9 15 6 Err:502
BxC
Probability of a customer staying with the brand Pepsi over a month = 0.7
Probability of a customer switching from Pepsi to Coke over a month = 0.3
Probability of a customer staying with the brand Coke over a month = 0.9
Probability of a customer switching from Coke to Pepsi over a month = 0.1
The state represents the state of the economy one period in the future i.e. state 1 could represent a recession and state 2 a growth e
E[R]A = .2(5%) + .3(10%) + .3(15%) + .2(20%) = 12.5% s2p =(.75)2(.0512)2+(.25
E[R]B = .2(50%) + .3(30%) + .3(10%) + .2(-10%) = 20%
Variance A = 0.2(.05 -.125)2 + 0.3(.1 -.125)2 + 0.3(.15 -.125)2 + 0.2(.2 -.125)2 = .002625
Standard Deviation A (.002625)^0.5 = .0512 = 5.12% Stock A Stock B
VarianceB = .2(.50 -.20)2 + .3(.30 -.20)2 + .3(.10 -.20)2 + .2(-.10 - .20)2 = .042 20.00% 5.00% 50.00%
Standard Deviation B = (.042)^0.5 = .2049 = 20.49%
30.00% 10.00% 30.00%
E[Rp] = w1E[R1] + w2E[R2] 30.00% 15.00% 10.00%
E[Rp] = .50(.125) + .50(.20) = 16.25% 20.00% 20.00% -10.00%
s = (w ) s
2
p A
2 2
A + (w ) s
B
2 2
B + 2wAwBrA,B sAsB Average 12.50% 20.00%
s = (w ) s
2
p A
2 2
A + (w ) s
B
2 2
B + 2wAwB sA,B
0.004573
cession and state 2 a growth economy. The probability reflects how likely it is that the state will occur. The sum of the probabilities must equal 1
s2p =(.75)2(.0512)2+(.25)2(.2049)2+2(.75)(.25)(-1)(.0512)(.2049)= .00016
-0.0105
0.042
#N/A
ill occur in each of the four states