Parameter for Yeo-Johnson transformation. See yeojohnson for
details.
dataarray_like
Data to calculate Yeo-Johnson log-likelihood for.
axisint, default: 0
If an int, the axis of the input along which to compute the statistic.
The statistic of each axis-slice (e.g. row) of the input will appear in a
corresponding element of the output.
If None, the input will be raveled before computing the statistic.
nan_policy{‘propagate’, ‘omit’, ‘raise’
Defines how to handle input NaNs.
propagate: if a NaN is present in the axis slice (e.g. row) along
which the statistic is computed, the corresponding entry of the output
will be NaN.
omit: NaNs will be omitted when performing the calculation.
If insufficient data remains in the axis slice along which the
statistic is computed, the corresponding entry of the output will be
NaN.
raise: if a NaN is present, a ValueError will be raised.
keepdimsbool, default: False
If this is set to True, the axes which are reduced are left
in the result as dimensions with size one. With this option,
the result will broadcast correctly against the input array.
where \(N\) is the number of data points \(x`=``data`\) and
\(\hat{\sigma}^2\) is the estimated variance of the Yeo-Johnson transformed
input data \(x\).
This corresponds to the profile log-likelihood of the original data \(x\)
with some constant terms dropped.
Added in version 1.2.0.
Array API Standard Support
yeojohnson_llf has experimental support for Python Array API Standard compatible
backends in addition to NumPy. Please consider testing these features
by setting an environment variable SCIPY_ARRAY_API=1 and providing
CuPy, PyTorch, JAX, or Dask arrays as array arguments. The following
combinations of backend and device (or other capability) are supported.