Linear Regression Models with Logarithmic Transformations









Appendix N: Derivation of the Logarithm Change of Base Formula

We take loga of each side of this equation which gives us loga by = loga x


MATHEMATICS 0110A CHANGE OF BASE Suppose that we have

So we get the following rule: Change of Base Formula: logb a = logc a logc b. Example 1. Express log3 10 using natural logarithms. log3 10 =.
Change of Base


6.2 Properties of Logarithms

The proofs of the Change of Base formulas are a result of the other properties studied in this section. If we start with bx logb(a) and use the Power Rule 
S&Z . & .


Logarithms – University of Plymouth

01/16/2001 7. Quiz on Logarithms. 8. Change of Bases ... following important rules apply to logarithms. ... Proof that loga MN = loga M + loga N.
PlymouthUniversity MathsandStats logarithms





Introduction to Algorithms

I can prove this using the definition of big-Omega: This tells us that every positive power of the logarithm of n to the base b where b ¿ 1
cs lect fall notes


Logarithms - changing the base

This leaflet gives this formula and shows how to use it. A formula for change of base. Suppose we want to calculate a logarithm to base 2. The formula states.
mc logs


Elementary Functions The logarithm as an inverse function

Each of these three properties is merely a restatement of a property of exponents. Smith (SHSU). Elementary Functions. 2013. 18 / 29. Changing the base.
. Logarithms (slides to )


Linear Regression Models with Logarithmic Transformations

03/17/2011 have other bases for instance the decimal logarithm of base 10. ... the change in Y for a one-unit change in X. No additional ...
logmodels





Lecture 4 : General Logarithms and Exponentials. For a > 0 and x

Using the change of base formula for Derivatives. From the above change of base formula for loga x we can easily derive the following differentiation.
. General Logarithm and Exponential


Logarithms

Examples. 6. 10. Exercises. 8. 11. Standard bases 10 and e log and ln using the rules of indices which tell us to add the powers 4 and 3 to give the new ...
mc ty logarithms


213005 Linear Regression Models with Logarithmic Transformations Linear Regression Models with Logarithmic Transformations

Kenneth Benoit

Methodology Institute

London School of Economics

kbenoit@lse.ac.uk

March 17, 2011

1 Logarithmic transformations of variables

Considering the simple bivariate linear modelYi=+Xi+i,1there are four possible com- binations of transformations involving logarithms: the linear case with no transformations, the linear-log model, the log-linear model

2, and the log-log model.X

Y XlogXY linear linear-log

^Yi=+Xi^Yi=+logXilogY log-linear log-log log ^Yi=+Xilog^Yi=+logXiTable 1: Four varieties of logarithmic transformations Remember that we are usingnaturallogarithms, where the base ise2.71828. Logarithms may have other bases, for instance the decimal logarithm of base 10. (The base 10 logarithm is used in the definition of the Richter scale, for instance, measuring the intensity of earthquakes as Richter =log(intensity). This is why an earthquake of magnitude 9 is 100 times more powerful than an earthquake of magnitude 7: because 10

9=107=102and log10(102) =2.)

Some properties of logarithms and exponential functions that you may find useful include: 1. log( e) =1 2. log(1 ) =0 3. log( xr) =rlog(x) 4. log eA=A

With valuable input and edits from Jouni Kuha.

1The bivariate case is used here for simplicity only, as the results generalize directly to models involving more than

oneXvariable, although we would need to add the caveat that all other variables are held constant.

2Note that the term "log-linear model" is also used in other contexts, to refer to some types of models for other kinds

of response variablesY. These are different from the log-linear models discussed here. 1

5.elogA=A

6. log (AB) =logA+logB 7. log (A=B) =logAlogB

8.eAB=€eAŠB

9.eA+B=eAeB

10.eAB=eA=eB

2 Why use logarithmic transformations of variables

Logarithmically transforming variables in a regression model is a very common way to handle sit- uations where a non-linear relationship exists between the independent and dependent variables. 3 Using the logarithm of one or more variables instead of the un-logged form makes the effective relationship non-linear, while still preserving the linear model. Logarithmic transformations are also a convenient means of transforming a highly skewed variable into one that is more approximately normal. (In fact, there is a distribution called thelog-normal distribution defined as a distribution whose logarithm is normally distributed - but whose untrans- formed scale is skewed.) For instance, if we plot the histogram of expenses (from the MI452 course pack example), we see a

significant right skew in this data, meaning the mass of cases are bunched at lower values:05001000 150020002500 3000

0200400 600

ExpensesIf we plot the histogram of the logarithm of expenses, however, we see a distribution that looks

much more like a normal distribution:3

The other transformation we have learned is thequadraticform involving adding the termX2to the model. This

produces curvature that unlike the logarithmic transformation that can reverse the direction of the relationship, some-

thing that the logarithmic transformation cannot do. The logarithmic transformation is what as known as a monotone

transformation: it preserves the ordering betweenxandf(x). 2 2468

02040 6080100

Log(Expenses)3 Interpreting coefficients in logarithmically models with logarithmic transformations

3.1 Linear model:Yi=+Xi+i

Recall that in the linear regression model, logYi=+Xi+i, the coefficientgives us directly the change inYfor a one-unit change inX. No additional interpretation is required beyond the estimate ^of the coefficient itself. Linear Regression Models with Logarithmic Transformations

Kenneth Benoit

Methodology Institute

London School of Economics

kbenoit@lse.ac.uk

March 17, 2011

1 Logarithmic transformations of variables

Considering the simple bivariate linear modelYi=+Xi+i,1there are four possible com- binations of transformations involving logarithms: the linear case with no transformations, the linear-log model, the log-linear model

2, and the log-log model.X

Y XlogXY linear linear-log

^Yi=+Xi^Yi=+logXilogY log-linear log-log log ^Yi=+Xilog^Yi=+logXiTable 1: Four varieties of logarithmic transformations Remember that we are usingnaturallogarithms, where the base ise2.71828. Logarithms may have other bases, for instance the decimal logarithm of base 10. (The base 10 logarithm is used in the definition of the Richter scale, for instance, measuring the intensity of earthquakes as Richter =log(intensity). This is why an earthquake of magnitude 9 is 100 times more powerful than an earthquake of magnitude 7: because 10

9=107=102and log10(102) =2.)

Some properties of logarithms and exponential functions that you may find useful include: 1. log( e) =1 2. log(1 ) =0 3. log( xr) =rlog(x) 4. log eA=A

With valuable input and edits from Jouni Kuha.

1The bivariate case is used here for simplicity only, as the results generalize directly to models involving more than

oneXvariable, although we would need to add the caveat that all other variables are held constant.

2Note that the term "log-linear model" is also used in other contexts, to refer to some types of models for other kinds

of response variablesY. These are different from the log-linear models discussed here. 1

5.elogA=A

6. log (AB) =logA+logB 7. log (A=B) =logAlogB

8.eAB=€eAŠB

9.eA+B=eAeB

10.eAB=eA=eB

2 Why use logarithmic transformations of variables

Logarithmically transforming variables in a regression model is a very common way to handle sit- uations where a non-linear relationship exists between the independent and dependent variables. 3 Using the logarithm of one or more variables instead of the un-logged form makes the effective relationship non-linear, while still preserving the linear model. Logarithmic transformations are also a convenient means of transforming a highly skewed variable into one that is more approximately normal. (In fact, there is a distribution called thelog-normal distribution defined as a distribution whose logarithm is normally distributed - but whose untrans- formed scale is skewed.) For instance, if we plot the histogram of expenses (from the MI452 course pack example), we see a

significant right skew in this data, meaning the mass of cases are bunched at lower values:05001000 150020002500 3000

0200400 600

ExpensesIf we plot the histogram of the logarithm of expenses, however, we see a distribution that looks

much more like a normal distribution:3

The other transformation we have learned is thequadraticform involving adding the termX2to the model. This

produces curvature that unlike the logarithmic transformation that can reverse the direction of the relationship, some-

thing that the logarithmic transformation cannot do. The logarithmic transformation is what as known as a monotone

transformation: it preserves the ordering betweenxandf(x). 2 2468

02040 6080100

Log(Expenses)3 Interpreting coefficients in logarithmically models with logarithmic transformations

3.1 Linear model:Yi=+Xi+i

Recall that in the linear regression model, logYi=+Xi+i, the coefficientgives us directly the change inYfor a one-unit change inX. No additional interpretation is required beyond the estimate ^of the coefficient itself.
  1. log base change rule proof
  2. logarithm base switch rule proof