This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: x y = [5 6 7 6 9 8 7 10 12 12]'; y n = 10; n xbar2 = sum(x)/n; x ybar2 = sum(y)/n; y a1 = ((n*sum(y.*x) - sum(x)*sum(y))/(n*sum(y.^2) - (sum(y))^2)) a a0 = xbar2 - a1*ybar2 a F2 = (X - a0)/a1; F Sr = sum((x - (a0 + a1.*y)).^2) S St = sum((x - xbar2).^2) S Serr = sqrt(Sr/(n-2)) S r = sqrt((St-Sr)/St) r plot(X,F, 'k') hold on plot(X, F2, 'r--') plot(x,y, ' p...
View Full Document
This note was uploaded on 09/21/2011 for the course EGM 3344 taught by Professor Raphaelhaftka during the Spring '09 term at University of Florida.
- Spring '09