hi,
Why do we do Transformation before data Analysis? Why should one take the log of the Distribution ?
@Prateek1 wrote:
hi,
Why do we do Transformation before data Analysis?
You don't have to.
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.
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.
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.
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.
Because most of statistical mode need variable conform to Normal distribution, LOG it is to make it more like Normal distribution.
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.