Professional Documents
Culture Documents
Linear Algebra
Linear Algebra
Linear Algebra
Perform the following mathematical operations on the given variables using any programming
language of your choice.
[ ]
0.25 0.75 1.5
A= 1.25 0.5 0.125
2 1.25 1.5
[ ]
1
x= 0.5
0.25
i) y= Ax=?
[ ]
0.95
z= 1.5
2.95
ii) Find Mean Squared Error (MSE) between vectors ‘y’ and ‘z’.
N
1
MSE=
N
∑ ( y i−z i )2
i=1
Q2. Perform the same operations as in Q1. The variables A, x and z are in the attached CSV files.
Answers:
[ ]
1.0
Q1. i. y= 1.5312
3.0
[ ]
1.1808
−37.2660
Q2. i. y= 0.9077
−7.5039
−27.9265