In statistics, a moving average (rolling average or running average) is a calculation to analyze data points by creating a series of averages of different subsets of the full data set. ... For example, it is often used in technical analysis of financial data, like stock prices, returns or trading volumes. Source: wikipedia
Forecast function returns a linear trend value.
In our examples, we found forecasts of the profit values in December 2020, 2021 and 2020 by linear regression using the given data from December 31st of 2010 to December 31st of 2019.