SciPy

scipy.special.inv_boxcox1p

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

Compute the inverse of the Box-Cox transformation.

Find x such that:

y = ((1+x)**lmbda - 1) / lmbda  if lmbda != 0
    log(1+x)                    if lmbda == 0
Parameters:
y : array_like

Data to be transformed.

lmbda : array_like

Power parameter of the Box-Cox transform.

Returns:
x : array

Transformed data.

Notes

New in version 0.16.0.

Examples

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

Previous topic

scipy.special.inv_boxcox

Next topic

scipy.special.owens_t