Early Warning Signals Workshop Chris Boulton

Slides:



Advertisements
Similar presentations
Employment Prospects of Economics Graduates John Sloman Director, Economics Network.
Advertisements

Accessing electronic journals from off- campus This causes lots of headaches, but dont despair, heres how to do it! (Please note – this presentation is.
Session 1: Introduction to Complex Survey Design
WOMEN’S SHOW SERIES GREAT EXHIBIT DESIGN This presentation includes an audio component. Please turn up the volume on your computer. Click your mouse or.
There are two statistical tests for mean: 1) z test – Used for large samples (n ≥ 30) 1) t test – Used for small samples (n < 30)
VOCABULARY MOD2-22.
Whirlwind tour of foreign language computing Chris Dillon Faculty Information Support Officer for Arts & Humanities and Laws.
Podcasting workshop FOR IAS, 23 RD OCTOBER 2014 DAVID BECK,
Performance Check. What Is A Performance Check? A Performance Check recognizes the variance in web page download times and gives a representation of the.
© 2010 Blackboard Inc. All rights reserved. Blackboard Learn 9.1 SafeAssign.
Scripts and Flow Control. Scripts So far we have been entering commands directly into the command line But there is a better way Script files (and functions)
5.6 Semaphores Semaphores –Software construct that can be used to enforce mutual exclusion –Contains a protected variable Can be accessed only via wait.
General Computer Science for Engineers CISC 106 Lecture 08 Dr. John Cavazos Computer and Information Sciences 2/27/2009.
Selected techniques from the Creative Design Process Vision statement Requirements workshop, other facilitated workshops Creative Design Brief Navigation.
20-20 MDS® Coaching and Getting the Best out of Others-1.
When running the CTAS MS Access database modules you may see this security warning This indicates that all scripting within the database has been disabled.
1.When you first open Publisher 2013, you will see a startup screen that allows you to create a new publication. 2.Click the type of publication that.
WaveMaker Visual AJAX Studio 4.0 Training Troubleshooting.
VA RUSLE2 Guidance Series: Tips for Viewing RUSLE2 Guidance in Powerpoint Format February 9, 2005 Chris Lawrence, NRCS Agronomist 804/ or
Welcome to the Tutorials of IRIS Chapter 1 Click To Continue.
Slowing down - early warning sign of an approaching tipping point 1. Introduction The phrase “tipping point” means that “little things can make a big difference,
Step 1: Go to Step 2: Click on the CREATE tab.
Ch 101 Chapter 10 Introduction to Batch Files. Ch 102 Overview A batch file is a text file that contains an ordered series of commands.
Spreadsheet Operations These increase the efficiency of data entry, the performing of calculations, and the presentation of information.
Bullet-Proofing your Excel Spreadsheets Tech Day 2013 Presentation.
FPGA_Editor Probes. . Probe Overview 2 Adding a Probe : GUI Probes tie an internal signal to an output pin To Launch the GUI: Click the “probes” button.
Compiling a C Program. Before we can begin we must open a telnet session to phobos. There are a number of ways to do this, but the easiest is to click.
LYNN BRADSHAW CREATING WEB SITES WITH XARA WEB DESIGNER 7.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview How to create a first ASP.NET application.
Chapters 2 & 3 MATLAB Skills This tutorial revisits Examples 3.1 to 3.4 to show how MATLAB can be used to solve the same problems 1.Scatter Plots 2.Other.
14 Copyright © Oracle Corporation, All rights reserved. SQL Workshop.
WHAT TO HAND IN FOR ASSIGNMENTS & PROJECTS In the body of the message provide a script in which the executable program created is run with the source.
1 Setting Up a Company. 2 Objective Using the EasyStep Interview.
Project Planning Defining the project Software specification Development stages Software testing.
WS2-1 ADM , Workshop 2, August 2005 Copyright  2005 MSC.Software Corporation WORKSHOP 2 EXPRESSIONS: OVERVIEW.
CLEANING UP MESSY DATA WITH OPEN REFINE Presented by Anjum Najmi & Spencer Keralis.
Searching for Images Improving the quality of your Google Search.
Mouseless Computing For Windows OS After completing this tutorial you will be able to navigate your computer using keyboard shortcuts.
Microsoft ® Office Word 2010 Introduction Creating your First Basic Document.
POS 420 Week 2 Individual File Processing Commands Worksheet Resource: File Processing Commands Worksheet Complete the File Processing Commands Worksheet.
POS 420 Week 4 DQ 5 What are some of the signals that are used to control scripts? Please give an example on how to use it. To purchase this material click.
Installing Analysis Tool Pak
Exploring Microsoft Office Exploring Excel Appendix A
PhotoShop Creative Suite 3
Brian McCallum UWS, Web Services Unit 15 November 2011
Matlab Workshop 9/22/2018.
Understanding your PSAT/NMSQT® Score Report Plus
Starting a project in VisualDSP++
Installing Analysis Tool Pak
Customizable Gauges, Dials, and Meters
._,.,._.,,,.., ,.,,,, _,....., ­ µ. qt......
Workday Merit Process - Supervisors
Step 3: You will see this page
Ашық сабақ 7 сынып Файлдар мен қапшықтар Сабақтың тақырыбы:
Windows басқару элементтері
Recording and editing a Podcast
Scripts In Matlab.
ENEE222 Elements of Discrete Signal Analysis Lab 3 1.
GMRT Online for Students
CLICK TO START.
Қош келдіңіздер!.
CLICK TO START.
Conflict Of Interest (2.0)
Информатика пән мұғалімі : Аитова Карима.
Workday Merit Process - Supervisors
Монголын даатгалын зах зээлийн бодлогын асуудлууд
Call Now : Click : -
Call Now : Click : -
Call Now : Click : -
Tips for Importing into Another Gmail Account | GMAIL CUSTOMER SERVICE NUMBER
Presentation transcript:

