Top Banner
Lecture 1 Good afternoon! Lecturer: Dr. Natalia Janson Department of Mathematical Sciences Loughborough University Loughborough Office: W205 Tel: (01509) 22 2874 E-mail: [email protected] Module: MAC272 “Time Series Analysis” tures and 1 tutorial per week during weeks 1-12 of Semester 2 Coursework: 20% Exams: 80% Time Series Analysis by N. Jan 0
20

Lecture 1 Good afternoon! Lecturer: Dr. Natalia Janson Department of Mathematical Sciences Loughborough University Loughborough Office: W205 Tel: (01509)

Mar 28, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Lecture 1 Good afternoon! Lecturer: Dr. Natalia Janson Department of Mathematical Sciences Loughborough University Loughborough Office: W205 Tel: (01509)

Lecture 1 Good afternoon!

Lecturer: Dr. Natalia JansonDepartment of Mathematical SciencesLoughborough UniversityLoughborough

Office: W205Tel: (01509) 22 2874E-mail: [email protected]

Module: MAC272 “Time Series Analysis”2 lectures and 1 tutorial per week during weeks 1-12 of Semester 2, 2004/05

Coursework: 20%Exams: 80%

Time Series Analysis by N. Janson

0

Page 2: Lecture 1 Good afternoon! Lecturer: Dr. Natalia Janson Department of Mathematical Sciences Loughborough University Loughborough Office: W205 Tel: (01509)

Time Series Analysis

Lecture 1: Introduction

1. Processes, state variables2. Signals and their examples3. Time series: definition4. Aims of Time Series Analysis

Time Series Analysis by N. Janson

1

Page 3: Lecture 1 Good afternoon! Lecturer: Dr. Natalia Janson Department of Mathematical Sciences Loughborough University Loughborough Office: W205 Tel: (01509)

What do we study?Whatever is going on around us are processes occurring in certain systems. Some obvious examples are:•the change of weather (system: Earth atmospehere)•the change of illumination during the day (system: Earth atmospehere)•the daily change in exchange rates (system: financial market)•the change in monthly amount of beer drunk by a certain person (system: person)

In lay terms: process is the change in time of the state of the system.

Note: the state of the same system can be characterized by one or several variables.

Examples: •weather at the current moment can be characterized by air temperature, humidity, wind velocity, atmosphere pressure, etc. •state of the person can be characterized by his/her body temperature, average heart rate, average respiration frequency, blood pressure, appetite, etc.

One may record and observe the change in time of several, or of just one variable characterizing the system state. The recorded dependence of some variable in timeis also called a realization. Time Series Analysis by N. Janson

2

Page 4: Lecture 1 Good afternoon! Lecturer: Dr. Natalia Janson Department of Mathematical Sciences Loughborough University Loughborough Office: W205 Tel: (01509)

Marketing example:wine sales of a certain company

months

System: company State variable: monthly wine sales

Time Series Analysis by N. Janson

3

Data are taken from http://home.vicnet.net.au/~norca/Red_Wine.htm

Page 5: Lecture 1 Good afternoon! Lecturer: Dr. Natalia Janson Department of Mathematical Sciences Loughborough University Loughborough Office: W205 Tel: (01509)

A medical example: Human Electrocardiogramme (ECG)

Measures electrical activity of a human heart.

time

volt

age

~ 1 sec

System: cardiovascular system of a humanProcess: heart beatsState variable: voltage between two points on the human body.

Time Series Analysis by N. Janson

4

Page 6: Lecture 1 Good afternoon! Lecturer: Dr. Natalia Janson Department of Mathematical Sciences Loughborough University Loughborough Office: W205 Tel: (01509)

A biological example:position of a point on the surface of Isolated

Frog’s Heart

time

coor

dina

te

position of this point is recorded

System: frog’s heartState variable: position of a point on its surface

Time Series Analysis by N. Janson

5

Page 7: Lecture 1 Good afternoon! Lecturer: Dr. Natalia Janson Department of Mathematical Sciences Loughborough University Loughborough Office: W205 Tel: (01509)

A mechanical example

System: mechanical systemState variable: position of the load

Time Series Analysis by N. Janson

6

Page 8: Lecture 1 Good afternoon! Lecturer: Dr. Natalia Janson Department of Mathematical Sciences Loughborough University Loughborough Office: W205 Tel: (01509)

System, Process and Signal

System

State variable 1

State variable 2

Signals

Time Series Analysis by N. Janson

7

Page 9: Lecture 1 Good afternoon! Lecturer: Dr. Natalia Janson Department of Mathematical Sciences Loughborough University Loughborough Office: W205 Tel: (01509)

Time Series

Remark:Mathematically, “time series” is not a SERIES, but a SEQUENCE!

Notations

Time series: a collection of observations of state variables made sequentially in time.

Univariate (bivariate, multivariate) time series: collection of observations of one(two, several) state variables, each made at sequential time moments.

Note: the order of observations is important!

Synonims:•Time series, (experimental) data, sampled signal, discretized signal•Sampling rate (step), discretization rate (step)•Time Series Analysis, Data Analysis, Signal Processing, Data Processing

•continuous signal a(t) •time series a(ti)=a(it)=ai, i=1,2,…,L

•sampling step t •length of time series L

•sampling frequency fs=1/t

Time Series Analysis by N. Janson

8

Page 10: Lecture 1 Good afternoon! Lecturer: Dr. Natalia Janson Department of Mathematical Sciences Loughborough University Loughborough Office: W205 Tel: (01509)

Example of time series:blood pressure of a rat

