This preview shows page 1. Sign up to view the full content.
Unformatted text preview: r a = N\r a X = (1:.01:13)'; X F = a(1,1) + a(2,1)*X + a(3,1)*X.^2 + a(4,1)*X.^3; F plot(X, F) p ybar = mean(y) y St = sum((y-ybar).^2) S St = sum((y- (a(1,1) + a(2,1)*x + a(3,1)*x.^2 + a(4,1)*x.^3)).^2) S r2 = (St-Sr)/St...
View Full Document
- Spring '09