Professional Documents
Culture Documents
September, 2020
1
12/9/2020
Cont’d ….
If we write:
Cont’d…
1. Linear Curve Fitting
2. Non - Linear Curve Fitting
a) Exponential Function
b) Power Function
c) Polynomial of the nth degree
2
12/9/2020
Cont’d…
y
i 1
i n a b xi
i 1
(4)
3
12/9/2020
Cont’d…
n n
y
i1
i n a bxi
i1
(4)
n n n
i i i i
x
i1
y a x b x 2
i1 i1
(5)
Example:
Solution:
Given:
No. of data set (n) =5
The given curve is: y = a + bx - (1)
Normal Equations of eqn(1) are
y n a b x 2
xy a x b x 3
2
4
12/9/2020
Example:
The values of x, x , xy , y are calculate shown in
2
Example:
On solving, we get
a = 1.6
b = 1.2
Hence, the required linear best fit
relation is y = 1.6 + 1.2x
5
12/9/2020
Exponential Function
Write Normal Equation
𝑌 =𝑛∗𝐴+𝑏 𝑥
∑ 𝑥𝑌 =A∑ 𝑥 + 𝑏 ∑ 𝑥
6
12/9/2020
Y = A + bX -(2)
Where,
Y = log y
A = log a
X = log x
7
12/9/2020
Power Function
Write Normal Equation
8
12/9/2020
𝑥𝑦 = 𝑎 ∗ 𝑥+𝑏 𝑥 +𝑐 𝑥
𝑥 𝑦=𝑎 𝑥 +𝑏 𝑥 +𝑐 𝑥
Example:
Fit a second order polynomial to the data in the
following table.
x 1 2 3 4
y 6 11 18 27
9
12/9/2020
Example
a) y=a+bx2 ------(1)
y=a+bX ---- (2)
Where,
X = x2
b) y=a+b*1/x ------(1)
c) y=alogex +b (1)
y=aX+b
X = logex
d) y=ax+b+c/x (1)
xy =ax2+bx+c
Y= ax2+bx+c
Where,
Y = xy
Example
e) xya = b
logx + alogy = logb
logy =(logb-logx)/a
log y = 1/a*(logb) – (1/a)*logx
Y = A +BX
Where,
A= 1/a*logb
B= -1/a
Logx=X
10