Forecasting PDF
Forecasting PDF
Unit Introduction
Forecasting - one of the key elements of operations management. It tells us what
the customer will need at what time and in which quantity. It relates the
management functions of planning, organizing and controlling. Company serves
their customers and the society at large by producing various goods and services
in factories and plants. The market needs for such products are changing. And
their suppliers have to respond more quickly than ever before with product
delivery to survive. To do so, they have to place a higher emphasis on forecasting
to determine the demand level. Otherwise, if a firm produces less than the actual
demand, customers will go unsatisfied and if they produce more, unsold products
will pile up. Forecasting, done by using data from past events or through some
subjective judgment (like experience, guesses, hunches, etc.) and reduces
severity of any unexpected events. If firm knows how much to produce, it can
plan and organize operations accordingly. And if operations have been properly
planned and organized, control is easier and smoother. This is where forecasting
comes in. Thus forecasting also reduces the costs of adjusting operations in
response to unexpected deviations by specifying future demand. Furthermore it
helps improve the organization’s competitive edge. Keeping this entire in mind,
the following lessons are covered in this unit: Products and Forecasting;
Different Elements of Forecasting; and Different Approaches and Techniques of
Forecasting.
School of Business
Unit- 3 Page- 54
Bangladesh Open University
Lesson Objectives
After completing this lesson you will be able to:
Understand the meaning of forecasting and its importance
Identify the subjects of forecasting
Explain the factors that affect the product demand of forecasting
Discuss how to develop a workable forecasting system
Activity: Assume you want to start a garment business. Now, how the
forecasting techniques can help you to be successful in that business.
Subjects of Forecasts
A successful operation In making decisions, managers need to make inferences about the future in
plan must inference several subject areas. Such three relevant areas are technological developments,
about economic, business conditions, and the expected level of demand. With respect to these,
technical and demand
forecast.
organizations use three major types of forecasting in planning the future of their
operations. These are, economic, technological and demand forecasting. Figure
3.1.1 depicts these three different kinds of forecast in organizational setting:
Information from
Internal and External
Environment
Business
Operations
Figure 3.1.1: Forecasting and business operations Feedback
Unit- 3 Page- 56
Bangladesh Open University
Competing products
Status of Economy
Sales are influenced by demand and demand is influenced by a large number of
factors. One factor that influences demand is the status of the economy. As the
business cycle goes through the phases of depression, recovery, and boom,
demand shifts and changes accordingly (Figure 3.1.3). The following actions will
discuss these influential factors of the business cycle.
• Recession: The contractionary phase of the trade cycle which follows a peak
and ends with the trough. The term recession is generally reserved for the
When the economy mild version of this phase, unlike the slump, which is a severe version. If the
moves into recession, underlying growth rate of output (or income) is sufficiently positive, a
output and income fall
recession may be marked by a fall in the growth rate with no absolute fall in
resulting into a fall in
consumption and output. When the economy moves into recession, output and income fall
investment. resulting into a fall in consumption and investment. Tax revenues also begin
to fall and government expenditure on benefits begins to rise. Wage demands
are moderate as unemployment rises. Imports decline and inflationary
pressures ease.
• Depression: It is the severe downturn phase in the business cycle. Any
contractionary phase of the trade cycle could be called a depression but the
Economic activity is at a term is usually reserved for the most severe cases, such as the downturn in
low in comparison with output in the USA and Europe in particular which occurred in 1929 and the
surrounding years. years following (the great depression). Economic activity is at a low in
comparison with surrounding years. Mass unemployment exists, so,
consumption, investment and imports will be low. There will be few
inflationary pressures in the economy and prices may be falling.
• Recovery: The expansionary phase of the trade cycle during which output
begins to increase. Recovery follows a trough and ends with the peak. In this
period national income and output begin to increase. Unemployment falls.
Consumption, investment and imports begin to rise. Workers feel more
confident about demanding wage increases and inflationary pressures begin
to mount.
• Boom: The expansionary phase of the trade cycle. The term is usually only
applied to particularly fast rates of upward divergence from the secular trend.
National income is high during boom period. It is likely that the economy
will be working at beyond full employment. Consumption and investment
expenditure will be high. Tax revenue will be high. Wages will be rising and
profits increasing. The country will be sucking in imports demanded by
consumers with high incomes and businesses with full order books. There
will also be inflationary pressures in the economy.
Income
Peak/boom
Recovery
Recession
Trough/depression
Time
• Inflation: Inflation is a sustained rise in the general price level. The inflation
may be Demand pull or Cost push. Demand-pull inflation is caused by excess
Unit- 3 Page- 58
Bangladesh Open University
Government actions and reactions like careful use of monetary (i.e. determining
supply of money and interest rates) and fiscal policies (i.e. taxation and spending)
are intended to mitigate the severity of the variations of business cycle. However
constant change in demand is still a fact of life in much of the business world.
1
In many cases we combine development, and testing and/or introduction as one stage.
PLC
Hence the operations manager need to carefully analyze the PLC of any product
Products in the first two during sales forecast, especially for the longer ones. However, products in the
stages of their life cycle first two stages of their life cycle need longer forecasts than that of those in the
need longer forecasts maturity and decline stages. Again introduction and growth stages are quite
than in the maturity and
decline stages. turbulent with gradual increase in sales. While at maturity the demand reaches a
steady state and finally starts to decline. The forecasting are also useful in
projecting different staffing levels, inventory levels, and factory capacity as the
product passes from the first to the last stage.
Uses of Forecasting
Forecasting is often used in organizations for three purposes. These are,
• New output introductions: Forecasting is used to decide whether
environmental demand is sufficient to generate the returns desired by the
organizations. If demand exists but at too low a “price” to cover the “costs”
the organization will incur in producing the output then the organization
should reject the opportunity.
• Capacity needs: Forecasting is used to determine long time capacity needs
for facility design. An accurate projection of demand for a number of years
in the future can save the organization great expense in expanding, or
contracting, capacity to accommodate future environmental demands. Due to
competitive forces in the environment, even in the non-profit sector, an
organization that produces inefficiently, because of excess idle capacity, or
insufficiently to meet demand, is courting disaster.
• Production planning: Forecasting is used to ascertain short-term fluctuation
in demand for production planning, workforce scheduling, materials
planning, and so forth. These forecasts are of special importance to
operations management and crucially affect operational productivity,
bottlenecks, master scheduling, meeting promised delivery dates, and other
such issues of concern to top management and the organization as a whole.
Unit- 3 Page- 60
Bangladesh Open University
demand. Here only statistical techniques like forecasting errors may not be
enough to make a decision.
For as long as the model is used, someone should judge whether the model that
was developed is appropriate for the purpose for which it was developed.
Because it is important to see if the demand data of past periods is still
appropriate to use for current and expected future conditions. That is whether the
same forces are still acting on demand, whether they are exerting the same
relative influence, and whether they can be expected to continue to do so. In
some cases, forecasters may also develop versatile models that will adapt to
changing conditions.
Summary
Forecasting is one of the key elements of operations management. A forecast is
an inference of what is likely to happen in the future. It is estimated by
systematically combining and casting forward in a predetermined way data about
the past. Forecasting involves taking historical data and projecting them into the
future with some sort of mathematical model. It may be subjective or intuitive
prediction of the future or it may be both, i.e., a combination of mathematical
models adjusted by good judgment. But a history of data must exist from which
reasonable inferences can be reached for forecasting. Forecasting prepares an
organization for a common future objective through department activity co-
ordination. It is important for both short-term and long-term planning.
Unit- 3 Page- 62
Bangladesh Open University
Discussion questions
Lesson Objective
After completing this lesson you will be able to:
Identify different steps in forecasting system
Explain the importance of time horizons in the business forecasting
process
Discuss the forecasting errors
1. Short range forecast: A forecast that has a time span of one year but is
generally less then three months. The use of such forecast is for purchase
Unit- 3 Page- 64
Bangladesh Open University
Forecasted Time
Topic Horizon
Item Short
Demands Run
Aggregate Intermedi-
Demands ate Run
Activity: Do you think you should use same types of steps for the short to
the long range business forecasting? Why or why not? Discuss.
Forecasting Errors
Forecasting is mainly done to find the near to possible data of the nature of
The forecast error is the demand or to determine quantity of production based on previous data or
numeric difference of
forecasted demand and hypothesis. For example, if the forecast for the month of November for a product
actual demand. is 326 units, it may be that, in reality the quantity demanded would be less or
more then 326 units; the difference of the two is known to be the error, i.e.,
forecasting error. Therefore the least is the error; the better is the forecast.
Forecast not only helps us to determine the demand but also helps us predict how
much inventory is to be kept; therefore the excess cost can be minimized.
Unit- 3 Page- 66
Bangladesh Open University
model will fit the demand pattern one is trying to predict. Such a measure of
alternative forecast models provides a basis for comparison to see which model
seems to do the best job. Forecast error is the numeric difference of forecasted
demand (Fi) and actual demand (Di). Obviously organizations never prefer a
forecast method yielding large errors. The most commonly used techniques for
measuring overall forecast error is Mean Absolute Deviation (MAD). This value
is computed by taking the sum of the absolute values of the individual forecast
errors (Fi - Di) and dividing by the number of period of data (n).
∑F
i =1
i − Di
MAD =
n
Here in MAD, we find the difference between the forecasted demand and actual
demand. If the forecast is absolutely correct, i.e., the actual demand equals the
forecasted demand, the error will be zero. As forecasting continues, the forecast
error is recorded and accumulated, period by period. Note that MAD is an
average of the forecast errors. Errors are measured without regard to sign, i.e.,
MAD expresses magnitude, not the direction of errors.
Bias, another measure of forecast error, calculates the forecast error with regard Bias is calculated as the
to direction and shows any tendency consistently to over or under forecast. Bias sum of the actual
is calculated as the sum of the actual forecast error for all periods divided by the forecast error for all
periods divided by the
total number of periods calculated. If the forecast repeatedly overestimates actual total number of periods
demand, Bias will have a positive value; consistent underestimation will be calculated.
indicated by a negative value.
n
∑ (F
i =1
i − Di )
Bias =
n
Assume that, a retail shop owner forecasted the demand for a butter to be 50 units
for each of the next three weeks. The actual demand turned out to be 40, 56, and
70 units. His forecast errors, MAD and Bias, are calculated as follows:
Summary
To make reliable forecasts, an organization should have a systematic way of
initiating, designing, and implementing regular updating of data. Forecast itself is
a system comprising of mainly seven steps. At first, organization has to
determine the uses or objectives of forecasting. After deciding upon the
objectives, the next step becomes selecting the products—the goods or
services—that have to be forecasted about. The next steps are determining the
time horizon and collecting data. Determining an appropriate forecasting
technique or model follows data collection. Then the operations managers have
to make the actual forecast based upon the activities taken up so far and
implement the result. Intermittent or periodic checks and feedback that are part
of result implementation are then conducted on the forecast.
Determining appropriate time horizon is critical for forecasting. The time horizon
of forecasting carries much weight in operations management, as planning and
scheduling operations often rely on forecasts of a range of time spans.
Forecasting the time horizon can be divided into three specific ranges: short-
range, medium-range and long-range. Short-range forecasts have a time span of
one year but is generally less then three months. The use of such forecasts are for
purchase planning, job scheduling, workforce levels, job assignments and
production levels. Medium range or intermediate range forecasts generally span
from three months up to three years. It is useful in sales planning, production
planning and budgeting, cash budgeting, and analyzing various operating plans.
Long-range forecasts are usually used for new products, capital expenditures,
facility location or expansion, and research and development. When an
organization evaluates different forecasting methods, the operations manager
needs a measure of its effectiveness. Forecasting error is the scorekeeping
mechanism most commonly used. Forecasting error is the numeric difference of
forecasted demand and actual demand.
Unit- 3 Page- 68
Bangladesh Open University
Power Shortage
In 1964 the National Power Survey by the FPC indicated that electric utility
companies of the northeastern section of the U.S. had several excess capacity. Case
The forecasts of the northeastern section of the industry were a declining rate of Analysis
growth for peak capacity demand. The past 6% growth trend was moving below
this level, causing additional over-capacity.
Based in part on this study, the Kilowatt Company adopted a plan that assumed a
declining growth pattern. They increased their promotional efforts and reduced
some of their rates to encourage electric usage. In addition, they joined a program
of pooling generating capacity with other utilities in the region. This would
permit switching capacity when demands temporarily created a shortage for one
of the member companies. Thus reducing the capital investment requirements.
The actual growth in demand in 1966 exceeded 7%; in 1967 it was about 1.5%; it
soared to almost 14% in 1968, and was almost 6% in 1969. As a result, instead of
over-capacity, Kilowatt and other utilities in the region found themselves with a
severe shortage of generating capacity. This shortage resulted in requests to
customers to reduce their use of electric power at certain times. It even led to
occasional power blackouts like the famous incident in New York in 1965.
By 1966, Kilowatt found themselves in a position where their peak load capacity
was more than 60,000 kilowatts less than the forecast peak load. Because of the
slower increase in demand and an increase in capacity, in 1967 the forecast
exceeded actual demand by more that 100,000 kilowatts. However, in 1968 and
1969, the forecast was more than 200,000 kilowatts below actual.
Case questions
1. How could such a wide disparity between forecasted usage and actual usage
occur in view of the forecasting techniques available?
2. What factors could affect peak load growth?
3. What factors might have contributed to a greater growth rate than forecasted?
4. What can Kilowatt do to overcome their present difficulties and what should
they do to avoid such large forecasting errors in the future?
Discussion questions
1. How do some investments in forecasting results in a negative return?
2. How accurate should the government forecast need to be and why?
Explain with the help of two such situations.
3. Is there any difference between forecasting demand and forecasting
sales?
4. Explain how an organization can become confused when the distinction
between forecasting and planning is not clear.
Unit- 3 Page- 70
Bangladesh Open University
Lesson Objective
After completing this lesson you will be able to:
Explain different qualitative forecasting techniques
Identify different quantitative forecasting techniques.
Forecasts
Qualitative Quantitative
Smoothing Decomposition
Unit- 3 Page- 72
Bangladesh Open University
During the next phase of the meeting, the experts discuss all the ideas that
have been presented. Often similar ideas are combined. When all discussion The advantage of the
has ended, the experts are asked to rank the ideas, in writing, according to nominal group
priority. The consensus is the mathematically derived outcome of the discussion is time
individually rankings. The advantage of the nominal group discussion is time saving.
saving. But this technique can fail if the coordinator fails to allow creativity
and encourage discussion. There is also the risk of getting all the experts
together. This also can become costly if the experts are to be brought from
foreign countries.
Example (i)
If a mobile communication company sales 100, 110, and 96 mobile connection in
the month of January, February and March respectively, we can assume that the
demand for April will be 102 [(100+110+96)/3]. This may not be exact but for a
starter it could be on the best-cost effective solution for some organization. In
many cases we give different weights to the past data, especially giving more
weight to the most recent data, making it simple weighted average.
Example (ii)
In the above forecast example if weights of 20%, 30% and 50% are given for the
demand figures of January, February and March respectively, then the demand
forecast for April will be 101 [(100x0.20 + 110x0.30 + 96x0.50)/1.00].
Unit- 3 Page- 74
Bangladesh Open University
requires experience and luck, because there is no set formula to do so. The
Weighted Moving Average (WMA) is calculated by using the following model:
n
WMA = ∑ C t Dt
t =1
Where,
n = chosen number of periods
t = 1 is the oldest period in the n-period average
= n is the most recent period
Di = the demand in the ‘i’th period
Ct = Weight against a particular periodic demand 0 ≤ Ct ≤ 1
∑ Ct = 1
Example (ii)
In the previous example if we weight most recent period twice as heavy as other
two periods by setting, C1 = 0.25, C2 = 0.25, C3 = 0.50, the demand forecast for
the month of May will be; WMA = 0.25 x 130 + 0.25 x 110 + 0.50 x 150 = 135
(c)Exponential smoothing
Exponential smoothing is a sophisticated weighted moving average forecasting
method that is still fairly easy to use. It involves very little record keeping of past
data. Exponential smoothing is distinguishable by the special way it weights each
past demand. The pattern of weights is exponential in form. Demand for the most
recent period is weighted most heavily; the weights placed on successively older
periods decrease exponentially. The basic exponential smoothing formula for
creating a new or updated forecast (Ft) uses two pieces of information:
(i) actual demand for the most recent period (Dt-1)
(ii) most recent demand forecast (Ft-1)
Ft = α Dt-1 + (1 - α) Ft-1
Where,
F = Forecast
α = smoothing coefficient (0 ≤ α ≤ 1)
D = demand
t = is the period
t – 1 = immediate previous period.
If we replace F t-1 in equation (1) by its equivalent value from equation (2),
we get,
F t = αD t-1 + (1- α) [αD t-2 + (1- α) F t-2]
= αD t-1 + α (1- α) D t-2 + (1- α)2 F t-2 (4)
Ft = α(1- α)0 D t-1 + α (1- α)1 D t-2 + α (1- α)2 D t-3 + (1- α)3 F t-3
Ft = α(1- α)0 D t-1 + α (1- α)1 D t-2 + α (1- α)2 D t-3 + (1- α)3 F t-3
Hence, for a new product or for items with a dynamic or unstable demand, a
higher value of α (0.7 to 0.9) is more justifiable. In case of a product that is in the
market for a longer period of time and the demand of the product is of less
variance, the value of α is to be taken from the range of 0.1 to 0.3, to smooth out
any sudden noise2 that might have occurred. When demand is slightly unstable,
smoothing coefficient of 0.4, 0.5, 0.6 might provide most accurate forecasts.
Example (i)
Say there is a new product, and the forecast for the month of November has to be
calculated considering that the demand of the product in September is 300 and in
October is 350. The forecast for September was 200 units. As the product is new,
the value of α is to be taken from the range of 0.7 to 0.9. In this case let the value
be 0.7:
2
Noise is any dispersion or deviation of demand from the actual demand pattern.
Unit- 3 Page- 76
Bangladesh Open University
Therefore,
Summary
There are different forecasting approaches that range from instantaneous hunches
to elaborate statistical equations. Some are simple and more common, while
some complex ones may be more accurate. Broadly, two types of general
approaches to forecasting dominates operations management. They are the
qualitative approach and the quantitative approach. The Qualitative Methods
include jury of executive opinion, sales force, composite consumer market
survey, Delphi method and nominal group discussion technique, etc. Among
these techniques, Delphi method and nominal group discussion are most used.
An advantage of this method is that direct interpersonal relations are avoided. On
the other hand, Delphi technique is time consuming. Like Delphi technique, the
nominal group discussion involves a panel of experts. Unlike the Delphi
technique, the nominal group technique affords opportunity for discussion among
the experts. The advantage of the nominal group discussion is time saving. But
this technique can fail if the coordinator fails to allow creativity and encourage
discussion. Quantitative Methods include Naïve (time series) quantitative models
that in turn include simple average, moving average, exponential smoothing etc.
The time series model predicts the simple assumption that the future is a function
of the past. In other words, they look at what has happened over a period of time
and use a series of past data for forecasting.
Brother’s Packing Box Company has currently over 250 customers with orders
ranging from a low of 100 boxes to set orders for 5,000 folded packing boxes per
year. Boxes are produced in 16 standard sizes with special printing to customer’s
specifications. Brother’s printing equipment limits their print to two colors. The
standardization and limiting printing allows Brother’s to be price competitive
with other box manufacturers. But they can also provide the service for small and
“emergency” orders.
Such personal service, however, requires tight inventory control and close
production scheduling. So far, A.M. Khan has always forecast demand and
prepared production schedules through experience. But because of the ever-
growing number of accounts and changes in personnel in customer purchasing
departments, the accuracy of his forecasting has been rapidly declining. The
inventory levels of finished boxes along with number of back orders are on the
increase.
Later orders are more common. A second warehouse has recently been leased
due to the overcrowded conditions in the main warehouse. Plans are to move
some of the slower moving boxes to the leased space. There has always been an
increase in demand for boxes prior to the winter season when more and more
orders of knit and woven garments are shipped out to many countries. Such
seasonality in demand has always substantially increased the difficulty of making
a reliable forecast.
Unit- 3 Page- 78
Bangladesh Open University
Case questions
1. Develop a forecasting method for Brother’s and forecast total demand for
2001.
2. How might Mr. A. M. Khan improve the accuracy of the forecast?
3. Should Mr. Khan’s experience with the market be factored into the
forecast? If so, how?
Discussion questions
1. Forecasting methods need to be monitored and controlled properly—
why?
2. How does correlation play a key role in forecasting?
3. How can a manager evaluate the reliability and the level of confidence of
a forecast?
4. In what situation you might use quantitative forecasting method though
having historical data?
Unit- 3 Page- 80
Bangladesh Open University
Lesson Objectives
After completing this lesson you will be able to:
Understand the different components of Time Series
Explain the general forms of Time Series Decomposition model
Analysis the casual quantitative model
Time
Figure 3.4.1: The Trend Components
The Seasonal component is the recurring fluctuations of demand above and
below the trend value that repeats with a fairly consistent interval. Seasonal
pattern can repeat itself after a period of time, which can be in the form of days,
weeks, months or quarters or with some other interval. A classification of the
seasonal component appears in the Figure 3.4.2.
Time
Figure 3.4.2: The seasonal components
Time
Figure 3.4.3: The Cyclical Components
The Random component depicted in Figure 3.4.4, is the series of short, erratic
movements that follow no discernible pattern.
Time
Figure 3.4.4: The Random Components
The pattern is the general shape of the time series. Although some individual data
points do not fall on the pattern, they all tend to cluster around it. To describe the
points clustered about a pattern, we use the term noise. Low noise means all or
most of the points lie very close to the pattern. High noise means many of the
points lie relatively far away from the pattern. When random component of a
time series has fluctuations that deviate substantially from the average level of
demand, it is often useful to smooth out the data by averaging several
observations to make the basic pattern more apparent which is known as Time
Series Smoothing.
Unit- 3 Page- 82
Bangladesh Open University
(1) Multiplicative model: The most common model is the Multiplicative model,
in which forecast is done by multiplying all the time series components.
TF= T x S x C x R
(2) Additive model: In the other model in the time series i.e. the Additive model,
forecast is done through adding the time series components.
TF= T + S + C + R
Here,
TF = time series forecast
T= trend component
S= measure of seasonality, either a ratio or an amount to add
C= measure of cyclical adjustment, either a ratio or an amount to add
R= random component
Visual inspection of a plotted time series is often helpful to determine the type of
model that most appropriately represents the data (Figure 3.4.5).
Linear trend & additive seasonality Linear trend &, multiplicative seasonality
Nonlinear trend & additive seasonality Nonlinear trend & multiplicative seasonality
Figure 3.4.5: Different linear and non-linear additive and multiplicative seasonality
Defining and separating trend and cycle components may necessitate considering
data for a period of 15 to 20 years, which (data) might not be available.
Moreover, very few products remain in stable condition this long—either due to
competitive situation or due to change in product life cycle stage. Hence, it is not
unusual to estimate trend from considering data of 2 years or more as available.
The random component is assumed to be averaged out over the multiple
observations. Consequently, in practice only the seasonal component and the
combination of trend-cycle component is considered. The following example of
time series decomposition will help you to calculate the trend component and the
seasonal coefficient.
Example: The Table 3.4.1 pertains to the quarterly sales data of 1- liter-pack
milk of Shelaidah Dairy Ltd. For 1999 and 1998. The data has been further
calculated to facilitate the time series decomposition. In this example the cyclical
component is not considered, as we did not have enough data for the purpose.
The random component is smoothed out as we took the quarterly sales. Only
trend and seasonal component is taken into account. The 4-quarter moving
average shows an upward trend in the sales.
Table 3.4.1 Quarterly sales data shelaidah dairy ltd.
Year Quarter Quarter Sales 4-quareter moving
number (units) average
1998 First quarter 1 4744 -
(Jan—Mar)
Second quarter 2 1517 -
(Apr—Jun)
Third quarter 3 1526 -
(Jul—Sep)
Fourth quarter 4 2243 2507.50
(Oct—Dec)
1999 First quarter 5 5074 2590.00
(Jan—Mar)
Second quarter 6 1397 2560.00
(Apr—Jun)
Third quarter 7 1948 2665.50
(Jul—Sep)
Fourth quarter 8 5375 3448.50
(Oct—Dec)
From the above figure we will calculate the trend value and the seasonal
coefficient.
Unit- 3 Page- 84
Bangladesh Open University
Regression model
Regression model is a causal forecasting technique output that establishes a
relationship between variables. There is one dependent variable and one or more
explanatory variables. Historical data establishes a functional relationship
between the two variables. If there is one explanatory variable it is called simple
regression, otherwise, it becomes multiple regression. If the model takes the
shape of a linear equation, we call it simple linear regression or multiple linear
regression models. Normally least square curve fitting technique is used to
develop the models for fitting a line to a set of points.
Y Regression line
x x x
sample points x x x
x x x
x x x
x x x
x
X
Figure 3.4.6: A straight line fitted to a set of sample points
Y = a + bX
Where,
Y → predicted (dependent) variable [normally drawn on the Y-axis]
X → explanatory (independent) variable [normally drawn on the X-axis]
a → value of predicted variable (Y) when x = 0 (Y-intercept value of the
line)
b → slope of the line (change in Y corresponding to a unit change in X)
The coefficients a and b of the regression line are computed using the following
two equations:
n( ∑ xy ) − (∑ x )(∑ y )
b=
n(∑ x 2 ) − ( ∑ x ) 2
where, n → number of paired observations
a=
∑ y − b∑ x = y − b x − −
n
− −
where, y → mean of x vlues & x → mean of y values
Example
XYZ Fashions has a chain of twelve stores in Dhaka. Sales figure and profits for
the stores are shown in the following table. (Figures are in ‘000taka).
Unit- 3 Page- 86
Bangladesh Open University
Solution
a) If we plot the points (Figure 3.4.7) we can see that the points seem to scatter
around a straight line. Hence, we can conclude that a linear model seems
reasonable.
5.0 - x
4.0 - x
X
X
3.0 - x x
X x
2.0 - x X x
x
1.0 -
0-
0 20 40 60 80 100 120 140 160
Figure 3.4.7: Scatter Diagram for the Sales & Profits Figures of XYZ Fashions
b) Now for developing the regression model let’s compute the quantities
Σx, Σy, Σxy, and Σx2.
x y xy x2
70 1.5 105 4,900
20 1.0 20 400
60 1.3 78 3,600
40 1.5 60 1,600
140 2.5 350 19,600
150 2.7 405 22,500
160 2.4 384 25,600
120 2.0 240 14,400
140 2.7 378 19,600
200 4.4 880 40,000
150 3.4 510 22,500
70 1.7 119 4,900
2
Σx =1320 Σy = 27.1 Σxy = 3529 Σx = 179,600
It is important to note that the regression line should only be used for the range of
values from which it was developed; the relationship may be non-linear outside
the range.
a=
∑ y − b∑ x = y − b x = 2.26 − 0.01593 x 110 = 0.506
− −
n
− −
where, y → mean of x vlues & x → mean of y values
Trend Equation
A linear trend equation has the form:
Yt = a + bt
where,
t = specified number of time period from t=0
Yt = forecast for period t
a = value of Yt at t=0
b = slope of the line.
This equation is identical to the linear regression line, except that t replaces x in
the equation. Hence,
n( ∑ ty ) − ( ∑ t )(∑ y )
b=
n( ∑ t 2 ) − ( ∑ t ) 2
where, n → Number of periods, y → Value of the time series
Example
Consider the trend equation, Yt = 45 + 5t. Here the value of Yt when t = 0 is 45,
and the slope of the line is 5. The slope indicates that, on the average, the value
of Yt will increase by 5 units for each one-unit increase in t.
a=
∑ y − b∑ t = y − b t − −
n
− −
where, y → mean of y values & t → mean of t values
Unit- 3 Page- 88
Bangladesh Open University
Summary
A summary of advantages and disadvantages of the prominent forecasting
techniques for comparison shows the following table.