The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

when to know to which variables should the log transformation be applied ?

when to know to which variables should the log transformation be applied ?

0
Votes
1
Answer

In the practical example, why is the nonlinearity fixed just by logging the variable Y (price)? Would it improve if the other variables / features were also logged?

1 Answer

365 Team
0
Votes

Hi Marta,
The opposite mathematical concept of a logarithm is an exponent.
Therefore, when you are observing a relationship which is exponential, you can apply a log transformation to reach a linear relationship.
Alternatively, if you are observing a log transformation, you can apply an exponential transformation to reach a linear relationship.
Note that a linear regression requires a linear relationship and that is why we are trying to achieve it!
Best,
The 365 Team

thank you, however I’m still confused on how to identify the type of relationship existing between variables. My question is, when do you know to which variables should the log transformation be applied. Thank you in davance

5 months
×
LAST CHANCE
Ready to Learn Data Science?
50% OFF