+ Reply to Thread
Results 1 to 6 of 6

Thread: log transformations

  1. #1
    Fortran must die
    Points: 43,368, Level: 100
    Level completed: 0%, Points required for next Level: 0
    noetsi's Avatar
    Posts
    6,368
    Thanks
    661
    Thanked 904 Times in 863 Posts

    log transformations




    This has confused me for years.

    Commonly in financial analysis you log Y or sometimes an X. I have never been sure if when you log Y you have to log a given X [or for that matter all X in the model]. Similarly I am not sure if you log a given X if you have to log Y.

    Another basic question.
    "The difference between genius and stupidity is that genius has its limits."

  2. #2
    TS Contributor
    Points: 13,337, Level: 75
    Level completed: 22%, Points required for next Level: 313
    Miner's Avatar
    Location
    Greater Milwaukee area
    Posts
    1,126
    Thanks
    33
    Thanked 393 Times in 352 Posts

    Re: log transformations

    Transformations of X can linearize the relationship with Y, but often do not change the distribution of error terms (i.e., does not correct heteroskedascity).
    Transformations of Y can linearize the relationship with X, and will change the distribution of error terms (i.e., can correct heteroskedascity).

    I base my decision on which to transform on whether I must correct for heteroskedascity or not. Log transforming both X and Y results in a stronger impact in linearizing the relationship. Note: This is strictly to linearize a relationship. In other cases the choice of log-linear versus log-log has a specific interpretation.

  3. The Following User Says Thank You to Miner For This Useful Post:

    noetsi (03-20-2017)

  4. #3
    Omega Contributor
    Points: 32,752, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Awards:
    Activity Award
    hlsmith's Avatar
    Location
    Not Ames, IA
    Posts
    6,411
    Thanks
    362
    Thanked 1,077 Times in 1,042 Posts

    Re: log transformations

    Miner is hitting on a couple of points, but I will add that in economics many of their variables are naturally exponential (e.g., exponential growth or exponential decay). So this is one reason why they are log happy. Secondarily, Miner almost mentions this, but they (economists) like presenting results on the relative scale instead of using values (e.g., percent increase instead of increase given a specific unit increase).


    Lastly, this will be redundant to Miner, you are just working to get the error distributions acceptable, so log y or log x or log them both.
    Stop cowardice, ban guns!

  5. #4
    Fortran must die
    Points: 43,368, Level: 100
    Level completed: 0%, Points required for next Level: 0
    noetsi's Avatar
    Posts
    6,368
    Thanks
    661
    Thanked 904 Times in 863 Posts

    Re: log transformations

    I take this from your answer miner that you can, depending on specific, need change X when you change Y [or change Y when you change X] but you do not have to. It will change the interpretation of the slope whichever you do.
    "The difference between genius and stupidity is that genius has its limits."

  6. #5
    TS Contributor
    Points: 13,337, Level: 75
    Level completed: 22%, Points required for next Level: 313
    Miner's Avatar
    Location
    Greater Milwaukee area
    Posts
    1,126
    Thanks
    33
    Thanked 393 Times in 352 Posts

    Re: log transformations

    In industrial statistics, we are just trying to develop a predictive model that we can used to optimize a response. Most of the time we do not have to interpret what the slope means. In other words we are after the mundane, practical application of the model, not for any ground-breaking, publishable research. In many ways, it makes my job much easier. If I can't meet an assumption, I can usually analyze it anyway, and try it out on the process to validate the results.

  7. #6
    Fortran must die
    Points: 43,368, Level: 100
    Level completed: 0%, Points required for next Level: 0
    noetsi's Avatar
    Posts
    6,368
    Thanks
    661
    Thanked 904 Times in 863 Posts

    Re: log transformations


    I don't publish either [my formal research and articles were in a non-quant field]. My focus is, except for time series, nearly entirely on relative impact of predictors or interpreting slopes.
    "The difference between genius and stupidity is that genius has its limits."

+ Reply to Thread

           




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts






Advertise on Talk Stats