Download - 'Sales Forecasting' by Scandinavian Institute of Business Analytics SCANBA

Transcript

Sales Forecastingonline course script (without examples)

Scandinavian Institute of Business Analytics SCANBAhttp://online.scanba.org/courses/sales-forecasting

What Forecasting Is ?

A sales forecast, like a weather forecast is an educated guess at what the future may bring. You can build your forecasts for anything from the weather to stock market futures. You can go about making these predictions all sorts of ways: making your best guess; compiling and merging other people’s guesses; or you can even forecast based on your dreaming.

There are some inexperienced decision-makers in business who have no faith in sales forecasting. People, who have had no real experience with forecasters, seem to imagine them as some combination of a weather forecaster and a fortuneteller with a crystal ball. Forecasting is a not a magic. Forecasting is a solid math!

What Forecasting Is ? (continued)The truth is, real business forecasting uses quantitative data collection methods, mathematics, and logical reasoning, there is very little guesswork involved. Your historical data can be used to make accurate predictions about what will happen in the future, allowing you to order the appropriate amount of stock, hire enough employees, and ensure your business runs smoothly. The financial gains that can be achieved with business forecasting are real. With the help of Excel, you can use your historical data to make predictions about the future. By looking at your data from the past, you can extrapolate trends that will allow you to make forecasts that are accurate and trustworthy. These forecasts are useful in all areas of business from sales, to marketing and management,. With your new knowledge on forecasting, you are on your way to making better business decisions.

Collect Your Data

Before you can start forecasting, you need to collect your data. For your first forecast, you need to have the data for at least one year of revenues, but if you have data from further back, your forecasts will be even more accurate. Other data you might find helpful for creating forecasts would be tax statements, employee pay rolls, order and inventory records.

Once you have your data collected, you can start creating your first forecast with Excel.

When using Excel, you have to enter your data in the form of a list. There is nothing mysterious about an Excel list; it is like a simple table.

Collect Your Data (continued)When you start Excel, you will see a blank worksheet. This worksheet consists of columns and rows. You will enter your data into these columns and rows based on three rules.

Rule number one: ‘Separate Variables into Columns’. You have to keep different variables in different columns. For example, you can put sales dates in the first column, revenue in the second column, sales representative names in the third, product in the fourth, and so on.Rule number two: ‘Date Goes First’. Once you decide on which variable to place in each row, you will use the first row to label your variables. For example, you might put “Sales Date” in the first row of column A.Rule number three: ‘Each Row is a Record’. You have to keep different records in different rows. When it comes to recordings sales information, it is best to keep each row as a separate period of time. For example, you could put information about sales that were made on April 10 in one row, and information about sales that were made on April 11 in another row. Depending on the scale you want to look at, you can also put individual sales in each row.

What you are doing here is “ordering your data.” You are telling Excel how much you sold in each period. That is why you want to enter your data in chronological order: by day, month, and year. Because you will be forecasting into the future, your data should be ordered in ascending chronological order: your oldest data will be at the top and your newest will be at the bottom.

BaselineIf you want to forecast the future, you need to get a handle on what has happened in the past. So, you will always start with what is called a baseline. This is your history, your revenue and sales numbers, order history, and so on, compiled into comparable periods. By lining up comparable sets of data, we can start to get an idea of what trends have happened in the past and what the future may hold.

Some examples of baselines could include total monthly revenues from year 1 to year 3, which could be used to make a forecast for next month’s revenue; or number of units sold weekly from the beginning of the year through the end of the year, which could help you forecast next week’s potential sale numbers.

Data arranged like this is sometimes called a time series, but in this course, we are using the term baseline.

Forecasting PeriodWhen you start with your forecast, you have to decide what period you want to cover.Forecasting sales on a daily basis is generally not necessary, unless you are forecasting for an ‘annual sale’ day. If your company is like the most, you will need a bigger picture. You will need a longer period for your forecast if you want to use it to plan your inventory levels, make decisions about number of salespeople to hire, and to figure out what your expected revenue will be.

