6-Module - 3 Lecture PPT - Interpolation and Regression Analysis-05!02!2024
6-Module - 3 Lecture PPT - Interpolation and Regression Analysis-05!02!2024
Chemical Engineering
fit a curve or a series of curves that pass directly through each of the
points.
• these data are known to be very precise - The estimation of values
between well-known discrete points is called interpolation
Curvilinear interpolation
Dr. Monash Purushothaman BCHE201L Computational Methods in Chemical Engineering 5
Statistic concepts
• The arithmetic mean of a sample is defined as the sum of
the individual data points (yi) divided by the number of points
(n).
Velocity, m/s 10 20 30 40 50 60 70 80
Force, N 25 70 380 550 610 1220 830 1450
V, m/s F, N
10 25
20 70
30 380
40 550
50 610
60 1220
70 830
80 1450
45 641.875
n=8
n∑ xi yi − ∑ xi ∑ yi
∑ xi = 360 a1 = 2 a0 =y − a1 × x
n∑ xi2 − ( ∑ xi )
∑ x y = 5135
i i
8 × 312850 − 360 × 5135 a0 = 641.875 − 19.4702 × 45
∑ x = 20400
2
i
a1 =
8 × 20400 − (360)2 a0 = −234.2857
x = 45 a1 = 19.4702
y = 641.875
Step - 2 st − sr
r2 =
st
=sr ∑ (yactual − ymod el )2
st ∑ (yi − y)2 1808296.875 − 216118.1548
st = 1808296.875
=sr ∑[yactual − (a0 + a1 × x)]2 r2 =
1808296.875
sr = 216118.1548
r 2 = 0.880485
1.57569 2.564415
a1=1.9841 a0 = 0.2741 r2 = 0.9481
st − sr
Step - 2 r2 =
st
=sr ∑ (yactual − ymod el )2
st ∑ (yi − y)2 2.7126 − 0.1409
st = 2.7126
=sr ∑[yactual − (a0 + a1 × x)]2 r2 =
2.7126
sr = 0.1409
r 2 = 0.9481
Step - 3: To write the equation in y =axb form
a0 log a = − 0.56203 a1 = b so we can write the equation
a 10
= −0.56203
0.27413 b = 1.9841 in y = ax b form as y = 0.2741x 1.9841
Dr. Monash Purushothaman BCHE201L Computational Methods in Chemical Engineering 19
Suppose you want to calculate the Force for a velocity of 65
m/s, you can choose the model with more r2 value.
i.e. the power law model fit well with the given data and the
sum of the squares of the residual is minimum.
we know that
y 0.2741
= x 1.9841 i.e. F 0.2741v 1.9841
F=0.2741 × (65)1.9841 =1084.1559 N
Suppose you are using linear fit, you will get the following
result
we know that
y = a0 + a1 x i.e. F =
− 234.2857 + 19.4702 × v
F= −234.2857 + 19.4702 × 65
= 1031.273 N
Dr. Monash Purushothaman BCHE201L Computational Methods in Chemical Engineering 20
Case study: Research paper 1
KF = 15.97006
1/n = 0.4315
n = 2.3175
st − sr
Step - 2 r2 =
st
=sr ∑ (yactual − ymod el )2
st ∑ (yi − y)2 r2 =
2.7126 − 0.1409
st = 2.7126
=sr ∑[yactual − (a0 + a1 × x)]2 2.7126
sr = 0.1409
r 2 = 0.9481
Step - 3: To write the equation in y =axb form
a0 log a = − 0.56203 a1 = b so we can write the equation
a 10
= −0.56203
0.27413 b = 1.9841 in y = ax b form as y = 0.2741x 1.9841
Dr. Monash Purushothaman BCHE201L Computational Methods in Chemical Engineering 25
Ce qe ymodel sr
30 68 74.06841 36.82557
68 96 102.596 43.50755 kf = 19.1213
157 150 143.1576 46.81809 1/n= 0.39815
250 186 172.2887 187.9995 n= 2.511617
346 198 196.0876 3.65729
446 205 216.945 142.6828
461.4908