Exactly one parameter: com, span, halflife, or alpha must be
provided.
Parameters:
com (float, optional) – Specify decay in terms of center of mass,
\(\alpha = 1 / (1 + com)\), for \(com \geq 0\).
span (float, optional) – Specify decay in terms of span,
\(\alpha = 2 / (span + 1)\), for \(span \geq 1\).
halflife (float, str, timedelta, optional) – Specify decay in terms of half-life,
\(\alpha = 1 - \exp\left(-\ln(2) / halflife\right)\), for
\(halflife > 0\).
If times is specified, the time unit (str or timedelta) over which an
observation decays to half its value. Only applicable to mean()
and halflife value will not apply to the other functions.
Divide by decaying adjustment factor in beginning periods to account
for imbalance in relative weightings (viewing EWMA as a moving average).
- When adjust=True (default), the EW function is calculated using weights
\(w_i = (1 - \alpha)^i\). For example, the EW moving average of the series
[\(x_0, x_1, ..., x_t\)] would be:
ignore_na (bool, default False) – Ignore missing values when calculating weights.
- When ignore_na=False (default), weights are based on absolute positions.
- When ignore_na=True, weights are based on relative positions.
adjust (bool) – Divide by decaying adjustment factor in beginning periods to account
for imbalance in relative weightings (viewing EWMA as a moving average).
ignore_na (bool) – Ignore missing values when calculating weights.
min_periods (int) – Minimum number of observations in window required to have a value
(otherwise result is NA).
adjust (bool) – Divide by decaying adjustment factor in beginning periods to account
for imbalance in relative weightings (viewing EWMA as a moving average).
ignore_na (bool) – Ignore missing values when calculating weights.
min_periods (int) – Minimum number of observations in window required to have a value
(otherwise result is NA).
bias (bool) – Use a standard estimation bias correction
min_periods (int, default 0) – Minimum number of observations in window required to have a value
(otherwise result is NA).
adjust (bool, default True) – Divide by decaying adjustment factor in beginning periods to account
for imbalance in relative weightings (viewing EWMA as a moving average).