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.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.