Children's Mercy Hospital
Find a Doctor | Press Room | Careers | Directions & Locations

About Us | Contact Us | Giving to Children's Mercy
For Patients and Families   Your Child's Health   Clinical Services   |   For Health Care Professionals   Medical Education   Medical Research

When should you use a log transformation? (December 28, 2007).

Dear Professor Mean, How do I know whether it is appropriate to use a log transformation for my data?

There are no absolute rules here. A lot of the factors that go into whether you should use a log transformation are subjective and vary by the professional discipline.

The first question to ask is whether your data includes zeros and/or negative numbers. You cannot use a log transformation unless all your data values are strictly greater than zero. Some people try to adapt the log transformation in this situation by adding a constant to each data value, but this adds an extra element of arbitrariness to your data analaysis.

The second question to ask is if there is evidence that your data is skewed to the right. A histogram, a normal probability plot, or a boxplot will all give you an indication of this. Log transformations make the most sense for data that are skewed right, but this is not an absolute requirement.

Finally, ask yourself if there are any existing precedents to use a log transformation for this type of data. You don’t have to have a precedent, but as the saying goes, "there’s safety in numbers."

There are other considerations, of course, but these are the three biggest questions that you should ask.

This webpage was written by Steve Simon on 2007-12-28, edited by Steve Simon, and was last modified on 2008-07-08. Send feedback to ssimon at cmh dot edu or click on the email link at the top of the page. Category: Ask Professor Mean, Category: Modeling issues