11.10 Simple Forecasting Method #2:  Mean Method (2024)

The mean method is a simple, but sometimes effective, approach to forecasting — as its name suggests, it involves finding the average of all previous observations and simply using that value to predict the value for the next observation.

This approach is straightforward, and completely free of fancy notation, but it actually captures quite a bit of underlying information. Think about using it to predict the number of runs a baseball team will score in its next game — what are some of the factors that influence this number? Good hitters would help to push that number upwards. If positive intangible factors like “good team chemistry” are present, then those will push the number upwards, too. Injuries to key players might push that number downward.

But how would we capture all the seemingly myriad factors that we would need to generate the prediction? The good news here is that we don’t have to overthink it! Since all of those factors in the paragraph above are already “baked in” to the game statistics from earlier in the season, we could use the mean method to predict something like the number of runs, or hits, that the team will score in their next game.

11.10 Simple Forecasting Method #2: Mean Method (1)

Simple Moving Average

When an analyst wishes to use the mean method for forecasting, but with only the most recent observations used as inputs, she may decide to use a moving average, which is sometimes referred to as a Simple Moving Average (SMA). An SMA is more often used for smoothing a time series to understand past movements, but it may also be used for forecasting.

When using a moving average for prediction, the analyst must decide on a k value (with k representing the number of periods) to use. The k value is also sometimes referred to as the window. Using a smaller window means that the prediction will be based on newer data, whereas a larger window means that older data will be included. A larger window also generally means that outliers will have less influence on the forecasted observations. Larger windows tend to generate smoother lines when the time series data is visualized.

In stock market analysis, a commonly-used window is 200 days. Viewers of CNBC will often hear the term “trailing moving average.” Such an average uses the most recent data point, and then moves backwards to a specified point to capture the data that will be used in the forecast.

To see an SMA in action, let’s suppose that among your group of six close friends, there is one member named Mary, who is habitually late.

The friends make a dinner reservation for 6:00 p.m., and by 6:10 p.m., five of you have arrived. From a sense of obligation, however, the group waits for Mary as they order rounds of water and garlic bread. By about 7:15 p.m., half the members of your group are contending with growling stomachs, and the restaurant staff is growling because your group is occupying valuable real estate, without ordering. Since the time that your punctual members arrived, entire other tables have ordered, eaten, paid, and left.

A few minutes later, at 7:22 p.m., Mary finally strolls in, acting like it’s no big deal. Frustrated, someone comes up with an idea: “What if we can predict Mary’s lateness, in minutes, and then just subtract that from the actual meeting time when we get together? If we can get that right, she might even be on time for our next event!”

11.10 Simple Forecasting Method #2: Mean Method (2)

Suppose we want to predict Mary’s arrival time for the next group event. If we just use the mean method, we’ll come up with:

(82 + 71 + 69 + 121 + 63 + 35 + 53 + 72 + 60 + 62 + 79 + 81 + 56 + 45) / 14 = 67.79

Let’s imagine, however, that on New Year’s Day, Mary makes a bold pronouncement: starting this year, she will change her ways. No longer will she keep her friends waiting; instead, she will be more mindful of punctuality, out of respect for others.

If we take Mary at her word, and we sincerely believe that she is making an effort to change her ways, we should consider using an SMA, rather than the entire dataset mean, for the next several outings.

A k-value of 5 means that our prediction will be based solely on the five most recent outings. All of these occurred before the New Year, so this data does not reflect the “New Year, New Mary” mentality. For the next event, we will predict her to be 64.6 minutes late, since:

(62 + 79 + 81 + 56 + 45) / 5 = 64.6

Lo and behold, Mary comes on time! Well, almost on time. She was just one minute late.

For the next time, we will predict her to be 52.4 minutes late. This is based on:

(79 + 81 + 56 + 45 + 1) / 5 = 52.4

Mary stays true to her pledge for the next event, arriving just two minutes late (which was earlier than most other members of the group!). Her SMA falls yet again, to:

(81 + 56 + 45 +1+2) / 5 = 37.0

The big advantage of an SMA, as opposed to the mean method, is the way it limits the scope of analysis. For some types of data, older records are less relevant to the current situation. With stock market analysis, we might prefer a 2oo-day SMA because we know that values from previous years are not important to today’s market. With Mary’s punctuality, a 5-period SMA helps us to reflect the fact that she has made a sincere and meaningful behavioral change. The exact k value to use is a judgment call made by the modeler. Longer k-values tend to be smoother, and are less impacted by outliers, whereas shorter k-values tend to be more reflective of recent observations.

Simple Moving Average: Python Implementation

We will now read in and view a dataset that contains information about the stock price of Turtle Town. Turtle Town, a Lobster Land competitor based in Connecticut, trades on the New York Stock Exchange.

11.10 Simple Forecasting Method #2: Mean Method (3)

We will start by plotting the closing prices for Turtle Town, as shown below:

11.10 Simple Forecasting Method #2: Mean Method (4)

With daily time series data, and a window of 5, we will get 5-day moving averages for Turtle Town’s closing price.

11.10 Simple Forecasting Method #2: Mean Method (5)

When we view the results of the 5-day rolling average function, we will not see results for any of the first four rows, because there have not yet been enough data points gathered for a five-day moving average calculation.

In the plot below, we will include both the daily closing price data and an overlay of the five-day moving average.

