97
Introduction to dynamical system modelling Introduction to dynamical system modelling Shan He School for Computational Science University of Birmingham Module 06-23836: Computational Modelling with MATLAB

Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

  • Upload
    others

  • View
    5

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Introduction to dynamical system modelling

Shan He

School for Computational ScienceUniversity of Birmingham

Module 06-23836: Computational Modelling with MATLAB

Page 2: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Outline

Outline of Topics

Dynamical systems

Concepts about modelling

How to model?

How to use models for scientific research

Page 3: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Dynamical systems

What is a system?

A System: consisting of interconnected components, built orevolved with a desired purpose.Examples:

I Toilet tank.

I Car engine.

I Brain.

I Bird flock.

I Climatesystem.

Page 4: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Dynamical systems

What is a system?

A System: consisting of interconnected components, built orevolved with a desired purpose.Examples:

I Toilet tank.

I Car engine.

I Brain.

I Bird flock.

I Climatesystem.

Page 5: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Dynamical systems

What is a system?

A System: consisting of interconnected components, built orevolved with a desired purpose.Examples:

I Toilet tank.

I Car engine.

I Brain.

I Bird flock.

I Climatesystem.

Page 6: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Dynamical systems

What is a system?

A System: consisting of interconnected components, built orevolved with a desired purpose.Examples:

I Toilet tank.

I Car engine.

I Brain.

I Bird flock.

I Climatesystem.

Page 7: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Dynamical systems

What is a system?

A System: consisting of interconnected components, built orevolved with a desired purpose.Examples:

I Toilet tank.

I Car engine.

I Brain.

I Bird flock.

I Climatesystem.

Page 8: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Dynamical systems

What is a dynamical system?

I Static vs. Dynamical.

I Static system: current inputs =⇒ outputs.

Static systemInputs xt Outputs y

I Dynamical system: history + current inputs =⇒ outputs.

Dynamical system

Memory

Inputs xt Outputs y

Page 9: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Dynamical systems

What is a dynamical system?

I Static vs. Dynamical.

I Static system: current inputs =⇒ outputs.

Static systemInputs xt Outputs y

I Dynamical system: history + current inputs =⇒ outputs.

Dynamical system

Memory

Inputs xt Outputs y

Page 10: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Dynamical systems

What is a dynamical system?

I Static vs. Dynamical.

I Static system: current inputs =⇒ outputs.

Static systemInputs xt Outputs y

I Dynamical system: history + current inputs =⇒ outputs.

Dynamical system

Memory

Inputs xt Outputs y

Page 11: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Dynamical systems

What is a dynamical system?

I Outputs depend on the present and past values of the inputs.

I Changes over time.

I Sometimes called dynamic systems or sequential systems.

I Mathematically described with differential or differenceequations.

Page 12: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Dynamical systems

What is a dynamical system?

I Outputs depend on the present and past values of the inputs.

I Changes over time.

I Sometimes called dynamic systems or sequential systems.

I Mathematically described with differential or differenceequations.

Page 13: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Dynamical systems

What is a dynamical system?

I Outputs depend on the present and past values of the inputs.

I Changes over time.

I Sometimes called dynamic systems or sequential systems.

I Mathematically described with differential or differenceequations.

Page 14: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Dynamical systems

What is a dynamical system?

I Outputs depend on the present and past values of the inputs.

I Changes over time.

I Sometimes called dynamic systems or sequential systems.

I Mathematically described with differential or differenceequations.

Page 15: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Dynamical systems

Which one is a dynamical system?

Which one is a dynamical system?

I Toilet tank.

I Car engine.

I Brian.

I Bird flock.

I Climate system.

I X

I X

I X

I X

I X

Page 16: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Dynamical systems

Which one is a dynamical system?

Which one is a dynamical system?

I Toilet tank.

I Car engine.

I Brian.

I Bird flock.

I Climate system.

I X

I X

I X

I X

I X

Page 17: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Dynamical systems

Which one is a dynamical system?

Which one is a dynamical system?

I Toilet tank.

I Car engine.

