Stat 443 Lecture 1
Stat 443 Lecture 1
Forecasting
Paul Marriott
Preamble
Introduction
Examples
Observed data
examples
STAT 443: Forecasting
Paul Marriott
[email protected]
M3 4204
STAT 443:
Forecasting
Paul Marriott
Overview
Preamble
Introduction
• This course is an introduction to the area of statistical
Examples
Observed data
examples
forecasting and control.
• empirical information and modelling can be used to
make forecasts and evaluate the associated
uncertainty.
• Time series analysis and modelling, building on the
student’s knowledge of regression.
• Linear filtering, the Box-Jenkin’s approach to
forecasting, Bayesian and state space methods and
frequency analysis.
• Each forecasting approach is illustrated with real world
examples.
STAT 443:
Forecasting
Paul Marriott
Learning Materials
Preamble
Introduction
Examples
Observed data
examples
Paul Marriott
Course Objectives
By the conclusion of this course, students should have
Preamble
achieved the following objectives:
Introduction
Examples
• Be able to give a qualitative description of the
Observed data
examples
structures of a wide range of types of time series, and
discuss the following topics: time scales, trends,
variability, seasonality, and other deterministic aspects,
outliers, change points, stationarity and data generation
mechanism.
• Be able to use R to generate appropriate plots and
summary statistics to communicate to others important
aspects to a wide range of types of time series.
• Be able to discuss, with a variety of examples, the
importance of forecasting, prediction and control in
real-world applications and how to quantify the
effectiveness of differing methods. They will be able to
discuss fundamental differences between short,
medium and long term prediction.
STAT 443:
Forecasting
Paul Marriott
Course Objectives
Preamble
Introduction
• Be able to select and use appropriate forecasting
Examples methodologies studied in the course to make forecasts
Observed data
examples based on data and appropriate subject matter
information.
• Be able to quantify the uncertainties and assumptions
associated with each of the forecasting and filtering
methodologies studied in the class.
• Be fluent in a number of R based tools which can be
used to compute and summarise forecasts.
• They should be able to describe the importance of
statistical modelling in forecasting, prediction and
control problems and master the mathematical
techniques needed to exploit such models. They
should be able to select, fit and critique such models.
STAT 443:
Forecasting
Paul Marriott
Course Outline
Preamble
Introduction
Paul Marriott
Tentative Timetable
Preamble
Week Monday Wednesday
Introduction
Starting
Examples
Observed data
examples
6 May Chapter 1 Chapter 1
13 May Chapter 1 Chapter 1
20 May Victoria day Chapter 2
27 May Chapter 2 Chapter 2
3 June Chapter 3 Midterm
10 June Chapter 3 Chapter 3
17 June Chapter 4 Chapter 3
24 June Chapter 4 Chapter 4
1 July Chapter 4 (Tuesday) Chapter 5
8 July Midterm Chapter 5
15 July Chapter 5 Chapter 6
22 July Chapter 6 Chapter 6
29 July Chapter 6
STAT 443:
Forecasting
Paul Marriott
Course Assessment
Preamble • Your final mark will be calculated according to the
Introduction
following weighting: Group project – 10%, Midterm –
Examples
Observed data
30% (15% each), Final exam – 60%.
examples
Paul Marriott
Cheating and Academic
Preamble
Discipline
Introduction • Cheating on assignments and projects includes copying
Examples
Observed data
another student’s solution and submitting it as your
examples
own, allowing another student to copy your solution, or
collaborating excessively with another student.
• Plagiarism is the act of presenting the ideas, words or
other intellectual property of another as one’s own. The
use of other people’s work must be properly
acknowledged and referenced in all written material
such as take-home examinations, essays, laboratory
reports, work-term reports, design projects, statistical
data, computer programs and research results.
• The standard penalty for cheating or plagiarism on an
assignment or project is as follows: no marks for the
assignment and a deduction of 5% from the final
course grade
STAT 443:
Forecasting
Paul Marriott
Cheating and Academic
Preamble
Discipline
Introduction
Paul Marriott
Practice Questions
Preamble
Introduction
Paul Marriott
Students Role
Preamble
Introduction
Examples
Observed data
examples
What do you need to do to be successful in this course?
• Come to lectures and take notes
• Work – individually or in groups – through the practice
questions
This will completely prepare you for the midterms and
final
• Work in the group project
STAT 443:
Forecasting
Paul Marriott
Chapter 1: Introduction to
Preamble
Forecasting, control and time
Introduction series
Examples
Observed data
examples
Paul Marriott
Time series
Preamble
Introduction
UK Deaths and Injuries Ontario road deaths
Examples
250
Observed data
2500
examples
200
2000
Number
Number
150
1500
100
1000
50
1970 1975 1980 1985 1960 1965 1970 1975
Time Time
Paul Marriott
Time series
Preamble
Introduction
Examples
Observed data
examples Definition.1.2.2 (Time series plot) A time series plot is a
scatterplot of the data with time on the x-axis in, typically,
equally spaced intervals, and the observations on the
y -axis.
For visual clarity adjacent observations are connected by
lines.
The equally spaced intervals can be in units of years,
months, days, hours etc and these units are called the
period of the time series.
STAT 443:
Forecasting
Paul Marriott
Time series
Preamble
Introduction
Examples
Observed data
examples
• Terms like level, trend and seasonality can only be
defined precisely in terms of a modelling exercise.
• Here we give informal definition for use in describing
observed patterns in time series plots.
Definition.1.2.3 (Level, trend and seasonal component)
The level is the local mean of the observations, around
which we see random noise.
When the level varies with time we say there is a trend.
A seasonal effect is a systematic and calendar related effect
which repeats with a given period.
STAT 443:
Forecasting
Paul Marriott
Time series
Preamble
Introduction
Paul Marriott
Time series
Preamble
Ontario Gas Demand
Introduction
250000
Examples
Observed data
examples
200000
Gallons
150000
100000
Time
Paul Marriott
Time series
Preamble
Introduction
Examples
600
Observed data
examples
500
AirPassengers
400
300
200
100
Time
Paul Marriott
Time series
Preamble
100000
1500000
Bits
Bits
60000
1000000
20000
500000
Days Days
Paul Marriott
Time series
Preamble
Introduction
FTSE index 1991 − 1998 First Difference log price
Examples
Observed data
8000
examples
0.04
6000
0.00
Difference
FTSE
4000
−0.04
2000
−0.08
1992 1994 1996 1998 1992 1994 1996 1998
Time Time
Paul Marriott
Time series
Example.1.2.10 (US unemployment)
Preamble
Introduction
Examples US unemployment
Observed data
12000
examples
10000
unemployed (thousands)
8000
6000
4000
Time
Paul Marriott
Time series
Preamble
Introduction
Monthly Births in Denmark
Examples
Observed data
Time
Paul Marriott
Review
Preamble
Introduction
Examples
Observed data
examples • In this lecture we have seen numerous examples of real
world time-series
• For each can you define the period?
• Can you, at least informally, describe the level, trend
and seasonality of the plot?
• Can you identify the seasonal component if it exists?
• Can you define and identify any change points?
• Are any of the examples stationary?