Pre

ssur

e, a

u

Time Series Analysis by N. Janson

9

Page 11: Lecture 1 Good afternoon! Lecturer: Dr. Natalia Janson Department of Mathematical Sciences Loughborough University Loughborough Office: W205 Tel: (01509)

Aims of Time Series Analysis

1. DescriptionDescribe (characterize) a generating process using its time series.

2. ExplanationIf time series is bi- or multi-variate, then it may be possible to use variations in one variable to explain the variations in another variable.

3. Prediction (forecasting)Use the knowledge of the past of the time series to predict its future.

4. ControlTo change deliberately the properties of the process by influencing it andobserving the changes introduced by our intervention. One can then learn to make the needed effort to achive control.

Time Series Analysis by N. Janson

10

Page 12: Lecture 1 Good afternoon! Lecturer: Dr. Natalia Janson Department of Mathematical Sciences Loughborough University Loughborough Office: W205 Tel: (01509)

Example of descriptionAssume the time series shows the tendency to repeat itself with some accuracy. ECG shows a sign of periodicity.

Then one can assume that the process is inherently rhythmic, and can estimate the average or most probable rhythm in it.The average rhythm of heartbeats can be estimated from estimating therhythm of ECG.

For information: Average heart rate of a healthyHuman is ~ 1 sec.

Time Series Analysis by N. Janson

11

Page 13: Lecture 1 Good afternoon! Lecturer: Dr. Natalia Janson Department of Mathematical Sciences Loughborough University Loughborough Office: W205 Tel: (01509)

Example of explanation

Time Series Analysis by N. Janson

Three signals are measuredfrom the same ill humansimultaneously:Electrocardiogramme (ECG),pressure, respiration.

Floating of average level of ECG and especially of pressureare caused by breathing.

12

Page 14: Lecture 1 Good afternoon! Lecturer: Dr. Natalia Janson Department of Mathematical Sciences Loughborough University Loughborough Office: W205 Tel: (01509)

Example of prediction

Time Series Analysis by N. Janson

Weather forecast

A lot of experimental data are measured during a certain time interval.The data are being analysed, the tendencies are being revealed. From what is available by the current moment the future weather is predicted.

13

Page 15: Lecture 1 Good afternoon! Lecturer: Dr. Natalia Janson Department of Mathematical Sciences Loughborough University Loughborough Office: W205 Tel: (01509)

Example of control 1

Time Series Analysis by N. Janson

Balancing a tray.

14

Page 16: Lecture 1 Good afternoon! Lecturer: Dr. Natalia Janson Department of Mathematical Sciences Loughborough University Loughborough Office: W205 Tel: (01509)

Example of control 2A sailing boat is being navigated in windy weather. It needs to go in theparticular direction, and this direction is governed by the angle between the windand the sail. The wind is occasionally changing its direction. The sailorneeds to adjust the angle between the sail and the wind in such a way that the direction of motion is kept as constant as possible.

System: atmosphere interacting with the sailProcess: change of the direction of sailSignal: angle between the sail and the wind.

Time Series Analysis by N. Janson

15

Page 17: Lecture 1 Good afternoon! Lecturer: Dr. Natalia Janson Department of Mathematical Sciences Loughborough University Loughborough Office: W205 Tel: (01509)

Example of control 3

Imagine rainy, windy weather, and the wind wind changes its direction all the time. A girl is holding an umbrellaumbrella. In order to protect the umbrella from breaking, its roof should be held perpendicular to wind.

System: atmosphere interacting with the umbrella

Process: changing of the direction of the wind

The girl’s brain “measures” (without perhaps the girl realizing it) the angle between the stick of umbrella and the wind.

Signal: the angle between the umbrella stick and the wind

If this angle deviates from zero, the girl turns the

umbrella in order to reduce angle to zero

Time Series Analysis by N. Janson

16

Page 18: Lecture 1 Good afternoon! Lecturer: Dr. Natalia Janson Department of Mathematical Sciences Loughborough University Loughborough Office: W205 Tel: (01509)

How time series can arise1. Given a continuous signal, one can sample its values at equal time intervals.

Example: sampled human electrocardiogramme

2. The value of the state variable aggregates (accumulates) during some time interval.Example: daily rainfall

3. Some processes are inherently discrete.Example: trains arriving to the station at discrete time moments

Kinds of processes

• Random (stochastic) process• Deterministic process• Mixed

Time Series Analysis by N. Janson

17

Page 19: Lecture 1 Good afternoon! Lecturer: Dr. Natalia Janson Department of Mathematical Sciences Loughborough University Loughborough Office: W205 Tel: (01509)

Outline of the course

Assumption: The process is random (stochastic)

We assume that the process obeys probabilistic laws, or that the number ofinfluencing factors is too large to be taken account for. We do not assume the existence of deterministic model governing the behaviour of the system considered.This is the most general assumption that can be applies to all processes observed.

To be able to judge about the properties of random processes from observing their time series, one should know the theory of random processes in the firstinstance. We will therefore start from the theory of random processes.

After we grasp the ideas of the theory of random processes, we will learn howto extract the necessary information from the time series. We will mostly consider univariate time series.

Time Series Analysis by N. Janson

18

Page 20: Lecture 1 Good afternoon! Lecturer: Dr. Natalia Janson Department of Mathematical Sciences Loughborough University Loughborough Office: W205 Tel: (01509)

Homework

Problem Sheet 1

1. Give examples of situations in which time series can be used forexplanation, description, forecasting and control.

Time Series Analysis by N. Janson

19