200 likes | 299 Vues
Modeling Nonlinear Data. Section 4.1. Linear, Exponential, Power. y = a + bx Linear model: y changes by common difference for equal increments of change in x. y = ab x Exponential model: y changes by a common ratio for equal increments of change in x. y = ax b
E N D
Modeling Nonlinear Data Section 4.1
Linear, Exponential, Power • y = a + bx • Linear model: y changes by common difference for equal increments of change in x. • y = abx • Exponential model: y changes by a common ratio for equal increments of change in x. • y = axb • Power Model: Power relationship between x and y
Properties of Logs/Exponents • logbx = y if by = x • log(AB) = logA + logB • log(A/B) = logA – logB • logXp = p logX • 10log x = x • (xa)(xb) = xa+b
Exponential Regression y = abx • Plot data points and check scatterplot, check correlation and residuals, not linear? • Check if common ratio. • Transform data into linear by using log y. • Check scatterplot, linear? • LSRL: log ŷ = a + bx • Undo log (remember ŷ = log ŷ ). • Use equation to make predictions.
Example: Exponential Growth of a Savings Account; Principle - $2, rate – 6% per yr compounded monthly, time = 3 years. x = time; y = account balance x months 0, 12, 24, …, 360 (30 years) y = 2(1.005)x • Data in lists: L1 (x), L2 (y). • Check scatterplot, correlation, residuals, common difference or ratio, linear? • Make L3 (log y). • Scatterplot of L1 andL3,linear? Do LSRL. • Undo Log (remember ŷ = log y). • Use exponential model for predictions.
Power Regression y = axb • One quantity is proportional to the second quantity raised to a power. • All pass through the origin. • A relationship between height and weight seem to follow this model. • Log(x) and log(y) • LSRL on log(x), log(y) • Undo transformation
1. Plot length vs weight, linear? Power regression make sense?
2. Take log of both x and y and plot, linear? 3. Find the LSRL: log(weight) = -1.8994 + 3.0494 log(length)
4. Residuals show that a linear model is good for the logs of x and y?
5. Undo logs of LSRL: log ŷ = -1.8994 + 3.0494 log x Then plot power regression over scatterplot of original data, good fit?