Professional Documents
Culture Documents
Linear Algebra
Linear Algebra
Linear Algebra
(CS2493C)
MEMBERS :
NAME MATRIX ID
FAZLIYANA BT GHAZALI 2017792083
NURUL FARHANAH BT MD ISA 2017194783
LECTURER’S NAME :
DR.FATIMAH BT YAHYA
SUBMISSION DATE :
1
INTODUCTION
As a human’s body grows taller the rest of their body must adjust to this growth. Both the arm span length
and the height grow in relation to one another.Therefore, as humans get taller, their arm span changes and
this means that height is the independent variable and the arm span is the dependent variable. We using
three mathematical models to find the best fit curve for these data which are :-
1. Linear model
2. Quadratic model
3. Cubic model
2
150
148
146
144
1. LINEAR MODEL
i. MATRIX REPRESENTATION.
Mv = y
1 142 138
1 148 144
1 152 148
1 150 145
1 141 136
1 142 139
1 149 144
1 151 145
1 147 144
1 152 𝑎 148
[ ]=
1 150 𝑏 147
1 152 141
1 148 144
1 152 148
1 144 140
1 148 143
1 150 146
1 138 134
1 145 142
[1 142] [138]
3
ii. NORMAL EQUATION.
14.496
Least square error vector, y-Mv = [ ]
0.8712
Least square error, || y-Mv ||= 14.522
y = 0.8712x + 14.496
4
v. GRAPH.
This is a linear graph, y = 0.8712x + 14.496 which have slope of 0.8712. This data have a linear
component that can be described by a best fit line having a non-zero slope. They also have a random
component that causes them to be scattered somewhat around that best fit line.
5
2. QUADRATIC MODEL
i. MATRIX REPRESENTATION.
Mv = y
6
iii. LEAST SQUARE SOLUTION.
−656.61
Least square error vector, y-Mv = [ 10.077 ]
−0.0315
Least square error, || y-Mv ||= 656.69
v. GRAPH.
This is a quadratic graph, y = -0.0315x2 + 10.077x - 656.61.This is a polynomial of degree two. From the
graph, we can conclude that the higher the height of an individual, the longer the arm span of that
individual
7
3. CUBIC MODEL
i. MATRIX REPRESENTATION.
Mv = y
8
iii. LEAST SQUARE SOLUTION.
−0.0029
1.2305
Least square error vector, y-Mv =[ ]
− 173.44
8234.5
Least square error, || y-Mv ||= 8236.33
v. GRAPH.
This is a quadratic graph, y = -0.0029x3 + 1.2305x2 - 173.44x + 8234.5. This is a polynomial of degree
three. This graph does not have the best fit curve for the data.
9
CONCLUSION
The best fit curve for this case which will give the best approximation is the linear best fit curve.
This is because it has the minimum error among three models in terms of its magnitude/norm
obtained from calculation above.
APPENDIX
10