Modelling elements and methods. Building a simulation model Step 1)Get acquinted with the system Step 2)Define the dynamic problem Step 3)Construct a.

Slides:



Advertisements
Similar presentations
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. A PowerPoint Presentation Package to Accompany Applied Statistics.
Advertisements

Forecasting OPS 370.
Object-Oriented Software Development CS 3331 Fall 2009.
FTP Biostatistics II Model parameter estimations: Confronting models with measurements.
Statistics 100 Lecture Set 7. Chapters 13 and 14 in this lecture set Please read these, you are responsible for all material Will be doing chapters
Probabilistic & Statistical Techniques Eng. Tamer Eshtawi First Semester Eng. Tamer Eshtawi First Semester
Simple Regression. Major Questions Given an economic model involving a relationship between two economic variables, how do we go about specifying the.
Linear Regression and Binary Variables The independent variable does not necessarily need to be continuous. If the independent variable is binary (e.g.,
Decision Making: An Introduction 1. 2 Decision Making Decision Making is a process of choosing among two or more alternative courses of action for the.
FIN 685: Risk Management Topic 5: Simulation Larry Schrenk, Instructor.
Chapter 12 Simple Regression
Simple Linear Regression
Discrete-Event Simulation: A First Course Steve Park and Larry Leemis College of William and Mary.
Forecasting.
The Simple Regression Model
1 Simple Linear Regression Chapter Introduction In this chapter we examine the relationship among interval variables via a mathematical equation.
SIMPLE LINEAR REGRESSION
Descriptive Modelling: Simulation “Simulation is the process of designing a model of a real system and conducting experiments with this model for the purpose.
Correlation and Regression Analysis
1 Chapter 10 Correlation and Regression We deal with two variables, x and y. Main goal: Investigate how x and y are related, or correlated; how much they.
Introducing Climate Prediction Find out what happens to radiation from the Sun when it reaches the Earth and what this means for the temperature of the.
Lecture 11 Implementation Issues – Part 2. Monte Carlo Simulation An alternative approach to valuing embedded options is simulation Underlying model “simulates”
Lecture 3: Bivariate Data & Linear Regression 1.Introduction 2.Bivariate Data 3.Linear Analysis of Data a)Freehand Linear Fit b)Least Squares Fit c)Interpolation/Extrapolation.
1 Doing Statistics for Business Doing Statistics for Business Data, Inference, and Decision Making Marilyn K. Pelosi Theresa M. Sandifer Chapter 11 Regression.
SIMPLE LINEAR REGRESSION
Computer modelling ecosystem processes and change Lesson 8 Presentation 1.
Datta Meghe Institute of Management Studies Quantitative Techniques Unit No.:04 Unit Name: Time Series Analysis and Forecasting 1.
Chaos Identification For the driven, damped pendulum, we found chaos for some values of the parameters (the driving torque F) & not for others. Similarly,
1 Least squares procedure Inference for least squares lines Simple Linear Regression.
Chapter 8: Regression Analysis PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with Spreadsheets,
Class Starter Please list the first five words or phrases that come to your mind when you hear the word : CHEMISTRY.
Quantitative Skills 1: Graphing
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 4 Curve Fitting.
Chapter 2 Section 1. Objectives Be able to define: science, scientific method, system, research, hypothesis, experiment, analysis, model, theory, variable,
Introduction to Climate Prediction Objective You will begin to understand what happens to radiation from the Sun when it gets to the Earth and what this.
ENM 503 Lesson 1 – Methods and Models The why’s, how’s, and what’s of mathematical modeling A model is a representation in mathematical terms of some real.
Various topics Petter Mostad Overview Epidemiology Study types / data types Econometrics Time series data More about sampling –Estimation.
DAVIS AQUILANO CHASE PowerPoint Presentation by Charlie Cook F O U R T H E D I T I O N Forecasting © The McGraw-Hill Companies, Inc., 2003 chapter 9.
LEVEL 3 I can identify differences and similarities or changes in different scientific ideas. I can suggest solutions to problems and build models to.
Regression Regression relationship = trend + scatter
Algorithms & Flowchart
LECTURE 1 - SCOPE, OBJECTIVES AND METHODS OF DISCIPLINE "ECONOMETRICS"
C M Clarke-Hill1 Analysing Quantitative Data Forming the Hypothesis Inferential Methods - an overview Research Methods.
© Copyright McGraw-Hill Correlation and Regression CHAPTER 10.
SD modeling process One drawback of using a computer to simulate systems is that the computer will always do exactly what you tell it to do. (Garbage in.
V Bandi and R Lahdelma 1 Forecasting. V Bandi and R Lahdelma 2 Forecasting? Decision-making deals with future problems -Thus data describing future must.
MA354 An Introduction to Math Models (more or less corresponding to 1.0 in your book)
Correlation & Regression Analysis
ContentDetail  Two variable statistics involves discovering if two variables are related or linked to each other in some way. e.g. - Does IQ determine.
MA354 Math Modeling Introduction. Outline A. Three Course Objectives 1. Model literacy: understanding a typical model description 2. Model Analysis 3.
Csci 418/618 Simulation Models Dr. Ken Nygard, IACC 262B
CORRELATION-REGULATION ANALYSIS Томский политехнический университет.
Introduction to Modeling Technology Enhanced Inquiry Based Science Education.
Week 2 Normal Distributions, Scatter Plots, Regression and Random.
Traffic Simulation L2 – Introduction to simulation Ing. Ondřej Přibyl, Ph.D.
Prepared by Lloyd R. Jaisingh
Models.
“The Art of Forecasting”
Chapter 5 STATISTICS (PART 4).
Professor S K Dubey,VSM Amity School of Business
Correlation and Regression
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
Presentation transcript:

Modelling elements and methods

Building a simulation model Step 1)Get acquinted with the system Step 2)Define the dynamic problem Step 3)Construct a conceptual modell Step 4)Define the causal loops or casual relationships Step 5)Express the relationships mathematically in equations Step 6)Get values of parameters Step 7)Implement the mathematical relationships in a computer program Step 8)Run the model Step 9)Judge if the results are reasonable by comparing to callibration data or ”common sence” Step 10) Sensitivity analysis Step 11)Repeat 3-10 to improve the model and parameter estimates Step 12) Validate the model by independent data Step 13) Apply the model

