BookmarkSubscribeRSS Feed
Prateek1
Obsidian | Level 7

hi,

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

 

 

6 REPLIES 6
Reeza
Super User

@Prateek1 wrote:

hi,

Why do we do Transformation before data Analysis? 

 

 


You don't have to. 

PeterClemmensen
Tourmaline | Level 20

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.

user24feb
Barite | Level 11

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.

ballardw
Super User

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.

SASKiwi
PROC Star

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.

Ksharp
Super User
Because most of statistical mode need variable conform to Normal distribution, 
LOG it is to make it more like Normal distribution.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 6 replies
  • 3883 views
  • 0 likes
  • 7 in conversation