You will need to match your selected period with your reasons for forecasting. Typical periods are a month, a quarter, or a year.

For ordering inventory, you may want to forecast your sales for next month. For estimating earnings, you may want to forecast your sales for the next quarter. For making hiring decisions, you may want to forecast your sales for next year.

Moving Average: Setting Up

The fundamental idea for sales forecasting is that market forces push your sales up or down. When you average your sales results from month to month, quarter to quarter, or year to year, you can get a better idea of the long-term trend that is influencing your sales results.A moving-average forecast for a given time period involves previous periods. For example, you find the average sales results of the first three months of your data set. Then you find the average of the next three-month period and so on. The resulting chart is your moving average that is often called a moving average forecast. Now, you can get an idea of the general direction that your sales are taking. With the moving average, you can forecast your sales one period ahead.Before proceeding with the sales forecasting, you need to walk through the short checklist.First, you want to select the right number of periods. If you use too few, the forecasts will respond to random errors in the baseline that you want to smooth out. If you use too many, the forecasts lag behind real changes in the level of the baseline — maybe too far for you to react effectively.Second, make sure to use the same number of actual observations in

calculating each moving average. If the first moving average that you have uses three periods from the baseline, then all the moving averages in your forecast need to use three periods.Moving averages work very well with stationary baselines whose levels do not increase or decrease much over a long period. You can use moving averages with baselines that trend up or down, but you should usually detrend them first. Later, we will show how to detrend the baseline.How do you distinguish a stationary baseline from one that is trending up or down? This baseline certainly looks stationary. It has spikes, peaks, and valleys, but overall the baseline does not appear to trend up or down. On the other hand, this baseline is clearly trends up.However, sometimes it is not entirely clear whether it is stationary or trended. We will give you a hint. Usually, if you cannot instantly recognize the trend in your baseline then, most likely, there is no trend. Do not stare at your chart for too long!

Noise CancelationEvery data set is a mix of signal and noise. Signal usually carries the information that we care about. Noise is simply the discrepancy between the signal and the actual results. How do you identify that signal? The theory says that over time, some special and unpredictable events, which constitutes the noise, averages out. Moving averages try to get the noise to cancel itself out in the baseline, and emphasize the signal.

Where does all of the noise come from? There are many more sources of noise than of signal. Every one of your customers, every one of your sales representatives, your production facilities, your distribution channel, possibly your customers’ customers, is a source of noise that drags your actual results from the signal.

You never see the true values of the signal and the noise in practice, but the best you can really do is:• Calculate a moving average using your actual results;• Treat the moving average as if it were the signal — this is the whole point behind

getting moving averages;• And, treat the difference between the actuals and the moving average as if it were

the noise.

Tracking and Smoothing

Choosing the right number of baseline values is a balancing act. You are trying to achieve the appropriate mix of reacting to changes in the level of the baseline (also called tracking) and letting errors average out (also called smoothing).The number of baseline values you include in each moving average affects how rapidly the moving average reacts to changes in the baseline. In other words, the fewer the baseline values you include in each moving average, the faster it reacts. Here the moving average curve has a length of 2 periods. The curve reacts fast to the changes in the baseline. Probably too fast to cancel the noise. On this chart, the moving average curve has a length of 5 periods. The curve is much smoother and looks more like a signal rather than noise.As you can see, the moving average curve demonstrates different tracking and smoothing behavior depending of the number of included periods. Remember to keep the balance between the tracking and smoothing power. The best moving average curve has a minimum difference with the base line, measured as sum of squared differences over all periods. With time, you will master the skill of distinguishing the noise from the signal in your business.