11.10 Simple Forecasting Method #2: Mean Method (6)

The orange line for the five-day moving average, and the blue line for the actual close, show very similar movement in the graph above.

11.10 Simple Forecasting Method #2: Mean Method (7)

Now, with a 50-day moving average, you will notice that the orange line starts much “later” in the series, since we cannot generate this statistic until the 50th day. Also, note how much smoother this moving average has become — since we’re using a longer time window, we’re getting further and further away from the up-and-down choppiness of the day-to-day price movements. Let’s try an even bigger number now!

11.10 Simple Forecasting Method #2: Mean Method (8)

The 200-day moving average is showing us an even more generalized look.

Finally, we will take a look at an expanding plot. We can create this graphic with the line of code shown below:

11.10 Simple Forecasting Method #2: Mean Method (9)

The plot shown above depicts the mean of all the closing prices up to the specific point of time shown on the x-axis. This plot shows that Turtle Town’s closing price rose across the time period. The very last point on the right shows the cumulative average for the entire dataset. Since it depicts a mean, an expanding plot’s y-axis value will become harder to change as more and more data points are included.

11.10 Simple Forecasting Method #2:  Mean Method (2024)

FAQs

What is the mean method of forecasting? ›

The mean method is a simple, but sometimes effective, approach to forecasting — as its name suggests, it involves finding the average of all previous observations and simply using that value to predict the value for the next observation.

What is the simplest forecasting method? ›

The straight-line method is one of the simplest and easy-to-follow forecasting methods. A financial analyst uses historical figures and trends to predict future revenue growth.

What is the simple mean average method of forecasting? ›

To get the simple moving average (SMA) you would divide the total sales from January – March by the number of periods, which in this case would be 3 (3 months), giving you a simple average number of sales per month. This number can be used to forecast the sales of the upcoming months or period.

What is the formula for forecasting? ›

Historical forecasting: This method uses historical data (results from previous sales cycles) and sales velocity (the rate at which sales increase over time). The formula is: previous month's sales x velocity = additional sales; and then: additional sales + previous month's rate = forecasted sales for next month.

What is the formula for the mean method? ›

The mean formula is given as the average of all the observations. It is expressed as mean = (sum of observations) ÷ (total number of observations).

How do you calculate mean forecasting error? ›

Mean forecast error is calculated as the average of the forecast error values. Forecast errors can be positive and negative. This means that when the average of these values is calculated, an ideal mean forecast error would be zero.

How to do simple forecasting? ›

How to do financial forecasting in 7 steps
  1. Define the purpose of a financial forecast. ...
  2. Gather past financial statements and historical data. ...
  3. Choose a time frame for your forecast. ...
  4. Choose a financial forecast method. ...
  5. Document and monitor results. ...
  6. Analyze financial data. ...
  7. Repeat based on the previously defined time frame.

How do you calculate simple average method? ›

In simple average method, issue price of materials are fixed at average unit price. Simple average is an average of price without considering the quantities involved. The average price is calculated by dividing the total of the rates of the materials in the stores by the number of rates of prices.

What is the simple average forecasting technique? ›

Average method

If we let the historical data be denoted by y1,…,yT y 1 , … , y T , then we can write the forecasts as ^yT+h|T=¯y=(y1+⋯+yT)/T.

What is a simple example of forecasting? ›

For example, a company might forecast an increase in demand for its products during the holiday season. As a result, it may decide to increase production before Christmas so that there aren't any shortages.

How do you calculate accurate forecast? ›

Mean Absolute Percentage Error (MAPE) is a common method for calculating sales forecast accuracy. It's calculated by taking the difference between your forecast and the actual value, and then dividing that difference by the actual value.

How do you calculate forecast value? ›

To determine the forecast value, all you need is the preceding forecast value, the last historical value, and the "alpha" smoothing factor. This smoothing factor weights the more recent historical values more than the less recent ones, so they have a greater influence on the forecast.

What does forecasting mean technique? ›

Forecasting is the process of making predictions based on past and present data. Later these can be compared (resolved) against what happens. For example, a company might estimate their revenue in the next year, then compare it against the actual results creating a variance actual analysis.

What is the mean forecast model? ›

Mean method

Here, the forecasts of all future values are equal to the average (or “mean”) of the historical data.

What are the methods of mean? ›

Mean is an arithmetic average of the data set and it can be calculated by dividing a sum of all the data points with the number of data points in the data set. It is a point in a data set that is the average of all the data points we have in a set.

What is the mean value method? ›

The Mean Value Theorem states that if a function f is continuous on the closed interval [a,b] and differentiable on the open interval (a,b), then there exists a point c in the interval (a,b) such that f'(c) is equal to the function's average rate of change over [a,b].

Top Articles
Latest Posts
Article information

Author: Prof. An Powlowski

Last Updated:

Views: 6175

Rating: 4.3 / 5 (64 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Prof. An Powlowski

Birthday: 1992-09-29

Address: Apt. 994 8891 Orval Hill, Brittnyburgh, AZ 41023-0398

Phone: +26417467956738

Job: District Marketing Strategist

Hobby: Embroidery, Bodybuilding, Motor sports, Amateur radio, Wood carving, Whittling, Air sports

Introduction: My name is Prof. An Powlowski, I am a charming, helpful, attractive, good, graceful, thoughtful, vast person who loves writing and wants to share my knowledge and understanding with you.