I Brian.

I Bird flock.

I Climate system.

I X

I X

I X

I X

I X

Page 18: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Dynamical systems

Which one is a dynamical system?

Which one is a dynamical system?

I Toilet tank.

I Car engine.

I Brian.

I Bird flock.

I Climate system.

I X

I X

I X

I X

I X

Page 19: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Dynamical systems

Which one is a dynamical system?

Which one is a dynamical system?

I Toilet tank.

I Car engine.

I Brian.

I Bird flock.

I Climate system.

I X

I X

I X

I X

I X

Page 20: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Dynamical systems

Which one is a dynamical system?

Which one is a dynamical system?

I Toilet tank.

I Car engine.

I Brian.

I Bird flock.

I Climate system.

I X

I X

I X

I X

I X

Page 21: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Dynamical systems

Biological systems

I Outputs depend on the present and past values of the inputs.

I Biological systems change over time.

I Biological systems are dynamical systems.

I Biological systems are complex: emergence.

I Reductionism might not work well

I System point of view on biological systems is new - SystemsBiology.

Page 22: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Dynamical systems

Biological systems

I Outputs depend on the present and past values of the inputs.

I Biological systems change over time.

I Biological systems are dynamical systems.

I Biological systems are complex: emergence.

I Reductionism might not work well

I System point of view on biological systems is new - SystemsBiology.

Page 23: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Dynamical systems

Biological systems

I Outputs depend on the present and past values of the inputs.

I Biological systems change over time.

I Biological systems are dynamical systems.

I Biological systems are complex: emergence.

I Reductionism might not work well

I System point of view on biological systems is new - SystemsBiology.

Page 24: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Dynamical systems

Biological systems

I Outputs depend on the present and past values of the inputs.

I Biological systems change over time.

I Biological systems are dynamical systems.

I Biological systems are complex: emergence.

I Reductionism might not work well

I System point of view on biological systems is new - SystemsBiology.

Page 25: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Dynamical systems

Biological systems

I Outputs depend on the present and past values of the inputs.

I Biological systems change over time.

I Biological systems are dynamical systems.

I Biological systems are complex: emergence.

I Reductionism might not work well

I System point of view on biological systems is new - SystemsBiology.

Page 26: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Concepts about modelling

What are models?

When we say models, we usually mean computational/mathmeticalmodels.

I Model: a description of a system usingmathematical/computational concepts and language.

I Mathematical model: a set of variables and a set ofequations that establish relationships between the variables.

I Computational model: a computer program thatimplements computational techniques, e.g., rules, automata,petri nets or artificial neural networks to describe a system.

I Can be hybrid: Mathematical models + Computationalmodels.

Page 27: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Concepts about modelling

What are models?

When we say models, we usually mean computational/mathmeticalmodels.

I Model: a description of a system usingmathematical/computational concepts and language.

I Mathematical model: a set of variables and a set ofequations that establish relationships between the variables.

I Computational model: a computer program thatimplements computational techniques, e.g., rules, automata,petri nets or artificial neural networks to describe a system.

I Can be hybrid: Mathematical models + Computationalmodels.

Page 28: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Concepts about modelling

What are models?

When we say models, we usually mean computational/mathmeticalmodels.

I Model: a description of a system usingmathematical/computational concepts and language.

I Mathematical model: a set of variables and a set ofequations that establish relationships between the variables.

I Computational model: a computer program thatimplements computational techniques, e.g., rules, automata,petri nets or artificial neural networks to describe a system.

I Can be hybrid: Mathematical models + Computationalmodels.

Page 29: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Concepts about modelling

What are models?

When we say models, we usually mean computational/mathmeticalmodels.

I Model: a description of a system usingmathematical/computational concepts and language.

I Mathematical model: a set of variables and a set ofequations that establish relationships between the variables.

I Computational model: a computer program thatimplements computational techniques, e.g., rules, automata,petri nets or artificial neural networks to describe a system.

I Can be hybrid: Mathematical models + Computationalmodels.

Page 30: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Concepts about modelling

Why use models?

