Exponential moving average
The exponential moving average is a popular alternative to the simple moving average. This method uses exponentially decreasing weights. The weights for points in the past decrease exponentially but never reach zero. We will learn about the exp
and linspace
functions while calculating the weights.