Intended for healthcare professionals

Research Methods & Reporting

Statistics Notes: Percentage differences, symmetry, and natural logarithms

BMJ 2017; 358 doi: https://doi.org/10.1136/bmj.j3683 (Published 16 August 2017) Cite this as: BMJ 2017;358:j3683
  1. Tim J Cole, professor1,
  2. Douglas G Altman, professor2
  1. 1Population, Policy and Practice Programme, Great Ormond Street Institute of Child Health, University College London, London WC1N 1EH, UK
  2. 2Centre for Statistics in Medicine, Nuffield Department of Orthopaedics, Rheumatology and Musculoskeletal Sciences, University of Oxford, Oxford OX3 7LD, UK
  1. Correspondence to: T J Cole tim.cole{at}ucl.ac.uk

Despite its wide use in statistics, the logarithmic transformation can make non-statisticians uncomfortable.1234 This is a shame because logarithms have very useful properties, including a secret not widely known even among statisticians.

The two familiar forms of logarithm are common logs, to base 10, and natural logs, to base e.1 Here we focus on natural logs (or “ln” for short), which have the following “natural” interpretation: if we take two numbers a and b, then the difference between their logs, ln(a)−ln(b), is the fractional difference between a and b. And multiplied by 100—that is, 100×ln(a)−100×ln(b)—it is the percentage difference between a and b.5

This value is slightly different from the conventional percentage difference, but it avoids the problems of asymmetry and non-additivity described in the accompanying Statistics Note.6 We show there that, on average, women are 7.7% shorter than men, yet men are 8.4% taller than women, based on mean heights of 177.3 cm for men and 163.6 cm for women.6 The log based percentage difference between them is

  • 100×ln(177.3)−100×ln(163.6)=8.04%

so men are 8.04% taller than women, and women are 8.04% shorter than men. Swapping the two changes the direction of the percentage difference but not its value—unlike the conventional percentage difference, it is a symmetric percentage difference.

A previous Statistics Note gave data on biceps skinfold thickness in patients with Crohn's disease or coeliac disease.4 The group means of the log transformed data were 1.44 and 1.14 log units, a difference of 0.30 (95% confidence interval −0.11 to 0.71). This difference, multiplied by 100, can be viewed as a symmetric mean percentage difference of 30% (−11% to 71%). So, on average, there is a 30% difference in biceps skinfold between the Crohn’s and coeliac patients. This is a simple and convenient way to summarise log transformed data that avoids the need for antilogs.1

The standard deviation of natural log transformed data is also problematic—what does it mean? By the same token it is a fractional standard deviation, similar to the standard deviation divided by the mean—that is, a form of coefficient of variation. Multiplying by 100 converts the log standard deviation to a coefficient of variation in percentage units.

In the biceps skinfold example, the standard deviations of the log values in the two groups were 0.49 and 0.52 respectively, equivalent to “coefficients of variation” of 49% and 52%. For comparison, the conventional coefficients of variation were rather larger, 51% and 56% respectively. This difference indicates that the data were closer to a log normal than a normal distribution.4

Regression analyses with log transformed outcomes are easier to report using the 100×ln transformation. Hyppönen et al used the transformation to demonstrate non-linearity in the relationship between serum IgE concentration and vitamin D status.7 They reported that, compared with the reference group with 25-hydroxyvitamin D (25(OH)D) blood level of 100-125 nmol/L, and adjusted for 11 other factors, IgE was 29% higher (95% CI 9% to 48%) for participants with 25(OH)D <25 nmol/L and 56% higher (17% to 95%) for those with 25(OH)D ≥135 nmol/L.

As another example, neonatologists measure weight gain in units of grammes per kg per day. This fractional growth rate, thousandths per day, can be estimated from the regression coefficient of 1000×ln(weight) on age. In the same way that 100×ln(height) measures height in symmetric percentage units, 1000×ln(weight) measures weight in symmetric thousandths of units.5

To summarise, the 100×ln transformation leads to comparisons on a modified percentage scale that is both symmetric and additive. Differences between group means are in percentage units; standard deviations are coefficients of variation in percentage units, and regression coefficients are also in percentage units. Cole5 has further examples. The approach is generally useful for exploring relationships with positive valued continuous outcome data, as are common in biochemistry and anthropometry.

References