We use model to describe phenomena and understand phenomena.More specifically:

I Predict: Make testable prediction

I Explain: Reveal underlying mechanisms or rule out particularexplanations

I Discover: Propose new questions

I Guide: Data collection or experiments design

Page 31: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Concepts about modelling

Why use models?

We use model to describe phenomena and understand phenomena.More specifically:

I Predict: Make testable prediction

I Explain: Reveal underlying mechanisms or rule out particularexplanations

I Discover: Propose new questions

I Guide: Data collection or experiments design

Page 32: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Concepts about modelling

Why use models?

We use model to describe phenomena and understand phenomena.More specifically:

I Predict: Make testable prediction

I Explain: Reveal underlying mechanisms or rule out particularexplanations

I Discover: Propose new questions

I Guide: Data collection or experiments design

Page 33: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Concepts about modelling

Why use models?

We use model to describe phenomena and understand phenomena.More specifically:

I Predict: Make testable prediction

I Explain: Reveal underlying mechanisms or rule out particularexplanations

I Discover: Propose new questions

I Guide: Data collection or experiments design

Page 34: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Concepts about modelling

Example: Climate models

By building climate models, we can:

I Predict: How temperature changes in the next few days?

I Explain: How the global atmosphere is operating?

I Discover: How the carbon dioxide affects our climate?

I Guide: Collect climate data.

Page 35: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Concepts about modelling

Example: Climate models

By building climate models, we can:

I Predict: How temperature changes in the next few days?

I Explain: How the global atmosphere is operating?

I Discover: How the carbon dioxide affects our climate?

I Guide: Collect climate data.

Page 36: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Concepts about modelling

Example: Climate models

By building climate models, we can:

I Predict: How temperature changes in the next few days?

I Explain: How the global atmosphere is operating?

I Discover: How the carbon dioxide affects our climate?

I Guide: Collect climate data.

Page 37: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

Concepts about modelling

Example: Climate models

By building climate models, we can:

I Predict: How temperature changes in the next few days?

I Explain: How the global atmosphere is operating?

I Discover: How the carbon dioxide affects our climate?

I Guide: Collect climate data.

Page 38: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling methods

I Equation based methods:

I Differential equation: Ordinary Differential Equation, Partialdifferential equation.

I Statistical methods: linear regression, multilevel model andStructural equation model.

I Game theoretic methods.

I Agent-based methods.

I Other methods: data driven methods.

Page 39: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling methods

I Equation based methods:I Differential equation: Ordinary Differential Equation, Partial

differential equation.

I Statistical methods: linear regression, multilevel model andStructural equation model.

I Game theoretic methods.

I Agent-based methods.

I Other methods: data driven methods.

Page 40: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling methods

I Equation based methods:I Differential equation: Ordinary Differential Equation, Partial

differential equation.I Statistical methods: linear regression, multilevel model and

Structural equation model.

I Game theoretic methods.

I Agent-based methods.

I Other methods: data driven methods.

Page 41: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling methods

I Equation based methods:I Differential equation: Ordinary Differential Equation, Partial

differential equation.I Statistical methods: linear regression, multilevel model and

Structural equation model.I Game theoretic methods.

I Agent-based methods.

I Other methods: data driven methods.

Page 42: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling methods

I Equation based methods:I Differential equation: Ordinary Differential Equation, Partial

differential equation.I Statistical methods: linear regression, multilevel model and

Structural equation model.I Game theoretic methods.

I Agent-based methods.

I Other methods: data driven methods.

Page 43: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling methods

I Equation based methods:I Differential equation: Ordinary Differential Equation, Partial

differential equation.I Statistical methods: linear regression, multilevel model and

Structural equation model.I Game theoretic methods.

I Agent-based methods.

I Other methods: data driven methods.

Page 44: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling principles

I Question: How to build the best model to model a system?

I No answer, even no a single definition to ‘the best model’.I One good attempt is Minimum Description Length principle,

or Occam’s razor.

I “The best model is the one that is the smallest.”

I Einstein’s razor’ (Better!):

