DATA Step, Macro, Functions and more

Why take the log transformation of data

Reply
Contributor
Posts: 50

Why take the log transformation of data

[ Edited ]

hi,

Why do we do Transformation before data Analysis? Why should one take the log of the Distribution ?

 

 

Super User
Posts: 17,868

Re: Why take the log transformation of data


Prateek1 wrote:

hi,

Why do we do Transformation before data Analysis? 

 

 


You don't have to. 

PROC Star
Posts: 552

Re: Why take the log transformation of data

You don't have to log transform your data and in many cases you should not. 

 

But in some cases this can be convenient. In finance eg, you will often assume that prices are log normally distributed (which may or may not be true), which makes log(1 + r_i) normally distributed. This is neat becasue much of classic statistics assume normality.

Super Contributor
Posts: 336

Re: Why take the log transformation of data

Why: Because a time series has to be stationary (=time-invariant) to be modeled (with ARIMA). Stationarity includes variance stationarity.

Why log: Because it is easy and it is often able to stabilize the variance.

Super User
Posts: 10,516

Re: Why take the log transformation of data

Sometimes to reduce the effect of valid extreme values, the log will have smaller range and the transform less likely to have "excessive" influence on a model.

Super User
Posts: 3,112

Re: Why take the log transformation of data

Yet another - if you data contains an exponential growth trend then a log transformation will turn this into a straight line trend which can be easier to model.

Super User
Posts: 9,685

Re: Why take the log transformation of data

Because most of statistical mode need variable conform to Normal distribution, 
LOG it is to make it more like Normal distribution.
Ask a Question
Discussion stats
  • 6 replies
  • 269 views
  • 0 likes
  • 7 in conversation