You are on page 1of 4

Cairo University Faculty of Engineering

Main-Stream Spring 2023


MTH 2134 Numerical Analysis
Assignment 3
Curve Fitting and linear regression

1- V is the electric potential and I is the electric current the equation has the form
I = aV b , Find a and b using the following data:
V 2 4 8 16 25 32 50
I 0.0245 0.037 0.007 0.0855 0.1125 0.1295 0.1715

a
2- Fit the curve y = 2 by the following data, then find the correlation Coefficient
be bx
x 1 1.1 1.3 1.35 1.4
y 0.7357 0.5964 0.3691 0.3232 0.2817

3- Fit the curve y = a + bx 2 to the following data, then find St

x 7.87 11.5 16.4 22.6 32.8


y 0.2 0.4 0.8 1.6 3.2

4- The relation between the parametric pressure P and the height h is P = ae bh , Fit
this relation to the following data, then evaluate S r

h 0 866 2753 4763 6942 10593


P 30 23 27 26 23 20

5- V is the velocity and P is the power in horsepower, the equation is P = a + bV 3 , Fit


it to the following data:
V 5 7 9 11 12
P 290 560 1144 1810 2300

6- For Newton’s law for cooling  is the increment of temperature and t is the time, the

equation is  = c sin tekt . Find c and k using the following data:


 1.09 3.45 5.85 9.3 11.8 15.1 17.75 19.95
t 0.2 0.8 0.97 1.37 1.54 2.01 2.85 3.11

7- Fit the curve y = a + bx + cx 2 to the following data


x 1 2 4 6 8 10 12 15
y 8.9 9.9 18.1 33.9 58.2 89.8 130.3 204.7

8- Fit to the following data the curves:

1 ax 1 x
a) y = b) y = , c) y = d) y =
a + bx 1 + bx a + bx 2 b + cx
x 1 2 4 6 8 10
y 0.22 0.1 0.06 0.04 0.03 0.024
Evaluate the correlation coefficient in each case.
b
a+ −
( x −a )2
9- Fit the curve a) y = e c) y = ae −bx to the following data:
2
x b) y = ce b

x 1 2 4 5 8
y 9.0464 6.7042 2.019 0.821 0.0164

10- Fit the curve y = Ax + E sin( x + B) by the following data:


x 1.2 1.3 1.4 1.5
y 1.8466 2.0821 2.2107 2.7658
Evaluate the correlation coefficient .

11- Fit the curve y = ln(a + bx + cx ) to the following points: (0, 1.1), (1, 1.8), (2, 2.3),
2

(3,2.9), (4, 3.2), (5,3.6) and (6,3.9). Find the root mean squares of errors. Find y` at
x = 1and find x when y = 4.3.

𝒃 𝟐
12- Fit the following data to the curve 𝒚 = (𝒂𝒙𝟐 + 𝒙) then find the correlation
coefficient.

x 0.2 0.5 0.8 1


y 102 22 20 25

 ax 2 +  
13- Fit the curve y = sinh  −1
 by the following data:
 bx 
X 0.8 1 1.2 1.3 1.5
Y 1.129 1.034 0.966 0.939 0.895
Then find the correlation coefficient.
𝜷 𝟑
( 𝟐)
14- Fit the following data to the curve 𝒚 = (𝜶𝒆 𝒙 ) then find the correlation
coefficient.

x 5 5.8 6.1 7.4


y 81 77 75 71

𝒙𝟐 −𝟏
15- Fit the following data to the curve 𝒚= then find the correlation
𝒂𝒙𝟐 +𝒃𝒙−𝒂
coefficient.

x 0 2 3 5
y 2 4 8 10

16- Linearize then fit the curve 𝒚 = 𝒂𝒙 𝒙𝒃 to the following table, then find 𝑺𝒕 and 𝑺𝒓 .

x 0.5 0.6 0.8 1.1 1.3


y 0.28 0.57 1.86 7.82 17.8

𝒂𝒆𝒙
17- Linearize then fit the curve 𝒚 = 𝐭𝐚𝐧𝐡−𝟏 ( ) to the table below. Find 𝑺𝒕 and
𝒃𝒆𝒙 +𝟏

𝑺𝒓 .

x 0.5 1.1 1.8 2.4


y 0.625 0.693 0.744 0.77

𝒂𝒙
18. Linearize then fit the curve 𝒚 = 𝐥𝐧 √ to the following table. Find the
𝒃+𝒙

correlation coefficient.

x 11 23 34 45 69
y 0.93 0.952 0.959 0.962 0.966

𝒂𝒙𝟐 +𝒃
19. Linearize then fit the curve 𝒚 = 𝐜𝐨𝐬𝐡−𝟏 ( ) to the following table, work with 3
𝒙

decimals. Find the correlation coefficient.

x 2.2 4 6.1 7.8


y 3.484 4.043 4.298 4.7

𝟐
20. Linearize then fit the curve 𝒚 = 𝒆𝜶𝒙 𝟐−𝜷√𝒙 to the following table. Find the
regression error.
[4]

x 0.8 1.2 2 2.9 3.5


y 0.7438 1.1017 5.0718 87.4035 1117.54

You might also like