Introducing Exponentially Weighted Averages
- Let's say we have some temperature data :
- Then our exponentially weighted averages would look like:
- Which can be simplified to:
- Here, our hyperparameter
- Here, represents the temperature value
- Here, represents the weighted average of the temperature value
Defining Exponentially Weighted Averages
- Exponentially weighted averages are sometimes referred to as exponentially weighted moving averages in statistics
- The general formula for an exponentially weighted average is:
Interpreting the Parameters
- We can think of as an average of previous days
- Specifically, we can use whatever units of time (not just days)
- Roughly, looks at previous units of time
- Roughly, looks at previous units of time
- Roughly, looks at previous units of time
- Small values of provide us with a very wiggly curve
- Large values of provide us with a smooth curve
- Large values of also cause the curve to shift rightward
- This is because we're averaging over a larger window of values
- In other words, a large indicates we're adapting slowly to changes in our data
- This is because large values are giving more weight to previous values rather than more recent (or current) values
What is Exponential about the Weighted Averages?
- The data points further away from our current value become exponentially less important
- This exponential decay is captured by the weights
- We can rewrite the equations for our example data in the following steps:
- As previously stated, we roughly look at the previous units of time when
- Here, we can see roughly becomes equal to when
- In other words, we're saying temperatures that are , , or more days away from the current day don't have much influence on our current temperature
Advantages and Disadvantages
-
An advantage of using exponentially weighted averages is the performance boost
- If we were to average values using a moving window, we would need to save the values and averages of previous days
- By averaging values using exponential weights, we only need to save the current in memory
-
A disadvantage of using exponentially weighted averages is the decrease in accuracy
- If we were to average values using a moving window, we could accurately average all of the previous days
- By averaging values using exponential weights, we can only look at the previous
Describing Bias Correction
- By setting , we add some degree of bias to our model
- Since are all based on , then the earlier values of will be slightly smaller than expected
- As increases, this bias will become negligible
- However, we should still correct for this bias, since earlier values of will be underestimated
- We can do this by transforming each term:
tldr
- Exponentially weighted averages are sometimes referred to as exponentially weighted moving averages in statistics
- The general formula for an exponentially weighted average is:
- We can think of as an average of previous days
- Specifically, we can use whatever units of time (not just days)
- Roughly, looks at previous units of time
- Roughly, looks at previous units of time
- Roughly, looks at previous units of time
References
Previous
Next