Lably
Skip to content

Power transform

Family of functions to transform data

  • 7 min read
  • 6 chapters

Related on Lably

Through Statistics, Monotonic function and Exponentiation

Power transforms are used in multiple fields, including multi-resolution and wavelet analysis, statistical data analysis, medical research, modeling of physical processes, geochemical data analysis, epidemiology and many other clinical, environmental and social research areas.

Definition

The power transformation is defined as a continuous function of power parameter λ, typically given in piece-wise form that makes it continuous at the point of singularity (λ = 0). For data vectors (y1,..., yn) in which each yi > 0, the power transform is

yi(λ)={yiλ−1λ(GM⁡(y))λ−1,if λ≠0GM⁡(y)ln⁡yi,if λ=0

where

GM⁡(y)=(∏i=1nyi)1n=y1y2⋯ynn

is the geometric mean of the observations y1, ..., yn. The case for λ=0 is the limit as λ approaches 0. To see this, note that yiλ=exp⁡(λln⁡(yi))=1+λln⁡(yi)+O((λln⁡(yi))2) - using Taylor series. Then yiλ−1λ=ln⁡(yi)+O(λ), and everything but ln⁡(yi) becomes negligible for λ sufficiently small.

The inclusion of the (λ − 1)th power of the geometric mean in the denominator simplifies the scientific interpretation of any equation involving yi(λ), because the units of measurement do not change as λ changes.

Box and Cox (1964) introduced the geometric mean into this transformation by first including the Jacobian of rescaled power transformation

yλ−1λ.

with the likelihood. This Jacobian is as follows:

J(λ;y1,…,yn)=∏i=1n|dyi(λ)/dy|=∏i=1nyiλ−1=GM⁡(y)n(λ−1)

This allows the normal log likelihood at its maximum to be written as follows:

log⁡(L(μ^,σ^))=(−n/2)(log⁡(2πσ^2)+1)+n(λ−1)log⁡(GM⁡(y))=(−n/2)(log⁡(2πσ^2/GM⁡(y)2(λ−1))+1).

From here, absorbing GM⁡(y)2(λ−1) into the expression for σ^2 produces an expression that establishes that minimizing the sum of squares of residuals from yi(λ) is equivalent to maximizing the sum of the normal log likelihood of deviations from (yλ−1)/λ and the log of the Jacobian of the transformation.

The value at Y = 1 for any λ is 0, and the derivative with respect to Y there is 1 for any λ. Sometimes Y is a version of some other variable scaled to give Y = 1 at some sort of average value.

The transformation is a power transformation, but done in such a way as to make it continuous with the parameter λ at λ = 0. It has proved popular in regression analysis, including econometrics.

Box and Cox also proposed a more general form of the transformation that incorporates a shift parameter.

τ(yi;λ,α)={(yi+α)λ−1λ(GM⁡(y+α))λ−1if λ≠0,GM⁡(y+α)ln⁡(yi+α)if λ=0,

which holds if yi + α > 0 for all i. If τ(Y, λ, α) follows a truncated normal distribution, then Y is said to follow a Box–Cox distribution.

Bickel and Doksum eliminated the need to use a truncated distribution by extending the range of the transformation to all y, as follows:

τ(yi;λ,α)={sgn⁡(yi+α)|yi+α|λ−1λ(GM⁡(y+α))λ−1if λ≠0,GM⁡(y+α)sgn⁡(y+α)ln⁡(yi+α)if λ=0,

where sgn(.) is the sign function. This change in definition has little practical import as long as α is less than min⁡(yi), which it usually is.

Bickel and Doksum also proved that the parameter estimates are consistent and asymptotically normal under appropriate regularity conditions, though the standard Cramér–Rao lower bound can substantially underestimate the variance when parameter values are small relative to the noise variance. However, this problem of underestimating the variance may not be a substantive problem in many applications.

Sign in to keep reading

5 more chapters are free with a Lably account.

More in Statistics