Docsity

12 Solved Problems on Regression in Computational Methods | EML 3041, Quizzes of Mechanical Engineering

Toggle sidebar
bg1
EML3041 – Computational Methods
Sample Quiz Questions
Regression
1. Given the following data of y vs x
x 1 2 3 4 5
y 1 4 9 16 25
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: -1
2. 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 400
Given
3
1
3
1
4
3
1
3
3
1
2
3
1
,006.8)(ln,625,220,375,12,725,45
i
i
i
i
i
i
i
i
i
ixxxxx
3
1
3
1
2
3
1
3
1
2
3
1
,894.15)(ln,000,215,000,12,000,210,700
i
i
i
ii
i
ii
i
i
i
iFxFxFFF
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.55
*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 400
Given
3
1
3
1
4
3
1
3
3
1
2
3
1
,006.8)(ln,625,220,375,12,725,45
i
i
i
i
i
i
i
i
i
ixxxxx
3
1
3
1
2
3
1
3
1
2
3
1
,894.15)(ln,000,215,000,12,000,210,700
i
i
i
ii
i
ii
i
i
i
iFxFxFFF
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=30
pf3

Partial preview of the text

Download 12 Solved Problems on Regression in Computational Methods | EML 3041 and more Quizzes Mechanical Engineering in PDF only on Docsity!

EML3041 – Computational Methods Sample Quiz Questions Regression

  1. Given the following data of y vs x x 1 2 3 4 5 y^1 4 9 16

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: -

  1. 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 Force, F (N) 100 200 400

Given     

    

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

Given     

    

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.