CLL113 Quiz 2 Solutions
CLL113 Quiz 2 Solutions
Production in lbs(y): 10 12 13 16 17
a) 12.33
b) 14.96
c) 11.85
d) 18.67
Answer: b
Explanation: Solving by using Actual Mean Method
N=5
Mean of x=1986 and y=13
x y X=x-1986 Y=y-13 X2 XY
1986 13 0 0 0 0
1996 14 10 1 100 10
2006 16 20 3 400 60
We know that,
∑y=Na+b∑x
∑xy=a∑x+b∑x2
Substituting the values from the table into the equations-
0=(5)a+b(0) – (1)
a=0
140=(a)0+b(1000) – (2)
b=0.14
Thus, the equation is
Y=a+Bx
Y=0+0.14X
Resubstituting X=x-1986 and Y=y-13
y-13=0.14(x-1986)
y=-265.04+0.14x
To find the production in the year 2000, substitute x = 2000.
y=-265.04+0.14(2000)
y=14.96.
Q: Predict the year when Sugar Land’s population will reach 75,000 using exponential regression
model.
Years since 0 1 2 3 4 5
1980
Population 18940 21150 23490 27570 29610 35480
A) 2015
B) 1991
C) 1992
D) 2010
Answer: B) 1991
Q: Match the type of model seems appropriate with the figures shown:
A) P) Linear Regression Model
Q: A steel cylinder at 80° F of length 12" is placed in a commercially available liquid nitrogen
bath (−315° F). If the thermal expansion coefficient of steel behaves as a second order
polynomial function of temperature and the polynomial is found by regressing the data below,
Temperature, T (°F) Thermal expansion Coefficient, α ( µ in/in/°F)
-320 2.76
-240 3.83
-160 4.72
-80 5.43
0 6.00
80 6.47
the reduction in the length of the cylinder in inches most nearly is:
A) 0.0219
B) 0.0231
C) 0.0235
D) 0.0307
Answer: C) 0.0235
Q: Solve using Newton Raphson for multivariate system:
𝐹1 (𝑦) = 3 − 5𝑦2 + 4𝑦3 − 𝑦2 3 = 0
Where, . Start with an initial guess of 0.5 i.e. 𝑦2 (1) 𝑎𝑛𝑑 𝑦3 (1) = 0.5 and choose the
correct options from amongst the following:
Q: Use the NR method to find the second iterate of the solution of:
𝑓(𝑥) = 11(𝑥 3 + 1)𝑒 −2𝑥 − 8𝑐𝑜𝑠(2𝑥) = 0
Start with a guess of 0.5.
a) 𝑥2 =0.466
b) 𝑥2 =0.446
c) 𝑥2 =0.464
d) None
Use 𝑥0 =-2.
a) 𝑥4 =-0.6
b) None
c) 𝑥4 =-0.603
d) 𝑥4 =-0.58
(a) Y = 2.26x
(b) Y = 3.52+2.26x
(c) Y = 3.52x
(d) Y= 4+3x
Solution:
∑xy=a∑x+b∑x2
x y x2 x⋅y
0 3 0 0
1 6 1 6
2 8 4 16
3 11 9 33
4 13 16 52
5 14 25 70
15a+55b=177
and 15a+55b=177
6a+15b=55→(1)
15a+55b=177→(2)
equation(1)×5⇒30a+75b=275
equation(2)×2⇒30a+110b=354
Subtracting ⇒-35b=-79
⇒35b=79
⇒b=7935
⇒b=2.2571
6a+15(2.2571)=55
⇒6a=55-33.8571
⇒6a=21.1429
⇒a=21.14296
⇒a=3.5238
∴a=3.5238and b=2.2571
y=3.5238+2.2571x
Q: The table shows the average braking distance of a car at various speeds. Use a second-
degree polynomial to predict the braking distance at 70 mph.
(a) 245 ft
(b) 225 ft
(c) 285 ft
(d) 265 ft
Fitted polynomial :- Y = 5x2
Q: The method of _____________ is the most appropriate method to fit a unique curve
from the given data.
0 1 6
𝐴 = (1 1) 𝑏 = (0)
2 1 0
We have
And
Calculating Inverse :-
Q: For the given data with one response variable y and two predictor variables X1 and X2,
fit a multiple linear regression model.
Solution :-
Sum of X1 = 555
Sum of X2 = 145
Sum of Y = 1452
Mean X1 = 69.375
Mean X2 = 18.125
Mean Y = 181.5
Sum of squares (SSX1) = 263.875
Sum of squares (SSX2) = 194.875
Sum of products (SPX1Y) = 1162.5
Sum of products (SPX2Y) = -953.5
Sum of products (SPX1X2) = -200.375
A) It has the capabilities of returning of both real and complex roots, and it may take a long time,
but it doesn’t fail.
C) The farther the starting values from the roots, the longer it takes to converge.
ANSWER:
(C)
Q: Let aoxn + a1x(n-1) + · · · + an-1x + an = 0 be a polynomial equation, where ao > 0, a1, a2, . . . ,
am-1 ≥ 0, am < 0, for some m ≤ n, and B is the greatest of the absolute values of the negative
coefficients. Then the upper bound of the positive roots of the equation is
𝑚 𝑎
A) 1 + √ 𝐵0
𝑚 𝐵
B) 1 + √𝑎
0
𝑛 𝑎
C) 1 + √ 𝐵𝑛
𝑚𝑛 𝑎
D) 1 + √ 0
𝐵
𝑚/𝑛 𝐵
E) 1 + √𝑎
0
ANSWER:
(B)
Q: Let aoxn + a1x(n-1) + · · · + an-1x + an = 0, where a0, a1, . . . , an are real coefficients, be a
1 𝐴
polynomial equation. Also, let r = 𝐵 and R = 1 + , where A = max{|a1|, |a2|, . . . , |an|} and
1+ |𝑎 |
0
|𝑎𝑛|
C) Positive roots lie in the interval (r, R) and negative roots lie in the interval (−R, −r)
ANSWER:
(C)
Q: The pressure of the gas corresponding to various volumes V is measured, given by the
following data:
V(cm3) 50 60 70 90 100
p(kgcm−2 64.7 51.3 40.5 25.9 78
)
Which of the following equations fits the data to the form of equation as: pV = c. (Values upto
two decimal places)
ANSWER:
(D)
A) ∑𝑛𝑖=1(𝑦𝑖 − 𝑎𝑒 𝑏𝑥𝑖 )2
B) ∑𝑛𝑖=1(ln(𝑦𝑖 ) − ln(𝑎) − 𝑏 𝑥𝑖 )2
C) ∑𝑛𝑖=1(𝑦𝑖 − ln(𝑎) − 𝑏 𝑥𝑖 )2
D) ∑𝑛𝑖=1(ln(𝑦𝑖 ) − ln(𝑎) − 𝑏 ln (𝑥𝑖 ))2
ANSWER:
(B)
Q: Raman has been asked to report absolute error for the following set of data(Using linear
regression):
x y
4.066 0.657
5.132 0.757
8.354 0.857
3.157 1.235
2.136 1.459
1.138 1.126
Solution: x y 2.066x-3.145y-5.0654
4.066 0.657 1.268691
5.132 0.757 3.156547
8.354 0.857 9.498699
3.157 1.235 -2.42711
2.136 1.459 -5.24098
1.138 1.126 -6.25556
Sum = 0.000283
Q: If you consider the basis as ‘Quantification of error of linear regression’, what would you
report standard variation of the Regression Line for following set of data:
x y
4.066 0.657
5.132 0.757
8.354 0.857
3.157 1.235
2.136 1.459
1.138 1.126
The given line is : 2.066x – 3.145y – 5.0654 =0
A. 174.2894
B. 27.84759
C. -27.84759
D. 147.2652
Solution:
x y 2.066x-3.145y-5.0654 error
squared
4.066 0.657 1.268691 1.609577
5.132 0.757 3.156547 9.963789
8.354 0.857 9.498699 90.22528
3.157 1.235 -2.42711 5.890878
2.136 1.459 -5.24098 27.46786
1.138 1.126 -6.25556 39.13206
Q: Find the value of a0 and a1 that fits well while we try to minimize the square of the residual
obtained in linear regression for the following set of data: (Consider it as: y=a0 + a1 x)
x y
4.066 0.657
5.132 0.757
8.354 0.857
3.157 1.235
2.136 1.459
1.138 1.126
A. a0 = - 0.07156 , a1 = 1.30221
B. a0 = - 0.04567 , a1 = 1.65849
C. a0 = -0.04567 , a1 = 2.65984
D. a0 = -0.06759 , a1 = 1.65849
A0 = - A1 =
0.07156 1.301221
Q: Find the standard error of the estimate for the following data:
x y
4.066 0.657
5.132 0.757
8.354 0.857
3.157 1.235
2.136 1.459
1.138 1.126
A. 6.396089
B. 6.325584
C. 6.148946
D. 6.257896
Solution :
A. 0.3498
B. 0.2568
C. 0.4567
D. 0.3059
(A) 3
(B) 6
(C) 4
(D) 5
2. What will be the sum of b’s coefficients of x2 and x3 after the 2nd iteration?
(A) 3.530235
(B) 1.000000
(C) 8.780271
(D) 4.786621
(A) 0.03046
(B) 0.70598
(C) 0.86549
(D) 0.75245
4. What will be the value of square root of discriminant based on converged r and s values?
(A) 1.79
(B) 1.60
(C) 1.50
(D) 1.57
5. What will be the sum of b’s coefficients of x2 from 1st iteration and x4 from the 2nd
iteration?
(A) -2.027423
(B) -8.344722
(C) -4.144170
(D) -3.769170