Fundamental dynamic patterns Step 1)Get acquinted with the system Step 2)Define the dynamic problem

P o = 5 r = 0.1 Exponential growth

P o = 100 r = -0.1 Exponential decay

S-shaped growth Overshot

Oscillation Disturbance Equilibrium

?

Chaos theory describes complex motion and the dynamics of sensitive systems. Chaotic systems are mathematically deterministic but nearly impossible to predict: Unpredicted courses of events Discovered by Edward Lorenz in 1961 (Butterfly Effect):Weather forecast based on previous calculations and giving not equal precision data. Chaos theory Chaos

Step 3) Construct a conceptual modell -stock and flow diagram Identify stocks and flows Connect the stocks by flow Identify other elements (variables, parameters or constants) that affect the flows Connect all elements with arrows for the direction of dependency For each element that has incoming arrows there has to be an equation Units for stocks and flows have to be consistent, eg indivuals – individuals per year or g m -2 – g m -2 s -1 Stock Flow Other elements Connector for direction of dependency

Step 3) Construct a conceptual modell Example bird population Bird population Births Carrying capacity Deaths Death rate Birth rate Potential birth rate

Causal Loop Diagram (CLD): A simplified conseptual model where all elements of the model are connected with arrows for dependency -A simplified understanding of a complex problem -A common language to convey the understanding -A way of explaining cause and effect relationships -Explanation of underlying feedback systems -A help for understanding the overall system behaviour Step 4) Define the causal loops or casual relationships

Conceptual modelling: causal loops diagrams (CLD) xy + The lower value of x – the lower value of y The lower value of y – the lower value of x Negative feedback: - or xy + - xy + + xy - - The higher value of x – the higher value of y The higher value of y – the lower value of x The higher value of x – the lower value of y The higher value of y – the higher value of x The higher value of x – the higher value of y The higher value of y – the higher value of x Positive feedback: An odd number if negative dependcies in a loop means negative feedback

Example bird population Carrying capacity Death rate Birth rate Potential birth rate Bird population Deaths Births (-) (+)

Some problems in the conceptual modelling phase: -What is relevant for the model? Sort out essentials -At what level do we simulate: micro or macro level -Static and dynamic factors ? -What are the boundaries of the system? -Time horizon ?

Step 5) Express the relationships mathematically in equations Determine what type of model you will make - functional or mechanistic Use ”standard” equations if possible Analyse relationships with a curve fitting tool

Dynamic models: many functions are differential equations Biological systems: most of the differential equations can not be solved to analytical functions Thanks to computers: numerical approximations But: Numerical method is an approximation to the true solution

Dynamic models change of state variables with time X t : status of X at time t  X/  t : rate of change X t+1 =X t +  X Continuous model in time: dt is infinitive small Discrete model:  t is a period of time

Numeric and analytical solutions r is the net growth rate N t+1 = N t +  N  N = r N t

Example bird population – numerical solution Bird population (P) Births (B) Carrying capacity (CC) Deaths (D) Death rate (r d ) Birth rate (r b ) Potential birth rate (r pot ) For each element that has incoming arrows there has to be an equation

