Professional Documents
Culture Documents
Chapter 1 What's Forecasting
Chapter 1 What's Forecasting
Forecasting
- Depends on variables related to the past and the present to find what the best
prediction of these variables is.
- Forecasting is a result of unknown future.
- Help to inform decisions and provide a guide to long term strategic planning.
Forecasting, goals, and planning
Forecasting
- Predicting the future as accurate as possible with all available information.
Goals
- What you would like to happen.
- Goals are set without any plans to achieve them.
Planning
- A response involves determining the appropriate actions to make matching
between forecasts and goals.
Types of forecasting
According to time horizon
Short-term
- Scheduling of personal
- Production
- Transportation
Medium-term
- Determining future resources requirements
- Purchase raw materials
- Hire personal
- Buy machinery & equipment
Long-term
- Used in strategic planning
- Decisions must take account of:
Market opportunities
Environmental factors
Internal resources
According to data type
Quantitative
- Sufficient quantitative information is available
Qualitative
- Little or no quantitative information is available
- But sufficient qualitative knowledge exists
Unpredictable
- Little or no information is available
Quantitative forecasting can be applied when three conditions exist
1- Information about the past is available
2- The information can be quantified in the form of numerical data
3- It can be assumed that some aspects of the past pattern will continue in the future
Quantitative data
It has a wide range of methods developed with in specific purpose each method has
its own properties, accuracies, and costs that we consider when we choosing a
specific method. Most problems use either time series data or cross-sectional data.
Time series data
- Collected at regular intervals over time
Cross-sectional data
- Collected at a single point in time
Cross-sectional forecasting
Used to predict the value of something we have not observed, using the information on
the cases that we have observed.
Example
House prices for all houses sold in 2011 in a particular area
- We are interested in predicting the price of a house not in our data set using
various house characteristics
Position
Number of bed rooms
Age
Time series forecasting
- Used when you are forecasting something that is changing over time
Example
Daily IBM stock price
Monthly rainfall
Quarterly sales results for amazon
Annual google profits
Graphical presentation
Graphs enable many features of the data to be visualized including patterns, unusual
observations, changes over time, and relationship between variables.
Time plot
- For time series, the most
obvious graphical form is a
time plot in which the data are
plotted over time.
Seasonal plot
- It’s similar to a time plot except that
the data are plotted against the
individual “seasons” in which the
data were observed
Scatter plot
- Show how much one variable is
affected by another. The relationship
between two variables is called their
correlation.
- We put the variable we want to
forecast (response or dependent)
against one of the explanatory
(independent) variables
MAD =
̅|
∑|𝒀 − 𝒀
𝒏
̅ )𝟐
∑(𝒀−𝒀
MSD =
𝒏
̅ )𝟐
∑(𝒀−𝒀
𝒔𝟐 = 𝒏−𝟏
̅ )𝟐
∑(𝒀−𝒀
𝒔 = √𝒔𝟐 = √ 𝒏−𝟏
Example
Consider the mileage of the 19 Japanese cars given in the following table.
The vehicles have been numbered from 1 to 19 for easy reference.
Make Vehicle Mileage
Mazda MPV V6 1 19
Nissan Van 4 2 19
Acura Legend V6 3 20
Mitsubishi Wagon 4 4 20
Nissan Axxess 4 5 20
Mitsubishi Sigma V6 6 21
Nissan Stanza 4 7 21
Mazda 929 V6 8 21
Nissan Maxima V6 9 22
Toyota Cressida 6 10 23
Nissan 240SX 4 11 24
Subaru Loyale 4 12 25
Mitsubishi Galant 4 13 25
Honda Prelude Si 4WS 4 14 27
Subaru XT 4 15 28
Mazda Protégé 4 16 32
Honda Civic CRX Si 4 17 33
Subaru Justy 3 18 34
Toyota Tercel 4 19 35
Solution:
V M ̅|
|𝑴 − 𝑴 ̅ )𝟐
(𝑴 − 𝑴
1 19 5.7 32.5
2 19 5.7 32.5
3 20 4.7 22.1
4 20 4.7 22.1
5 20 4.7 22.1
6 21 3.7 13.7
7 21 3.7 13.7
8 21 3.7 13.7
9 22 2.7 7.3
10 23 1.7 2.89
11 24 0.7 0.49
12 25 0.3 0.09
13 25 0.3 0.09
14 27 2.3 5.29
15 28 3.3 10.89
16 32 7.3 53.29
17 33 8.3 68.89
18 34 9.3 86.49
19 35 10.3 106.1
̅ = ∑ 𝑴 = 𝟒𝟔𝟗 = 24.7
𝑴 𝒏 𝟏𝟗
𝒏+𝟏 𝟏𝟗+𝟏
𝐦𝐞𝐝𝐢𝐚𝐧 = = = 23
𝟐 𝟐
̅|
∑|𝑴−𝑴 𝟖𝟑.𝟏
MAD = = = 4.37
𝒏 𝟏𝟗
̅)𝟐
∑(𝑴−𝑴 𝟓𝟏𝟒.𝟐𝟏
MSD = = = 27.06
𝒏 𝟏𝟗
̅)𝟐
∑(𝑴−𝑴 𝟓𝟏𝟒.𝟐𝟏
𝒔𝟐 = = = 28.56
𝒏−𝟏 𝟏𝟗 − 𝟏
Example
The following table shows the price and millage for the Japanese cars given in the previous
example.
Solution
V M P ̅)
(𝑴 − 𝑴 ̅)
(𝑷 − 𝑷 ̅ )𝟐
(𝑷 − 𝑷 ̅ ) (𝑷 − 𝑷
(𝑴 − 𝑴 ̅)
̅ = ∑ 𝑷 = 𝟐𝟔𝟒.𝟖𝟐𝟑 = 13.938
𝑷 𝒏 𝟏𝟗
̅) (𝑷−𝑷̅ )
∑(𝑴−𝑴 −𝟑𝟖𝟒.𝟐𝟏𝟏
𝑪𝑶𝑽𝑴𝑷 = = = -21.289
𝒏−𝟏 𝟏𝟗−𝟏
𝑪𝑶𝑽 𝑴𝑷 ̅) (𝑷−𝑷̅ )
∑(𝑴−𝑴 −𝟑𝟖𝟒.𝟐𝟏𝟏 −𝟑𝟖𝟒.𝟐𝟏𝟏
𝒓 𝑴𝑷 = = = = 𝟓.𝟑𝟒∗𝟐𝟐.𝟗𝟔 = -122.659
𝑺𝑴 𝑺𝑷 ̅)𝟐 √∑(𝑷−𝑷̅ )𝟐
√∑(𝑴−𝑴 √𝟓𝟏𝟒.𝟐𝟏√𝟓𝟐𝟕.𝟔𝟏𝟔
𝒆𝒕 = 𝒀𝒕 − 𝑭𝒕 𝒐𝒓 ̂𝒕
𝒆𝒕 = 𝒀𝒕 − 𝒀
If there are observations and forecasts for n time periods, then there will be n error terms,
and the following standard statistical measures can be defined:
MEAN ERROR
𝒏
𝟏
𝑴𝑬 = ∑ 𝒆𝒕
𝒏
𝒕=𝟏
Example
The following table shows the last 8 months of observations (January to August 2018) of
cotton production (in thousands of tons). The second column shows forecasts F or these
values, obtained using a simple method.
Example
Using the data in the previous example, find PE, MPE, AND MAPE.
U-Theil’s statistic
It is a proportional measure. Compare two forecast methods; simple model (naïve model)
and more advanced model.
2
𝐹𝑡+1 − 𝑌𝑡+1
∑𝑛−1
𝑡=1( )
𝑌𝑡
𝑈= √ 2
𝐹𝑡+1 − 𝑌𝑡
∑𝑛−1
𝑡=1( )
𝑌𝑡
We can conclude that, if:
1- U= 1, the simple model is sufficient.
2- U< 1, the simple model is not sufficient. The more small U, the more
insufficient the simple model.
3- U> 1, the simple method gives better results
Example
Using the data in the previous example, find U-Theil’s statistic.