Docsity

Sample Quiz Questions - Computational Methods Regression - Prof. Autar Kaw, 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?
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
ii
ii
ii
ii
iixxxxx
∑∑∑∑∑ =====
===== 3
1
3
1
2
3
1
3
1
2
3
1
,894.15)(ln,000,215,000,12,000,210,700
ii
iii
iii
ii
iiFxFxFFF
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.
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
ii
ii
ii
ii
iixxxxx
∑∑∑∑∑ =====
===== 3
1
3
1
2
3
1
3
1
2
3
1
,894.15)(ln,000,215,000,12,000,210,700
ii
iii
iii
ii
iiFxFxFFF
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?
pf3

Partial preview of the text

Download Sample Quiz Questions - Computational Methods Regression - Prof. Autar Kaw 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 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?

  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.

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

  1. 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.

  1. 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.?

  1. 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.

  1. The following force vs. displacement data is given for a nonlinear spring. Displacement, x (m) 10 15 20 Force, F (N)^100 200 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’?
  2. Data points (x 1 ,y 1 ), (x 2 ,y 2 ), …….., (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.