I The model should be made as simple as possible, but nosimpler.

Page 45: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling principles

I Question: How to build the best model to model a system?

I No answer, even no a single definition to ‘the best model’.

I One good attempt is Minimum Description Length principle,or Occam’s razor.

I “The best model is the one that is the smallest.”

I Einstein’s razor’ (Better!):

I The model should be made as simple as possible, but nosimpler.

Page 46: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling principles

I Question: How to build the best model to model a system?

I No answer, even no a single definition to ‘the best model’.I One good attempt is Minimum Description Length principle,

or Occam’s razor.

I “The best model is the one that is the smallest.”

I Einstein’s razor’ (Better!):

I The model should be made as simple as possible, but nosimpler.

Page 47: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling principles

I Question: How to build the best model to model a system?

I No answer, even no a single definition to ‘the best model’.I One good attempt is Minimum Description Length principle,

or Occam’s razor.I “The best model is the one that is the smallest.”

I Einstein’s razor’ (Better!):

I The model should be made as simple as possible, but nosimpler.

Page 48: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling principles

I Question: How to build the best model to model a system?

I No answer, even no a single definition to ‘the best model’.I One good attempt is Minimum Description Length principle,

or Occam’s razor.I “The best model is the one that is the smallest.”

I Einstein’s razor’ (Better!):

I The model should be made as simple as possible, but nosimpler.

Page 49: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling principles

I Question: How to build the best model to model a system?

I No answer, even no a single definition to ‘the best model’.I One good attempt is Minimum Description Length principle,

or Occam’s razor.I “The best model is the one that is the smallest.”

I Einstein’s razor’ (Better!):I The model should be made as simple as possible, but no

simpler.

Page 50: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

How to put into practice?

I found this paper very useful: 5 Simple principles of modelling byProfessor Mike Pidd. Here are the 5 principles:

I Model simple, think complicated.

I Be parsimonious, start small and add.

I Divide and conquer, avoid mega models.

I Don’t fall in love with data.

I Model building may feel like muddling through.

Page 51: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

How to put into practice?

I found this paper very useful: 5 Simple principles of modelling byProfessor Mike Pidd. Here are the 5 principles:

I Model simple, think complicated.

I Be parsimonious, start small and add.

I Divide and conquer, avoid mega models.

I Don’t fall in love with data.

I Model building may feel like muddling through.

Page 52: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

How to put into practice?

I found this paper very useful: 5 Simple principles of modelling byProfessor Mike Pidd. Here are the 5 principles:

I Model simple, think complicated.

I Be parsimonious, start small and add.

I Divide and conquer, avoid mega models.

I Don’t fall in love with data.

I Model building may feel like muddling through.

Page 53: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

How to put into practice?

I found this paper very useful: 5 Simple principles of modelling byProfessor Mike Pidd. Here are the 5 principles:

I Model simple, think complicated.

I Be parsimonious, start small and add.

I Divide and conquer, avoid mega models.

I Don’t fall in love with data.

I Model building may feel like muddling through.

Page 54: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

How to put into practice?

I found this paper very useful: 5 Simple principles of modelling byProfessor Mike Pidd. Here are the 5 principles:

I Model simple, think complicated.

I Be parsimonious, start small and add.

I Divide and conquer, avoid mega models.

I Don’t fall in love with data.

I Model building may feel like muddling through.

Page 55: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process

SimulationDefinitionIdentification

ValidationAnalysis Satisfied?

No

Yes

Page 56: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Identification

I Identify the system to model (What)

I Gene regulatory networks.I Cellular signalling networks.I Prey-predator interaction.

I Or more importantly, identify the problems to answer (Why).I For example, if we model prey-predator interaction, we wish to

answer:

I How predators affect prey populations, and vice-versa?I Whether a prey-predator system is stable or collapse?

Page 57: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Identification

I Identify the system to model (What)I Gene regulatory networks.

I Cellular signalling networks.I Prey-predator interaction.

I Or more importantly, identify the problems to answer (Why).I For example, if we model prey-predator interaction, we wish to

