

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


EML3041 – Computational Methods Sample Quiz Questions Regression
The data is regressed to a straight line y=-7+6x. The sum of the square of residuals, Sr =14 and the sum of the square of the differences between the values of y and average value of y, St = 374. What is the residual at x=4? Answer: -
3
1
3
1
(^34)
1
(^33)
1
(^32)
1
45 , 725 , 12 , 375 , 220 , 625 , (ln ) 8. 006 , i
i i
i i
i i
i i
xi x x x x
3
1
3
1
(^32)
1
3
1
(^32)
1
700 , 210 , 000 , 12 , 000 , 215 , 000 , (ln ) 15. 894 , i
i i
i i i
i i i
i i
Fi F Fx Fx F
If the F vs x, data is regressed to F = k x, what is the value of "k" by minimizing the sum of the square of the residuals. Answer:16.
*3. The force vs. displacement data for a linear spring is given below. F is the force in Newtons and x is the displacement in meters. Assume displacement data is known more accurately.
Displacement, x (m) 10 15 20 Force, F (N)^100 200
3
1
3
1
(^34)
1
(^33)
1
(^32)
1
45 , 725 , 12 , 375 , 220 , 625 , (ln ) 8. 006 , i
i i
i i
i i
i i
xi x x x x
3
1
3
1
(^32)
1
3
1
(^32)
1
700 , 210 , 000 , 12 , 000 , 215 , 000 , (ln ) 15. 894 , i
i i
i i i
i i i
i i
Fi F Fx Fx F
If the above F vs x, data is regressed to F = a+ k x, what is the value of "k" by minimizing the sum of the square of the residuals? Answer: k=
*4. Given the following data of y vs x x 1 2 3 4 5 y 1 1.1 .9 .96 1.
If the y vs x, data is regressed to a constant line given by y = a, where ‘a’ is a constant, what is the value of "a" by minimizing the sum of the square of the residuals. Answer:0.
*5. Water is flowing through a circular pipe of 1/2 ft radius and flow velocity (ft/s) measurements are made from the center to the wall of the pipe as follows Radial Location, r (ft)
Velocity, V (ft/s)
A scientist regresses the data to a straight line given by V (r ) = -19.999 r + 11. How much is the true error in the flow rate using the above velocity expression if the actual flow rate is 3.923 ft 3 /s.? Answer:err=0.
*6. Water is flowing through a circular pipe of 1/2 ft radius and flow velocity (ft/s) measurements are made from the center to the wall of the pipe as follows
Radial Location, r (ft)
Velocity, V (ft/s)
Can you come up with a better estimate of the flow rate in the pipe than you found above? Use any scientific method. Answer: Regress it to a0(1-r^2/a^2), flow rate 3.927 ft 3 /s 7..The following force vs. displacement data is given for a nonlinear spring. Displacement, x (m) 10 15 20 Force, F (N) 100 200 400 By minimizing the sum of the square of the residuals and without data linearization, the above F vs x data is regressed to F = k x^2.* Find the value of ‘k’? Answer: k=0. *8..Data points (x 1 ,y1), (x 2 ,y2 ), …….., (xn ,yn ) is regressed to y=aebx^ by minimizing the sum of the square of the residuals and without data linearization. Clearly write out the formula for the sum of the square of the residuals.