SciPy

scipy.special.inv_boxcox

scipy.special.inv_boxcox(y, lmbda) = <ufunc 'inv_boxcox'>

Compute the inverse of the Box-Cox transformation.

Find x such that:

y = (x**lmbda - 1) / lmbda  if lmbda != 0
    log(x)                  if lmbda == 0
Parameters
yarray_like

Data to be transformed.

lmbdaarray_like

Power parameter of the Box-Cox transform.

Returns
xarray

Transformed data.

Notes

New in version 0.16.0.

Examples

>>> from scipy.special import boxcox, inv_boxcox
>>> y = boxcox([1, 4, 10], 2.5)
>>> inv_boxcox(y, 2.5)
array([1., 4., 10.])

Previous topic

scipy.special.boxcox1p

Next topic

scipy.special.inv_boxcox1p