This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / stats / _tukeylambda_stats / tukeylambda_variance

function

scipy.stats._tukeylambda_stats:tukeylambda_variance

source: build-install/usr/lib/python3.14/site-packages/scipy/stats/_tukeylambda_stats.py:43

Signature

def tukeylambda_variance(lam)

Summary

Variance of the Tukey Lambda distribution.

Parameters

lam : array_like

The lambda values at which to compute the variance.

Returns

v : ndarray

The variance. For lam < -0.5, the variance is not defined, so np.nan is returned. For lam = 0.5, np.inf is returned.

Notes

In an interval around lambda=0, this function uses the [4,4] Pade approximation to compute the variance. Otherwise it uses the standard formula (https://en.wikipedia.org/wiki/Tukey_lambda_distribution). The Pade approximation is used because the standard formula has a removable discontinuity at lambda = 0, and does not produce accurate numerical results near lambda = 0.

Aliases

  • scipy.stats._continuous_distns._tlvar