Early Warning Signals Workshop Chris Boulton

Overview Creating a time series which exhibits a tipping point. Testing generic indicators on this time series (AR(1) and variance). Using the Early Warning Signals toolbox created by Vasilis Dakos.

Setting Up R Once R is open, you need to open a new script file Click File -> New Script This should open a new window where you can create a script full of commands.

Creating the Tipping Point Change in x (time series) is dependent on a potential U of the system. This U contains m which changes over time. When m, reaches critical value μ, system reaches tipping point.

Creating the Tipping Point In R, you can use either = or <- to assign values to variables. Time runs from 1 to 1000 in steps of 2. This sets up the value for μ and m which is going to reach the critical value at time t=900.

Creating the Tipping Point Highlight the lines typed out in the script and press Crtl+R to copy and paste them into the console. In the console you can type a variable out to see its value.

Creating the Tipping Point We need to create an array to store time series x. These lines repeat NA a number of times equal to the length of t (500). Then assigns the first value to -1 as this is near the equilibrium of the state which will lose stability.

Creating the Tipping Point Now we loop through using a forward Euler scheme, with a time step of ½ (not to be confused with jumping up in steps of 2 when creating t. Add a noise term on, rnorm is a random-normal value with mean=0 and sd=1. Also note we are using –U not U.

Creating the Tipping Point Now we have a time series for x which we can plot it

Preparing for Using EWS Now we have a time series which exhibits a tipping point and we want to use EWS on it. We only want to use information prior to the tipping point in our analysis. Can work out where tipping point is from graph and then checking values individually.

Preparing for Using EWS We cut and check our time series now doesnt include a tip. Note that x[1:a] will select values 1 to a of x.

Preparing for Using EWS We want to know the length l of our time series for the analysis. To start with we will chose a window length (WL) equal to half this (floor function rounds number down) We also use a Kernal smoother with a bandwidth (BW) equal to 30.

Using AR(1) Coefficient Estimation We need to detrend the time series with the Kernal smoother (ksmooth). ksmooth takes x and y values, a bandwidth and points to calculate the smoothing function on (supplied in this order in the code). We also need to create an array to store our AR(1) estimation over time. This will have length equal to l-wl+1.

Using AR(1) Coefficient Estimation Now we use the sliding window to test AR(1) over time. We do the analysis in a for loop which moves the sliding window up once each time. ar.ols fits a model of the form x(t+1) = a*x(t) + e. a is an object called ar embedded in arfit which is found with arfit$ar.

Plotting AR(1) We can now plot our AR(1) coefficient estimation. Plotting at the end of your window length makes sense for early warning. Knowing the plotting commands is not essential.

Using Variance We can also use the same for loop to look how variance changes on a sliding window length. This is more simple as we do not need to use the ar.ols model fit before. It also has less inputs (i.e. no aic=FALSE or order.max=1).

Plotting AR(1) and Variance We can now plot both AR(1) and variance indicators together.

Kendall Tau Correlation Coefficient We now want to know how strong the trends in our indicators are. This is done with Kendall Tau Correlation Coefficient which measures tendency. We can load a package which calculates this for us called Kendall (may need to use install.packages line).

Kendall Tau Correlation Coefficient Tau measures the number of concordant pairs (both x and y greater or both less than their previous values) against the number of discordant (where this does not hold), over all pairs. We treat one variable as time which is always increasing to measure tendency.

Early Warning Signals Toolbox (Dakos) The early warning signals toolbox does these calculations amongst others. Like Kendall, we also need to install it. It has a lot of dependencies which will also download at the same time. Typing ??earlywarnings will give you a list of the functions included in the package.

Early Warning Signals Toolbox We will be using the generic_ews function. Inputs can be found by typing ?generic_ews. The example here uses the same time series as before, with the same window length and similar detrending (window length bandwidth has to be expressed as a percentage).

Early Warning Signals Toolbox Now we have an object called ews which contains all values of the indicators at any time so youre free to plot them or use them how you wish. You also get a plot of them all as an output. If youre feeling brave, type generic_ews to see how each indicator is calculated.