answer:

I How predators affect prey populations, and vice-versa?I Whether a prey-predator system is stable or collapse?

Page 58: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Identification

I Identify the system to model (What)I Gene regulatory networks.I Cellular signalling networks.

I Prey-predator interaction.

I Or more importantly, identify the problems to answer (Why).I For example, if we model prey-predator interaction, we wish to

answer:

I How predators affect prey populations, and vice-versa?I Whether a prey-predator system is stable or collapse?

Page 59: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Identification

I Identify the system to model (What)I Gene regulatory networks.I Cellular signalling networks.I Prey-predator interaction.

I Or more importantly, identify the problems to answer (Why).I For example, if we model prey-predator interaction, we wish to

answer:

I How predators affect prey populations, and vice-versa?I Whether a prey-predator system is stable or collapse?

Page 60: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Identification

I Identify the system to model (What)I Gene regulatory networks.I Cellular signalling networks.I Prey-predator interaction.

I Or more importantly, identify the problems to answer (Why).

I For example, if we model prey-predator interaction, we wish toanswer:

I How predators affect prey populations, and vice-versa?I Whether a prey-predator system is stable or collapse?

Page 61: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Identification

I Identify the system to model (What)I Gene regulatory networks.I Cellular signalling networks.I Prey-predator interaction.

I Or more importantly, identify the problems to answer (Why).I For example, if we model prey-predator interaction, we wish to

answer:

I How predators affect prey populations, and vice-versa?I Whether a prey-predator system is stable or collapse?

Page 62: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Identification

I Identify the system to model (What)I Gene regulatory networks.I Cellular signalling networks.I Prey-predator interaction.

I Or more importantly, identify the problems to answer (Why).I For example, if we model prey-predator interaction, we wish to

answer:I How predators affect prey populations, and vice-versa?

I Whether a prey-predator system is stable or collapse?

Page 63: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Identification

I Identify the system to model (What)I Gene regulatory networks.I Cellular signalling networks.I Prey-predator interaction.

I Or more importantly, identify the problems to answer (Why).I For example, if we model prey-predator interaction, we wish to

answer:I How predators affect prey populations, and vice-versa?I Whether a prey-predator system is stable or collapse?

Page 64: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Definition

SimulationDefinitionIdentification

ValidationAnalysis Satisfied?

No

Yes

Page 65: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Definition

The most important step. General suggestions are:I Draw a detailed picture:

I Defines all components.I Defines the relations between components.

I Define the parameters and variables to be used in the model.I Check literature:

I Any descriptions about the components?I Any relations reported?I What parameters and variables used in similar studies?

I You might need to simplify your assumptions.

Page 66: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Definition

The most important step. General suggestions are:I Draw a detailed picture:

I Defines all components.

I Defines the relations between components.

I Define the parameters and variables to be used in the model.I Check literature:

I Any descriptions about the components?I Any relations reported?I What parameters and variables used in similar studies?

I You might need to simplify your assumptions.

Page 67: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Definition

The most important step. General suggestions are:I Draw a detailed picture:

I Defines all components.I Defines the relations between components.

I Define the parameters and variables to be used in the model.I Check literature:

I Any descriptions about the components?I Any relations reported?I What parameters and variables used in similar studies?

I You might need to simplify your assumptions.

Page 68: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Definition

The most important step. General suggestions are:I Draw a detailed picture:

I Defines all components.I Defines the relations between components.

I Define the parameters and variables to be used in the model.

I Check literature:

I Any descriptions about the components?I Any relations reported?I What parameters and variables used in similar studies?

I You might need to simplify your assumptions.

Page 69: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Definition

The most important step. General suggestions are:I Draw a detailed picture:

I Defines all components.I Defines the relations between components.

I Define the parameters and variables to be used in the model.I Check literature:

I Any descriptions about the components?I Any relations reported?I What parameters and variables used in similar studies?

I You might need to simplify your assumptions.

Page 70: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Definition

The most important step. General suggestions are:I Draw a detailed picture:

I Defines all components.I Defines the relations between components.

