ENGSCI211_2021FC_Test2_Questions (1)
ENGSCI211_2021FC_Test2_Questions (1)
MATHEMATICAL MODELLING 2
Test 2
Page 1 of 12
ENGSCI 211
QUESTION / ANSWER BOOKLET
2 R
y =4−x
x2
y= 2
1 y =2−x
x
1 2 3 4
Identify a suitable change of variables for evaluating this integral, and state the integral
bounds in the new coordinate system. (3 marks)
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
Page 2 of 12
ENGSCI 211
========== DO NOT WRITE IN THIS MARGIN ========== QUESTION / ANSWER BOOKLET
RR
(b) A second, separate, double integral T g(x, y) dA has an integration region T that
requires a change of variables to the coordinate system u = xy, v = xy 2 .
Evaluate the Jacobian determinant for this change of variables. (2 marks)
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
Page 3 of 12
ENGSCI 211
QUESTION / ANSWER BOOKLET
(b) For a simple linear regression model of the form y = β0 + β1 x, a t-test on the regression
coefficient of β1 resulted in a p-value of 0.62.
(i) With respect to the relevant null hypothesis, interpret the p-value of this t-test.
(2 marks)
(ii) Give an interpretation of this result in terms of the effect on y of a 1-unit change
in x. (1 mark)
Page 4 of 12
ENGSCI 211
========== DO NOT WRITE IN THIS MARGIN ========== QUESTION / ANSWER BOOKLET
(c) In the context of machine learning, explain briefly what is meant by a model that is
overfitted. What might we expect to observe when we use such a model for prediction?
(2 marks)
Page 5 of 12
ENGSCI 211
QUESTION / ANSWER BOOKLET
WARNING: Marks will be deducted for answers that are not specifically asked
for in the questions. Please keep answers concise. Do NOT do brain dumps.
(c) Assuming that the relevant assumptions are satisfied, write a brief Executive Sum-
mary of the main conclusions you would draw from this analysis. (2 marks)
Page 6 of 12
ENGSCI 211
========== DO NOT WRITE IN THIS MARGIN ========== QUESTION / ANSWER BOOKLET
(d) State another method by which this analysis could have been conducted. (1 mark)
Page 7 of 12
ENGSCI 211
QUESTION / ANSWER BOOKLET
(a) What is the difference between the models planets.lm2 and planets.lm3?
Why was the model planets.lm3 rejected? (2 marks)
(b) Write down the equation of the model fitted in planets.lm2. (2 marks)
(c) Give a prediction for the possible range of locations of the asteroid belt (planet order 5)
in another solar system with the same size sun as ours, as given by the model we have
fitted to the observed data. (1 mark)
Page 8 of 12
ENGSCI 211
========== DO NOT WRITE IN THIS MARGIN ========== QUESTION / ANSWER BOOKLET
WARNING: Marks will be deducted for answers that are not specifically asked
for in the questions. Please keep answers concise. Do NOT do brain dumps.
(d) Assuming that the relevant assumptions are satisfied, write a brief Executive Sum-
mary of the main conclusions you would draw from this analysis. (4 marks)
Page 9 of 12
ENGSCI 211
QUESTION / ANSWER BOOKLET
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
Page 10 of 12
ENGSCI 211
========== DO NOT WRITE IN THIS MARGIN ========== QUESTION / ANSWER BOOKLET
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
Page 11 of 12
ENGSCI 211
QUESTION / ANSWER BOOKLET
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
empty
Page 12 of 12
APPENDIX ENGSCI 211
ENGINEERING SCIENCE
Mathematical Modelling 2
TEST 2 APPENDICES
Contents
Page
APPENDIX B: Planets 4
Formula Sheet 9
Page 1 of 10
APPENDIX ENGSCI 211
library(s20x)
compression.df = read.table("RCcompression.txt", header = TRUE)
compression.df$condition = factor(compression.df$condition)
90
85
80
LabDry Moist
condition
90
85
80
LabDry Moist
condition
Page 2 of 10
APPENDIX ENGSCI 211
modcheck(compression.lm)
Sample Quantiles
Residuals
0.30
6
Fitted values
Cook's distance
0.20
9
0.10
0.00
summary(compression.lm)
##
## Call:
## lm(formula = strength ~ condition, data = compression.df)
##
## Residuals:
## Min 1Q Median 3Q Max
## -9.658 -2.658 0.825 2.133 8.142
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 90.3917 1.1670 77.459 <2e-16 ***
## conditionMoist -0.7333 1.6503 -0.444 0.661
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 4.042 on 22 degrees of freedom
## Multiple R-squared: 0.008895, Adjusted R-squared: -0.03616
## F-statistic: 0.1974 on 1 and 22 DF, p-value: 0.6611
confint(compression.lm)
## 2.5 % 97.5 %
## (Intercept) 87.97153 92.811808
## conditionMoist -4.15593 2.689263
Page 3 of 10
APPENDIX ENGSCI 211
APPENDIX B: Planets
It is theorised that there is a mathematical relationship between how far a planet is away from
its local star (i.e. the sun in our solar system) and the order of the planet in that solar system
(e.g. Earth is order 3 in our solar system). It is of interest to determine this relationship for our
solar system, in order to help find exoplanets in other solar systems with similar stars to ours.
20
10
0
2 4 6 8 10
Order
Page 4 of 10
APPENDIX ENGSCI 211
Sample Quantiles
Residuals
0.8
Cook's distance
0.6
1
0.4
0.2
9
0.0
Fitted values
0.4
Cook's distance
0.3
8
2
0.2
0.1
0.0
Page 5 of 10
APPENDIX ENGSCI 211
summary(planets.lm2)
##
## Call:
## lm(formula = log(Distance) ~ Order, data = planets.df)
##
## Residuals:
## Min 1Q Median 3Q Max
## -0.188576 -0.079848 0.000433 0.095100 0.197265
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) -1.53782 0.09268 -16.59 1.76e-07 ***
## Order 0.53693 0.01494 35.95 3.93e-10 ***
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 0.1357 on 8 degrees of freedom
## Multiple R-squared: 0.9938, Adjusted R-squared: 0.9931
## F-statistic: 1292 on 1 and 8 DF, p-value: 3.928e-10
##
## Call:
## lm(formula = log(Distance) ~ Order, data = planets.df[-10, ])
##
## Residuals:
## Min 1Q Median 3Q Max
## -0.192887 -0.064724 -0.007704 0.086044 0.161162
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) -1.58524 0.09125 -17.37 5.15e-07 ***
## Order 0.54987 0.01622 33.91 5.03e-09 ***
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 0.1256 on 7 degrees of freedom
## Multiple R-squared: 0.9939, Adjusted R-squared: 0.9931
## F-statistic: 1150 on 1 and 7 DF, p-value: 5.028e-09
Page 6 of 10
APPENDIX ENGSCI 211
confint(planets.lm2)
## 2.5 % 97.5 %
## (Intercept) -1.7515344 -1.3240976
## Order 0.5024888 0.5713764
exp(confint(planets.lm2))
## 2.5 % 97.5 %
## (Intercept) 0.1735075 0.2660429
## Order 1.6528297 1.7707027
pred.df = data.frame(Order = 5)
predict(planets.lm2, pred.df, interval = "confidence")
Page 7 of 10
APPENDIX ENGSCI 211
This page has been intentionally left blank for your rough working. It will not be marked.
Page 8 of 10
ENGSCI 211 Formula Sheet Version: Semester One 2021
Page 9 of 10
1−x2 x2 −a2 2a ln x+a , |x| > a
√ 1 1 1 x
arccos x − 1−x 2 a2 +x2 a arctan a
Partial fractions 1 √ 1
arctan x 1+x2 a2 −x2
arcsin xa , |x| < a
√
√ 1 ln(x + x2 + a2 )
p(x) A B C a2 +x2
= + + + ... Integration by Parts: √
√ 1 ln x + x2 − a2 , |x| > a
(x − a)(x − b)(x − c) . . . x−a x−b x−c Z Z x2 −a2
dv du
p(x) A B1 B2 B3 u dx = u v − v dx
= + + + dx dx
(x − a)(x − b)3 x − a x − b (x − b)2 (x − b)3
p(x) A Bx + C Numerical methods for ODEs
= +
(x − a)(x2 + bx + c) x − a x2 + bx + c
E
yn+1 = yn + ∆t k1
Geometric series k1 + k2
IE
yn+1 = yn + ∆t
2
n−1 ∞
X 1 − rn X 1 k1 = f (tn , yn )
ark = a ark = a , |r| < 1 E
1−r 1−r k2 = f tn+1 , yn+1
k=0 k=0
ENGSCI 211
ENGSCI 211 Formula Sheet Version: Semester One 2021
Page 10 of 10
x2k
ω s cosh x 1 + x2! + x4! + x6! + . . . (2k)! all x
sin ωt 2
s +ω 2 cos ωt s2 +ω 2 n n(n−1)(n−2)...(n−k+1) k
ω s (1 + x) 1 + nx + n(n−1)2! x2 + . . . k! x |x| < 1
sinh ωt s2 −ω 2 s > |ω| cosh ωt s2 −ω 2 s > |ω|
2ωs s2 −ω 2
t sin ωt (s2 +ω 2 )2 t cos ωt (s2 +ω 2 )2 Fourier series
∞
operation function transform X 2nπx 2nπx
f (x) = a0 + an cos + bn sin , f (x + T ) = f (x)
shift in s-domain eat f (t) F (s − a), a < s n=1
T T
shift in t-domain u(t − a)f (t − a) e−as F (s)
Z T /2
1
a0 = f (x) dx
1st t-derivative y 0 (t) sY − y(0) T −T /2