Exponentially weighted average is a technique frequently used for time-series data. By taking the average sum of previous data, you could smooth your data series and get an approximate trend of it.
Consider you have a series of data points θ0,...,θn,
{vt=θtt=0vt=βvt−1+(1−β)θtotherwise
If we expand the second formula,
vt=βvt−1+(1−β)θt
=(1−β)θt+β(βvt−2+(1−β)θt−1)
=(1−β)θt+(1−β)βθt−1+(1−β)β2θt−2+...
To get a sense of how the weighted term changes as β gets closer to 1,
(1−ϵ)1/ϵ≈ϵ1⇒β1/(1−β)≈ϵ1
If we denote wi be the weight we assign to θi, then
wt−1/(1−β)=ϵ1wt
Therefore, we are approximately average over $1/(1-\beta)days when calculatingv_t$.