TrendsOnce you have your baseline you will be able to track any trends. A trend is the tendency of the level of a baseline to rise, or fall, over time. When forecasting future sales, a trend line will indicate how well the gradual growth in revenues tracks against the dates when the revenues were recognized. Generally, the greater the incline in the trend line, the stronger the relationship between the time period and the revenueRegardless of the direction of the trend, rising or falling, the fact that a trend exists can cause problems for your forecasts in some contexts — but there are ways of dealing with those problems. For instance, over the course of a year, your baseline might rise and fall on a seasonal basis. Perhaps you sell a product whose sales rise during warm weather and fall during cold. If you can see roughly the same pattern occur within each year, over a several-year period, you know that you are looking at seasonality. You can take advantage of that knowledge to improve your forecasts.

Understanding correlations

Correlation is a fundamental part of forecasting. You can do forecasting without knowing a thing about correlation, but you handicap yourself if you do not bother. Correlations are key to understanding forecasts, and they play an important part in diagnosing how well your forecasts work. Better yet, they are easy to understand.The first thing you need to understanding correlation is two variables. Let us start by assuming those variables are people’s height and weight. You know just from general life experience that the taller a person is, the more that person tends to weigh. It is not anything like one for one; however, you know that there is a strong tendency for height and weight to go together. Imagine you have data on a people height and weight for a dozen of strangers. You used that data to plot a chart. The points on the chart that are higher up the vertical axis also tend to be farther along the horizontal axis. These data points do not lie directly on a

straight line, but you can imagine one running through the middle of the data. Once you have your trend line set, you can make some statements about the relationship between two variables. The closer those points come to lying on the imaginary straight line, the stronger the relationship between the two variables.You can express the strength of the relationship with a number. It turns out that, because of the way it is calculated, the number must be between minus one and plus one. That number is called the correlation coefficient.If the correlation coefficient is positive, then the imaginary straight line runs from the lower left to the upper right. If the correlation coefficient is negative, then the line runs from the upper left to the lower right.The closer the correlation coefficient is to plus one or minus one, the stronger the relationship. The closer it is to zero, the weaker the relationship.

The R-squared coefficient, called coefficient of determination, is the square of the correlation coefficient. R-squared measures how much variation in one variable is attributable to the other variable.Using Excel, you can calculate the correlation coefficient between two variables very easily. Just use the CORREL function, with two ranges of data values as its arguments.

Regression. The Formula.Now that you know some of the fundamental principles necessary for forecasting, how do you do it? You can use a regression formula. Regression is a standard technique in forecasting.When you use regression to make a forecast, you are relying on one variable to predict another. The idea behind regression is that one variable has a relationship with another variable. Suppose your company sells consumer products. It is a good bet that the more advertising you do, the more you will sell. At least it is worth checking out whether there is a relationship between the size of your advertising budget and the size of your sales revenue. If you find that, there is a dependable relationship — and if you know how much your company is willing to spend on advertising — you are in a good position to forecast your sales.Here is the regression formula for your forecast.Sales is called ‘response’, or ‘dependent variable’. ‘Advertising is called ‘factor’, or ‘independent variable’‘a’ is the regression coefficient of factor ‘Advertising’‘b’ is a constant , often called ‘intercept’ However, regression does not work well with baselines that have sudden and prolonged changes in level. Also, mathematics of regression requires that you have more time periods in your baseline than variables in your forecast. The rule of thumb is to have at least 10 records per variable. For example, if you are using 3 predictors, a baseline needs to be at least 30 periods long.

Seasonality

Making sure you understand seasonality, will reduce forecasting mistakes. A seasonal baseline is a baseline that rises and falls regularly. For example, swimsuits have higher sales revenue during summer and lower sales revenue during winter.

For accurate forecasting, you have to manage seasonality, and know the difference between a cycle and a seasonal pattern. A cycle is different from a seasonal pattern because it often covers more than one year. Cyclical baselines rise and fall but not necessarily on a regular basis. A good example is a stock market index cycle as it is often related to recessions.