I Define the parameters and variables to be used in the model.I Check literature:

I Any descriptions about the components?

I Any relations reported?I What parameters and variables used in similar studies?

I You might need to simplify your assumptions.

Page 71: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Definition

The most important step. General suggestions are:I Draw a detailed picture:

I Defines all components.I Defines the relations between components.

I Define the parameters and variables to be used in the model.I Check literature:

I Any descriptions about the components?I Any relations reported?

I What parameters and variables used in similar studies?

I You might need to simplify your assumptions.

Page 72: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Definition

The most important step. General suggestions are:I Draw a detailed picture:

I Defines all components.I Defines the relations between components.

I Define the parameters and variables to be used in the model.I Check literature:

I Any descriptions about the components?I Any relations reported?I What parameters and variables used in similar studies?

I You might need to simplify your assumptions.

Page 73: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Definition

The most important step. General suggestions are:I Draw a detailed picture:

I Defines all components.I Defines the relations between components.

I Define the parameters and variables to be used in the model.I Check literature:

I Any descriptions about the components?I Any relations reported?I What parameters and variables used in similar studies?

I You might need to simplify your assumptions.

Page 74: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Simulation

SimulationDefinitionIdentification

ValidationAnalysis Satisfied?

No

Yes

Page 75: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Simulation

This simply means, in our module, to execute your MATLABprogram ;)

Page 76: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Validation

SimulationDefinitionIdentification

ValidationAnalysis Satisfied?

No

Yes

Page 77: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Validation

I This simply means compare the outputs from your MATLABprogram with experimental data.

I Decision time: Do the results match the experimental data?

I Answer: Yes =⇒ AnalysisI Answer: No =⇒ Definition. We need to check:

I Simple typos?I Oversimplified assumptions?I Missing components?I Incorrect parameters?

Page 78: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Validation

I This simply means compare the outputs from your MATLABprogram with experimental data.

I Decision time: Do the results match the experimental data?

I Answer: Yes =⇒ AnalysisI Answer: No =⇒ Definition. We need to check:

I Simple typos?I Oversimplified assumptions?I Missing components?I Incorrect parameters?

Page 79: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Validation

I This simply means compare the outputs from your MATLABprogram with experimental data.

I Decision time: Do the results match the experimental data?

I Answer: Yes =⇒ Analysis

I Answer: No =⇒ Definition. We need to check:

I Simple typos?I Oversimplified assumptions?I Missing components?I Incorrect parameters?

Page 80: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Validation

I This simply means compare the outputs from your MATLABprogram with experimental data.

I Decision time: Do the results match the experimental data?

I Answer: Yes =⇒ AnalysisI Answer: No =⇒ Definition. We need to check:

I Simple typos?I Oversimplified assumptions?I Missing components?I Incorrect parameters?

Page 81: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Validation

I This simply means compare the outputs from your MATLABprogram with experimental data.

I Decision time: Do the results match the experimental data?

I Answer: Yes =⇒ AnalysisI Answer: No =⇒ Definition. We need to check:

I Simple typos?

I Oversimplified assumptions?I Missing components?I Incorrect parameters?

Page 82: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Validation

I This simply means compare the outputs from your MATLABprogram with experimental data.

I Decision time: Do the results match the experimental data?

I Answer: Yes =⇒ AnalysisI Answer: No =⇒ Definition. We need to check:

I Simple typos?I Oversimplified assumptions?

I Missing components?I Incorrect parameters?

Page 83: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Validation

I This simply means compare the outputs from your MATLABprogram with experimental data.

I Decision time: Do the results match the experimental data?

I Answer: Yes =⇒ AnalysisI Answer: No =⇒ Definition. We need to check:

I Simple typos?I Oversimplified assumptions?I Missing components?

I Incorrect parameters?

Page 84: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Validation

I This simply means compare the outputs from your MATLABprogram with experimental data.

I Decision time: Do the results match the experimental data?

I Answer: Yes =⇒ AnalysisI Answer: No =⇒ Definition. We need to check:

