P13_7 - l a4 = (n*logxy - logx*logy)/(n*logx2 - logx^2) a...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function P13_7 f x = [0.1 0.2 0.4 0.6 0.9 1.3 1.5 1.7 1.8]; x y = [0.75 1.25 1.45 1.25 0.85 0.55 0.35 0.28 0.18]; y sumx = sum(x); s sumy = sum(y); s n = 9; n xbar = sumx/n; x ybar = sumy/n; y logx = sum(log(x)); l logy = sum(log(y)); l logx2 = sum(log(x).^2); l logxy = sum(log(x).*log(y));
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: l a4 = (n*logxy - logx*logy)/(n*logx2 - logx^2) a %a4 = (n*sum(log(x).*log(y)) - sum(log(x))*sum(log(y)))/(n*sum((log(x)).^2) - (sum(log(x)).^2)) ( b4 = ybar - a4*xbar b X = (0.1:.001:2)'; X F = exp(b4 + a4*log(X)); F plot(X, F) 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.

Ask a homework question - tutors are online