Getting started with GEM-SA Marc Kennedy. This talk  Starting GEM-SA program  Creating input and output files  Explanation of the menus, toolbars,

Slides:



Advertisements
Similar presentations
Introduction to Excel This class is “HANDS-ON” you will need to open up an excel spreadsheet and do examples as you go along. Students will be able to.
Advertisements

BASIC SKILLS AND TOOLS USING ACCESS
Tutorial 9 – Creating On-Screen Forms Using Advanced Table Techniques
The essentials managers need to know about Excel
Working with Profiles in IX1D v 3 – A Tutorial © 2006 Interpex Limited All rights reserved Version 1.0.
School of Geography FACULTY OF ENVIRONMENT Working with Tables 1.
Benchmark Series Microsoft Excel 2013 Level 2
Sensitivity Analysis in GEM-SA Jeremy Oakley. Example  ForestETP vegetation model – 7 input parameters – 120 model runs  Objective: conduct a variance-based.
Uncertainty Analysis Using GEM-SA Tony O’Hagan. Outline  Setting up the project  Running a simple analysis  Exercise  More complex analyses.
Slide 1 John Paul Gosling University of Sheffield GEM-SA: a tutorial.
Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition Windows XP Unit A.
Benchmark Series Microsoft Excel 2013 Level 2
Sensitivity Analysis in GEM-SA. GEM-SA course - session 62 Example ForestETP vegetation model 7 input parameters 120 model runs Objective: conduct a variance-based.
Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin TECHNOLOGY PLUG-IN T2 BASIC SKILLS USING EXCEL.
Microsoft ® Office Excel ® 2003 Training Enter formulas CSNT, Inc. presents:
Applied Econometrics Second edition
Microsoft Office XP Microsoft Excel
Developing an Excel Application
Tutorial 8: Developing an Excel Application
1 CA202 Spreadsheet Application Combining Data from Multiple Sources Lecture # 6.
Microsoft Excel Computers Week 4.
Microsoft Excel The Basics. spreadsheet A type of application program which manipulates numerical and string data in rows and columns of cells. The value.
Loading Excel Double click the Excel icon on the desktop (if you have this) OR Click on Start All Programs Microsoft Office Microsoft Office Excel 2003.
Using Microsoft Office Excel 2007
Uncertainty Analysis Using GEM-SA. GEM-SA course - session 42 Outline Setting up the project Running a simple analysis Exercise More complex analyses.
Copyright 2003 Peter McDevitt 1 Microsoft Excel 2002 Lecture 3 – A Professional Looking Worksheet.
By Hrishikesh Gadre Session II Department of Mechanical Engineering Louisiana State University Engineering Equation Solver Tutorials.
Using Excel for Data Analysis in CHM 161 Monique Wilhelm.
Introduction to Spreadsheets Presented by Frank H. Osborne, Ph. D. © 2005 Bio 2900 Computer Applications in Biology.
Microsoft Excel 2007 Introduction to Spreadsheet Programs
McGraw-Hill/Irwin ©2009 The McGraw-Hill Companies, All Rights Reserved Business Driven Information Systems 2e Plug-In T2: Basic Skills Using Excel 2007.
1 Excel Lesson 3 Organizing the Worksheet Microsoft Office 2010 Introductory Pasewark & Pasewark.
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Computer Literacy BASICS
October 2003Bent Thomsen - FIT 3-21 IT – som værktøj Bent Thomsen Institut for Datalogi Aalborg Universitet.
1 Data List Spreadsheets or simple databases - a different use of Spreadsheets Bent Thomsen.
Excel Lesson 3. Functions Function is a built-in formula that performs calculations automatically. –Examples: SUM (Adds a series of cells) COUNT (Counts.
Excel Spreadsheet basics. Excel Sheets and Books  Spreadsheet: tool to analyze, chart and manage data for personal, business and financial use Worksheet:
Using SPSS for Windows Part II Jie Chen Ph.D. Phone: /6/20151.
XP 1 Microsoft Word 2002 Tutorial 1 – Creating a Document.
Just as there are many human languages, there are many computer programming languages that can be used to develop software. Some are named after people,
Using an emulator. Outline So we’ve built an emulator – what can we use it for? Prediction What would the simulator output y be at an untried input x?
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin TECHNOLOGY PLUG-IN T2 BASIC SKILLS USING EXCEL.
Chapter 6.  If a cell style will be used over and over again it can be modified in the cell styles gallery  Home ⇒ Cell Styles ⇒ right-click a style.
Key Words: Functional Skills. Key Words: Spreadsheets.
Getting started with GEM-SA Marc Kennedy Central Science Laboratory, York Tony O’Hagan, Jeremy Oakley University of Sheffield.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. WORD 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 15 Advanced Tables.
Getting started with GEM-SA. GEM-SA course - session 32 This talk Starting GEM-SA program Creating input and output files Explanation of the menus, toolbars,
June 21, Objectives  Enable the Data Analysis Add-In  Quickly calculate descriptive statistics using the Data Analysis Add-In  Create a histogram.
Editing Basics Lesson 8. Skills Matrix SKILL #MATRIX SKILL 2.2.1Cut, copy, and paste text 2.2.2Find and replace text 4.1.1Insert building blocks in documents.
Overview Excel is a spreadsheet, a grid made from columns and rows. It is a software program that can make number manipulation easy and somewhat painless.
Spreadsheets What is Excel?. Objectives 1. Identify the parts of the Excel Screen 2. Identify the functions of a spreadsheet 3. Identify how spreadsheets.
An electronic document that stores various types of data.
Chapter 28. Copyright 2003, Paradigm Publishing Inc. CHAPTER 28 BACKNEXTEND 28-2 LINKS TO OBJECTIVES Table Calculations Table Properties Fields in a Table.
1 Lesson 18 Getting Started with Excel Essentials Computer Literacy BASICS: A Comprehensive Guide to IC 3, 4 th Edition Morrison / Wells.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Using Macros Lesson.
Excel Tutorial 8 Developing an Excel Application
International Computer Driving Licence Syllabus version 5.0
International Computer Driving Licence Syllabus version 5.0
BASIC SKILLS USING EXCEL
Microsoft Excel 2003 Illustrated Complete
Microsoft Excel All editions of Microsoft office.
Lesson 18 Getting Started with Excel Essentials
Microsoft Excel 101.
Lesson 1 Notes Chapter 6.
Eviews Tutorial for Labor Economics Lei Lei
Microsoft Excel 2007 Introduction to Spreadsheet Programs
Running a Java Program using Blue Jay.
Bent Thomsen Institut for Datalogi Aalborg Universitet
Microsoft Excel 2007 – Level 2
Presentation transcript:

Getting started with GEM-SA Marc Kennedy

This talk  Starting GEM-SA program  Creating input and output files  Explanation of the menus, toolbars, etc.  Description of the project window

Starting GEM-SA  Double-click the GEM-SA icon to start  The main window appears, with – Menu – Toolbar – Sensitivity analysis output grid – Log window

menu Log window toolbar Sensitivity analysis output grid

Toolbar icons New project Open project Save project Print output report Edit project Generate input design points Rescale an input Standardise design Copy input design to clipboard Convert input to integer Run the analysis Help

Sensitivity analysis output grid  This will report the sensitivity results after the analysis is complete – One line for each input parameter – One line for each pair of inputs, if joint effects are selected

Log Window output  Tells us – Which training data are being loaded/saved – Transformations applied to the data – Fitted Gaussian process parameters – Summary of the uncertainty analysis

Creating a GEM project  To build the emulator we first need 3 files: – Data file of code inputs – Data file of code outputs – GEM-SA project file

Restrictions on input/output data  Single output – Multiple outputs must be treated individually  Max 30 input parameters  Max 400 training points  The data files are plain text files – One line for each point – Input file can be space or tab delimited

Generating a new input design  Designs can be generated using the toolbar icon or the menu: Input  Generate…  The design dialog appears

Generating a new input design  Click OK and fill in the required range for each input  Click OK again

Editing input designs  If you select a column, you can rescale values of that input or round values to be integers  Designs can be loaded into or saved from this window using the Inputs menu. Use to copy the points to the clipboard for use in other programs

Types of design  GEM-SA can generate 2 types of design – LP-  – Maximin Latin Hypercube designs  Both have good space-filling properties – Ensure all regions of the input space are well represented

LP-  design  Very quick to generate  Deterministic set of uniform points  Increasing the sample size just adds points to the smaller design – Making it useful for sequential analysis – Only have to generate the extra runs

Maximin Latin hypercube design  Maximin Latin Hypercube designs – Maximise the minimum distance amongst all pairs of points – Can take a long time to generate  Univariate projections are equally spaced – Each input has all its range represented – Good when only a few inputs are active

Creating output points from these inputs  This is the tricky part…  Each row from the input design must be used to generate a single output, e.g. using – Spreadsheet  Simple, but requires functional form – Script  Only need executable code  Loop through inputs, modify code input file – Modify code to loop through the points  Messy, need source code

Example: using a spreadsheet  Copy the input design to the clipboard using  Open Excel and paste inputs  Create formula in final column  Copy formula for all rows of the design  Cut and paste special (values) in a new sheet  Save as text file

Example: using a script  Read base input file  Read training inputs file  Loop through training file lines – Replace target inputs using training line – Write new base input file – Run code – Calculate single output and add to training output file

my $pftchangeline = 21; # change line 21 within the input file for each run = (11,14,23,19); # columns within pftchangeline to modify = (0,1,2,3); # ordering of these parameters within training inputs open(BASEINFILE, "input.dat"); # getinitial (fixed) input file used by sdgvmd = ; # and store the input lines close BASEINFILE; open(LHFILE, "training_inputs.txt"); my $newpftline = $lines[$pftchangeline]; = split(" ", $newpftline); while ( ){ # assigns each line in turn to $_ chomp; split; open(INFILE, "> inputfile.dat"); = # modify lines $lines[$pftchangeline] = join(' print close INFILE; `sdgvm0 input.dat`; # run sdgvm0 with modified input # now do something with the output files }

The project window  Appears whenever you – Load a project – Edit a project – Create new project  This window has 3 tabs – Options – Files – Simulations

How many inputs? What are the input names?

Which joint effects should be calculated? What should be calculated, and how?

Are the inputs uncertain? What prior mean for the output?

What kind of prediction? What kind of cross validation?

Names for the input files Names for the output files

MCMC control parameters How many points used to calculate main effects, joint effects How many realisations of predictions, main and joint effects to generate

Input parameter names  This window appears if you press the Names… button – Giving names is optional, but useful later when looking at GEM-SA output – Ordering can be changed using the arrows

Selecting joint effects  If you select calculate joint effects, individual items in the joint effects window can be highlighted for inclusion in joint effect calculations  Need to unselect the default all inputs first – Unless you want to consider all pairs

Other checkboxes  Sum effects – Use this if you want main effects of the 2 inputs to be included in the realisations of the joint effect of a pair – The sensitivity measure, which computes joint sensitivity indices separately from the component main effects

Other checkboxes  Code has numerical error – Use this if your code has numerical errors which you want to smooth out – The variance of the error will be estimated as part of the fitting process – Can make the fitting process quite unstable, so avoid if possible!

Other checkboxes  Use MCMC for emulator parameters – For serious Bayesians only! – Takes into account uncertainty in the fitting of the emulator – Slows down the computation substantially, usually with minimal effect on the results  Auto-tune Metropolis algorithm – Use only with MCMC

Input uncertainty options  All unknown, product normal – Inputs are independent, normally distributed  All unknown, uniform – Inputs are independent, distributed uniformly between the min and max values of the training data  All known – No uncertainty analysis required

Input uncertainty options  Some known, rest product normal – Some input values will be fixed (in the dialog window or in a prediction file) – Others will be given normal input parameters

Prior mean options  If you believe the output is roughly linear function of its inputs, select ‘linear term for each input’ – Otherwise a single value will be used to represent the prior overall level of the output

Input normal parameters  Window appears if you click OK having selected normal inputs

Input fixed and normal parameters  Window appears if you click OK having selected some fixed inputs, rest normal  For fixed inputs, tick the box and enter the fixed value in the first test box

Selecting prediction type  Predictions can be – Correlated realisations of outputs at the prediction inputs  Similar to main effect outputs – Marginal means and variances of outputs at the prediction inputs  Faster to compute, especially with many prediction points  Easy to interpret

Selecting cross validation type  Choice of none, leave-one-out or leave final 20% out  Leave-one-out – Hyper-parameters use all data and are then fixed when prediction is carried out for each omitted point  Leave final 20% out – Hyper-parameters are estimated using the reduced data subset