Step 6)Get values of parameters Parameter estimation from Physical laws Physical based experiments/observations General description of ecological processes Best guess of an expert Your own intuition From literature Level of trust

Now we have a solution on paper: Next step is writing the model to a computer program Computer modelling – programming ’Telling’ a computer what to do Compiling = ’translating’ Debugging = finding/correcting errors in the code What you need: Discipline and attention to detail Good memory Abstract thinking With a good conceptual model and some general structure it is rather ”easy” Step 7) Implement the mathematical relationships in a computer program

Computer ’languages’ : ’telling a computer what to do’: Basic Fortran (1950), Fortran IV (1966), Fortran77, Fortran90, Visual Fortran (Formula translation) Pascal, Delphi C, C++ Java, J, J++ Phyton Matlab Stella Simulink SIMILE Excel SQL Programming and computer implementation

Computer implementation = all steps neccessary to translate a mathematical description of a model into a computer program and should work in a useful way -is rather time consuming and thus ’expensive’ -should produce a flexible program: easy to adapt -should produce a ’user-friendly’ program: both for user of the model as user of the source code

General structure for a dynamical model Get input parameter values Get start values of stocks and other state variables Loop in which the timestep is increased by one for each cycle Read driving variables and apply the equation of the processes to get the flows of the model Update the stocks for time+1 End of loop

Step 8) Run the model

Step 9) Judge if the results are reasonable by comparing to callibration data or ”common sence” Reasons for ”poor” results Bugs in the computer implementation Wrong understanding of the dynamical problem Using an application outside the model´s development conditions Normal need for parameter callibration

Varying parameters and/or variables independently This may highlight the weakness in the model and indicate which parameters or variables need much attention and high accuracy A well known technique: Monte Carlo simulations -A random value is selected for each of the tasks/parameters, based on a range (pseudo random) - The model is applied repeately, each time with another random value - A typical Monte Carlo simulation calculates the model hundreds or thousands of times. Book: – Step 10) Sensitivity analysis

If needed go back to improve the model Step 1)Get acquinted with the system Step 2)Define the dynamic problem Step 3)Construct a conceptual modell Step 4)Define the causal loops or casual relationships Step 5)Express the relationships mathematically in equations Step 6)Get values of parameters Step 7)Implement the mathematical relationships in a computer program Step 8)Run the model Step 9)Judge if the results are reasonable by comparing to callibration data or ”common sence” Step 10) Sensitivity analysis Step 11) Repeat 3-10 to improve the model and parameter estimates Step 12) Validate the model by independent data Step 13) Apply the model to new situations

Step 12) Validate the model by independent data - to assure that the model is correct Simulation models are simplifications of the real world. If you leave out (unimportant) factors and only describe the system by capturing the important factors, you have to prove that the model is still usefull Verification: concerned with building the model right Validation: concerned with building the right model. ’Validation is the determination as to whether model behavior departs from real system behavior sufficiently far to jeopardize model objectives’

Validation: Compare modelled and measured values by ’goodness-of-fit’ Try to use standard statistical tests ! -Comparing qualitive similarity is often used, but be careful!

Accuracy of measurements Coincidence: Difference between validation and model data Associotion: Similarity in trends between validation and model data High coincidence and association High coincidence low association Low coincidence high association

Measures of coincidence Book section Student’s t test Observations (O), Modelled value (P)

Measures of association Regression analysis Correlation coefficient, r F-statistics Plotting of residuals Book section 3.3.1

Accuracy is often used as the complement of error: 95% accuracy implies 5% error But accuracy refers also often to the fidelity (= trohet) with which the model represents the processes and relationsships

Sometimes it is not possible to validate a model Then there are other options: - perform a sensitivity analysis - compare with other validated models or compartment of other models

to new situations Interpolation and extrapolation in time and space Test of new policies, methods etc Pack the model in a way that is suitable for the end user -Who is the end user -What will the model do? -How can the application guard against input error -How can the application guard agains misinterpretation of the results -What documentation is needed Step 13) Apply the model

Problem formulation Conceptual model construction System boundaries CLD Variables, parameters and settings Reference behavior -Model construction From conceptional model to quantitative model Parameterization/Verification Sensitivity and robustness testing Model validation -Model use Scenario analysis Backcasting and forecasting Application/Use.. Steps in modelling Book: chapter 2

Think about a house and its heating system. Assume a simple dynamical model that consists of these variables: - Temperature inside the house - Outdoor temperature - Target temperature set at the thermostats of the radiators - Energy content of the house - Heat production from the radiators - Heat loss to the surrounding Put these variables together in a conceptual model diagram and a causal loop diagram and explain what the diagrams tell you. Exercise in conceptual model/causual loop construction from 2011’s exam