R exercise

Chapter 5 exercise 8

Sign in to hand in your solution and get feedback.

set.seed(1) x <- rnorm(100) y <- x - 2*x^2 + rnorm(100)