Forecasting Seasonal SalesThe method for forecasting seasonal sales is called exponential smoothing. Exponential smoothing, is a kind of modified moving average. It uses parameters called a smoothing constant and a damping factor. The smoothing constant and the damping factor always add up to one. If you know one of them, you know the other. Imagine you are working with a baseline built with monthly data.The baseline starts in January. The smoothing constant you are using is zero point three. The blue curve is your exponential smoothing forecast. In contrast with moving average, the exponential smoothing enables you predicting a season ahead, not just one period. In the Excel example, you will learn how to do this.For now, let us follow the exponential smoothing process step by step.Watch carefully, there is no magic. We have the baseline that start in January. Here, the smoothing constant is zero point

three and the damping factor is, therefore, zero point seven.Then the forecast for April would be:zero point three times March actual plus zero point seven times March forecastWhat’s the March forecast? It is:zero point three times February actual plus zero point seven times February forecastOr, another way to present the equation:April forecast equal to zero point three times March actual plus zero point seven times zero point three times February actual plus zero point seven in a power of two times January actualSee the final term in the last equation? It has an exponent in it: The value zero point seven is squared. If the baseline had been longer, the equation would have had the term zero point seven in a power of 3 times December actual, or the term zero point seven in a power of four times November actual, and so on. That is why it is called exponential smoothing. The farther back you go toward the start of the baseline, the larger the

exponent for the damping factor. And because you’re raising a fraction (in this example, zero point seven) to higher and higher powers, the contribution made by older actuals gets smaller and smaller.Naturally, this is how things should be. The farther away a baseline value is from the present day, the smaller you expect the lingering influence to be.You have to keep in mind that the higher the smoothing constant is, the more quickly the forecast tracks the baseline. And, the lower the smoothing constant is, the slower the tracking and the smoother look have the forecast series.When deciding on a value for the smoothing constant, it is a good idea to use some sort of a yardstick, to compare the results you get using different constants. The usual method to decide on the smoothing constant is to minimize the forecast errors you get with the different constants.

Seasonality and TrendIf you see seasonality and trend in your sales data then the first thing you have to do is to separate this two effects. How you will do that? You need to detrend your data. ‘Detrend’ means removing the trend effect form the data. To detrend your baseline, you need to find the trend, construct the regression equation for the trend and then subtract the values calculated with the equation from your original baseline. For that, you can create two new variables.

Let us call one variable ‘Trend’ and the other ‘Seasonality’. As we said, the ‘Trend’ variable is a result of your regression analysis. You can use the regression formula to calculate the ‘Trend’ variable value. Then, you need to subtract the ‘Trend’ variable from the sales data. The result of the subtraction is the new ‘Seasonality’ variable.After you split your sales data into Seasonality and Trend variables, you can use exponential smoothing to forecast seasonal effect of your sales. For this, use only one Seasonality variable, ignoring the Trend variable, and proceed with forecasting only seasonal sales effect using the exponential smoothing technique that we studied earlier. Finally, create variable ‘Forecast’ as a sum of the ‘Trend’ variable and your seasonality forecast.

That is it! Now you know how to forecast sales with seasonality and trend patterns in the baseline.

Using more than one predictor variable So far, we have given you a look at what is called simple regression: using the relationship between two variables and forecasting one of them. Actually, nothing holds you from using two, three, four, or any other number of predictor variables at once. This is known as multiple regression. The multiple regression uses more than one predictor variable to forecast another variable, such as sales revenues.Suppose you have three baselines: monthly sales, monthly advertising budget, and the number of sales representatives working for you during each month. In this case, the regression equation is different from the simple regression equation that we studied earlier. In the simple regression example, we considered only one factor – the advertising budget. Now the equation has two factors, and, potentially, can have even more, depending on the number of variables you want to study. Here is an example of a multiple regression equation with two predictors: the advertising budget and the number of sales representatives.

The coefficients a1 and a2 are the regression coefficients, and b is an intercept, or simply ‘a constant’. With the multiple regression, you can do various kinds of analysis. For example, you can compare relative effects of your variables. If a2 is much greater than a1 then you can say that the number of sales representatives has higher impact on your sales than the advertising budget. Of course, in drawing conclusions you have to mind the relative value of your variables and your coefficient. Good practice is to normalize your variables before the regression analysis, so, that the variables you are using where of the same scale.

