Download presentation
Presentation is loading. Please wait.
1
transformations Remember scatterplots from CH3
Insert data L1(x),L2,(y) in your calculator 8: Linreg(a +bx) L1,L2,Y1 ….(write down a,b,r,r2) Check the scatterplot Check the Residual Plot L1, RESID Curved pattern = not a good fit Random pattern = good fit
2
Transformations If your Linear Model x,y is not Appropriate…..
There are a few options to try….. Exponential Model x ,Log(y) Logarithmic Model Log(x), y Power Model Log(x), Log(y) Try the above options in that order, check r2 and the residual plot,……if r2 is high and the residual plot looks good then you have found a suitable model CAUTION…Real data may not have a perfect model….sometimes you have to settle on “good enough”
3
Baseball Salaries Ballplayers have been signing very large contracts. The highest salaries (in millions of dollars per season) for some notable players are given in the following table.
4
Player Year Salary (millions $) Nolan Ryan 1980 1.0 George Foster 1982 2.0 Kirby Puckett 1990 3.0 Jose Canseco 4.7 Roger Clemens 1991 5.3 Ken Griffey Jr. 1996 8.5 Albert Belle 1997 11.0 Pedro Martinez 1998 12.5 Mike Piazza 1999 Mo Vaughn 13.3 Kevin Brown 15.0 Carlos Delgado 2001 17.0 Alex Rodriguez 22.0 Manny Ramirez 2004 22.5 2005 26.0
5
Year VS SALARY R2 is high, however the scatterplot appears to have a curved pattern. A linear model may not be appropriate.
6
Year vs Log(salary) This is an exponential model. R2 is very high and the scatterplot shows no curvature. This appears to be a good fit for this data. Make sure to check the residual plot to make sure.
7
Residual Plot This residual plot shows no curved pattern and the residuals are randomly scattered above and below the axis…this shows that your model is a good fit.
8
Exponential model Log(salary) = -109.133 + 0.05516YEAR
Make a prediction using your model for a salary in About 33 million a year
9
Life expectancy Log(life) = 1.685 + 0.18497Log(Decade) Power Model
The following data is Life Expectancy for white males in the United States every decade during the last century (1 = 1900 to 1910, 2 = 1911 to 1920, etc.). Create a model to predict future increases in life expectancy. Decade 1 2 3 4 5 6 7 8 9 10 Life Exp. 48.6 54.4 59.7 62.1 66.5 67.4 68 70.7 72.7 74.9 Log(life) = Log(Decade) Power Model Make a prediction using the above model for the life expectancy of the decade we are currently in.
10
Use log inverse About 76 to 77 years
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.