Question: 2 The MSPE 2 . 1 Preliminary analysis Consider the following modelling strategy y = f ( x ) + e 1 . Use the

2 The MSPE
2.1 Preliminary analysis
Consider the following modelling strategy
y = f(x)+ e
1. Use the following steps to generate your data:
set your seed to your group number (eg, set.seed(4) if you are group 4)
set n =135
generate e as a N(0,0.18)
generate x as a U(0,1)
set f(x)= x
2
This should be done via two functions. One that creates f(x) and the other one that
generates a 1) data frame containing x, y and 2) the generated systematic part of your
model. Create a table that contains the first 10 rows of your data frame.
2. Create a nice X-Y 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!