Accuracy MattersConsidering the signal and noise concept, you can improve your sales forecast accuracy. Note that the farther out into the future you forecast, the less accurate your prediction. This is always so. However, you can estimate the accuracy of your forecast.For that, you can use the coefficient of determination, known as R-squared. The R-squared value shows the percentage of the variation in your factors that you can attribute to your sales forecast. The higher the R-squared is, the better the job your predictor variables are doing as forecasters. R-squared can never be negative, because it is the square of the correlation coefficient. And, since the maximum value of a correlation coefficient is one, R-squared itself can never be greater than one. In most marketing and sales applications, values of R-squared are generally near zero point six or above. So, try keeping it greater than zero point six to be confident in your forecast accuracy.The second term you need to know is

‘confidence interval’. The confidence interval is solidly linked with another statistical term ‘standard error’ or ‘sigma’. The confidence interval and sigma also reflects the accuracy of your forecast. Why use so many terms? Forecasters usually speak with each other in statistical language but they do not speak so with the management. When you will be presenting your forecast data, you may like to use confidence intervals instead of R-squared values. With that, you can say the phrase like ‘we forecast the sales for the next month of this value, plus or minus this value’. In this phrase, ‘plus or minus’ stands for your confidence interval. You are ‘confident’ that the forecast will be within that range. The degree of your confidence is related to the number of ‘sigma’ values that fit within that interval. For example, your regression analysis report has standard error values in it. If you go up and down by two standard errors from any forecast, you will bracket that forecast within two numbers. Then, you can

be ninety-five percent confident that an actual observation will be between those two numbers. ‘ninety-five percent confident’ means that if we would live the next month over and over again and record the sales results, then ninety-five percent of results would be within two standard errors of the forecasted sales.Do not expect getting used to these terms immediately. However, now when you will see the notion ’ninety-five percent confidence interval’ you will have a flavor of what is it.Lastly, remember, it is never a good idea to accept a computer-generated forecast or any sort of analysis out of the box. You need to look at some of the underlying statistics, like R-squared and confidence intervals, to judge whether the forecast makes sense or not.

Building confidenceForecasting can be a tricky business. Even if you do everything right, you can wind up with a forecast that completely misses the mark. Since forecasting is not just math, there are many other components, human factors, the economy, the weather, technology, that can conspire against you and make your forecast look bad. Customers make new choices, product lines change, marketing strategies change, pricing strategies change, and so on are just some of the reasons for mistakes that are beyond your control, or that you should be able to control, or manage, for more accurate forecasting. Taking all of that into account, you just cannot expect to your forecasts to be precise. The good news is market conditions change gradually most of the time. The forecasting tools consider these gradual changes. If you learned the course material well you can be confident about your sales forecasts.

With SCANBA, you already know more than others!

Pass the exam at the end of the online course and receive your certificate fromScandinavian Institute of Business Analytics SCANBA

1. Please, correctly answer at least 6 of 10 exam questions

2. Send the course title and the answers to [email protected]

Please provide your name as you want it to appear on the certificate

and your email.

To receive your SCANBA Certificate:

Anti-Crisis Analytics: Business Analytics That Helps Before, During, and After a Crisis

http://www.amazon.com/Anti-Crisis-Analytics-Business-Before-During/dp/151200930X/

Evolution forces companies to search for new means of competition. Information technology, management science, and process knowledge are no longer enough to differentiate your business and stay competitive. Business executives often suffer from poor forecasts, insufficient data, and misleading advice that directs them towards imprudent decisions. Eventually, they find their businesses unprepared for yet another crisis and they ultimately fail.

This book is about business analytics - a new competitive advantage for companies. In it, Kuandykov describes the methods that will help your business stay ahead of its rivals, foresee future crises, survive them, and move on after them. The book is written in a plain language and is aimed at a broad audience. Readers will enjoy its fresh view on business analytics methods, its real world examples, and its useful hints and ideas for their work. The book is sure to be an invaluable resource for a broad range of business disciplines.