M25- Growth & Transformations 1 Department of ISM, University of Alabama, 1992-2003 Lesson Objectives: • Recognize exponential growth or decay. • Use log(Y ) to construct the prediction equation. • Reverse the process to get predicted values from log(Y ) models back in terms of Y.
72
Embed
M25- Growth & Transformations 1 Department of ISM, University of Alabama, 1992-2003 Lesson Objectives: Recognize exponential growth or decay. Use log(Y.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
M25- Growth & Transformations 1 Department of ISM, University of Alabama, 1992-2003
Lesson Objectives:
• Recognize exponential growth or decay.
• Use log(Y ) to construct the prediction equation.
• Reverse the process to get predicted values from log(Y ) models back in terms of Y.
M25- Growth & Transformations 2 Department of ISM, University of Alabama, 1992-2003
L
wt
h
n e ar
g r o
i
E x p o n en
ti
a
l
M25- Growth & Transformations 3 Department of ISM, University of Alabama, 1992-2003
Stuff $100 in a mattress each month,then after X months you will haveY = 0 + 100 X dollars.
This is linear growth; ZERO interest.
X
Y
Example 1
M25- Growth & Transformations 4 Department of ISM, University of Alabama, 1992-2003
Stuff $1000 in a savings acct.that pays 10% interest each year,
then after X years you will haveY = 1000 ( 1.10 ) dollars.
X
This is exponential growth.
X
Y
Example 2
M25- Growth & Transformations 5 Department of ISM, University of Alabama, 1992-2003
Linear growth increases by a fixed amount in each time period; Exponential growth increases by afixed percentage of the previoustotal.
M25- Growth & Transformations 6 Department of ISM, University of Alabama, 1992-2003
If YY grows exponentially grows exponentially as X increases,
X
Y
then log log YY grows linearly grows linearly as X increases.
X
log Y
M25- Growth & Transformations 7 Department of ISM, University of Alabama, 1992-2003
logb X = YY bYY = X
Properties of logarithms:
1. logbase 1 = 0
2. logb XY = logb X + logb Y
3. logb Xp = p logb X
A logarithm is an exponent.A logarithm is an exponent.
M25- Growth & Transformations 8 Department of ISM, University of Alabama, 1992-2003
logb X = Y
Review of logarithms:
bY = X
log5 125 = 3 53 = 125
log101000 = 3 103 = 1000
ln X = natural log, or log base “e”e = 2.7182818
ln 1000 = 6.907 e6.907 = 1000
M25- Growth & Transformations 9 Department of ISM, University of Alabama, 1992-2003
Why do we care about logarithms?
Back to the matress.Back to the matress.$1000. at 10% per year:$1000. at 10% per year:
ln Y = ln [1000 ( 1.10 )X]
= ln [1000] + ln( 1.10 )X
= ln [1000] + X ln( 1.10 )
= a + b X i.e., a straight linestraight line.
Not linear
equation!Not linear
equation!
Y = 1000 ( 1.10 )X
This IS a linearequation!
This IS a linearequation!
X
048
12
Y
110
1001000
500
1000
4 8 12 X-axis
Y
log10 Y
4 8 12 X
3
2
1
log Y
Example 3
M25- Growth & Transformations 12 Department of ISM, University of Alabama, 1992-2003
If X = 6, log10 Y = 0 + .25 6= 1.51.5
If log10 Y = 1.5,
Y =
log10 Y = 0 + .25 X
4 8 12 X
3
2
1
log Y
Example 3
M25- Growth & Transformations 13 Department of ISM, University of Alabama, 1992-2003
If X = 10, log10 Y = 0 + .25 10=
Y =4 8 12 X
3
2
1
log Y
Example 3
M25 Expon growth & Transforms 14 Department of ISM, University of Alabama, 1992-2003
Data
TransformationsData
Transformations
M25 Expon growth & Transforms 15 Department of ISM, University of Alabama, 1992-2003
Ex: Z-scores, inches to cm, oC to oF temperature
The basic shape of the data distribution does not change.
Linear transformations of Y and/or X
do not affect r.
do not change the pattern of the relationship.
M25 Expon growth & Transforms 16 Department of ISM, University of Alabama, 1992-2003
transform a skewed distributioninto a symmetric distribution,
straighten a nonlinear relationshipbetween two variables,
remove non-constant variance,
Nonlinear transformations can be used to:
M25- Growth & Transformations 17 Department of ISM, University of Alabama, 1992-2003
Lesson Objectives: Learn how to recognize whena straight line is NOT the best fitthe pattern of the data.
Learn how to transform one or both of the variables to create a linear pattern.
Learn to use the transformed model to get estimates back in terms of the original Y variable.
M25 Expon growth & Transforms 18 Department of ISM, University of Alabama, 1992-2003
What do we do if the relationship between Y
and X is not linear?
Always scatterplot the data first!
If the relationship is linear, then the model may produce reasonable estimates.
M25- Growth & Transformations 19 Department of ISM, University of Alabama, 1992-2003
“Curved lines” can be straightened out by changing the form of a variable:
1.1. Replace “Replace “XX” with “” with “square root of square root of XX””
2.2. Replace “Replace “XX” with “” with “log log XX””
3.3. Replace “Replace “XX” with “” with “1/1/XX”, its inverse.”, its inverse.
Each step Each step downdown this list this list increasesincreasesthe “change in the bend of the line.”the “change in the bend of the line.”
M25- Growth & Transformations 20 Department of ISM, University of Alabama, 1992-2003
““New New XX ” = ” = XX
ppp = 1p = 1
p = .5p = .5
p = -1p = -1
p = #p = #
p = 2p = 2
Square root
Inverse or reciprocal
logarithm
Changing the power, changes the bend:Changing the power, changes the bend:
Each step Each step downdown this list this list increasesincreasesthe “change in the bend of the line.”the “change in the bend of the line.”
M25- Growth & Transformations 21 Department of ISM, University of Alabama, 1992-2003
X
X
ln X
1/X
X
X
ln X
1/X
YY
YY
ln Yln Y
1/Y1/Y
Y
Y
ln Y
1/Y
X
Y
Original patternOriginal pattern
Original patternOriginal pattern Original patternOriginal pattern
YY = a + b = a + b11X + bX + b22XX22
Rules of Engagement
Original patternOriginal pattern
b2 > 0
b2 < 0
or
M25- Growth & Transformations 22 Department of ISM, University of Alabama, 1992-2003
Y = Federal expenditures on social insurance, in millions. X = Year