Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. x <- runif(10)
  2. y <- x - x**2 + rnorm(10, sd=1)
  3. M <- lm(y ~ poly(x, degree=9))
  4.  
  5. sum((y - predict(M))**2)
  6.  
  7. [1] 2.889376e-31
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement