Question: 2 The MSPE 2 . 1 Preliminary analysis Consider the following modelling strategy y = f ( x ) + e 1 . Use the
The MSPE
Preliminary analysis
Consider the following modelling strategy
y fx e
Use the following steps to generate your data:
set your seed to your group number eg set.seed if you are group
set n
generate e as a N
generate x as a U
set fx x
This should be done via two functions. One that creates fx and the other one that
generates a data frame containing x y and the generated systematic part of your
model. Create a table that contains the first rows of your data frame.
Create a nice XY plot that shows your pairs of observations on x and y as well as the
true systematic part of your model. Discuss the type of relationship between y and x
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