I Simple typos?I Oversimplified assumptions?I Missing components?I Incorrect parameters?

Page 85: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Analysis

SimulationDefinitionIdentification

ValidationAnalysis Satisfied?

No

Yes

Page 86: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Analysis

I By analysing the results, we aim to answer:

I What do the results imply or suggested?I What is new and what did not know?I What prediction can we make?

I If the analysis proposes new questions, we need to go back toidentification.

Page 87: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Analysis

I By analysing the results, we aim to answer:I What do the results imply or suggested?

I What is new and what did not know?I What prediction can we make?

I If the analysis proposes new questions, we need to go back toidentification.

Page 88: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Analysis

I By analysing the results, we aim to answer:I What do the results imply or suggested?I What is new and what did not know?

I What prediction can we make?

I If the analysis proposes new questions, we need to go back toidentification.

Page 89: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Analysis

I By analysing the results, we aim to answer:I What do the results imply or suggested?I What is new and what did not know?I What prediction can we make?

I If the analysis proposes new questions, we need to go back toidentification.

Page 90: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to model?

Modelling process: Analysis

I By analysing the results, we aim to answer:I What do the results imply or suggested?I What is new and what did not know?I What prediction can we make?

I If the analysis proposes new questions, we need to go back toidentification.

Page 91: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to use models for scientific research

Modelling process and scientific method

We should always put modelling into the context of scientificmethod:

1. Make general observations of phenomena

2. Formulate a hypothesis that is consistent with yourobservations.

3. Use the hypothesis to make predictions.

4. Develop experiments to test your hypothesis and modify thehypothesis in the light of your results.

5. Repeat steps 3&4 until there are no discrepancies betweenhypothesis and phenomena.

Page 92: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to use models for scientific research

Modelling process and scientific method

We should always put modelling into the context of scientificmethod:

1. Make general observations of phenomena

2. Formulate a hypothesis that is consistent with yourobservations.

3. Use the hypothesis to make predictions.

4. Develop experiments to test your hypothesis and modify thehypothesis in the light of your results.

5. Repeat steps 3&4 until there are no discrepancies betweenhypothesis and phenomena.

Page 93: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to use models for scientific research

Modelling process and scientific method

We should always put modelling into the context of scientificmethod:

1. Make general observations of phenomena

2. Formulate a hypothesis that is consistent with yourobservations.

3. Use the hypothesis to make predictions.

4. Develop experiments to test your hypothesis and modify thehypothesis in the light of your results.

5. Repeat steps 3&4 until there are no discrepancies betweenhypothesis and phenomena.

Page 94: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to use models for scientific research

Modelling process and scientific method

We should always put modelling into the context of scientificmethod:

1. Make general observations of phenomena

2. Formulate a hypothesis that is consistent with yourobservations.

3. Use the hypothesis to make predictions.

4. Develop experiments to test your hypothesis and modify thehypothesis in the light of your results.

5. Repeat steps 3&4 until there are no discrepancies betweenhypothesis and phenomena.

Page 95: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to use models for scientific research

Modelling process and scientific method

We should always put modelling into the context of scientificmethod:

1. Make general observations of phenomena

2. Formulate a hypothesis that is consistent with yourobservations.

3. Use the hypothesis to make predictions.

4. Develop experiments to test your hypothesis and modify thehypothesis in the light of your results.

5. Repeat steps 3&4 until there are no discrepancies betweenhypothesis and phenomena.

Page 96: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to use models for scientific research

SimulationDefinitionIdentification

ValidationAnalysis Satisfied?

No

Yes

Formulate hypothesis

Develop

experiments

Phenomena

Step 1

Step 2

Step 3

Step 4

Page 97: Introduction to dynamical system modellingszh/teaching/matlabmodeling/Lecture2... · 2013-01-10 · Introduction to dynamical system modelling Dynamical systems What is a system?

Introduction to dynamical system modelling

How to use models for scientific research

Too abstract?

After learning MATLAB next week, in week 4, I will follow theprocess to model predator-prey intreactions using OrdinaryDifferential Equations.