Federal Planning Bureau Economic analyses and forecasts LIAM 2 A tool for the development of dynamic cross- sectional microsimulation models presentation.

Slides:



Advertisements
Similar presentations
LIAM 2: A NEW OPEN SOURCE DEVELOPMENT TOOL FOR THE DEVELOPMENT OF DISCRETE-TIME DYNAMIC MICROSIMULATION MODELS GAËTAN DE MENTEN (Federal Planning Bureau)
Advertisements

Federal Planning Bureau Economic analyses and forecasts Federal Planning Bureau Economic analyses and forecasts The gross-net trajectory in MIDAS_BE Some.
Federal Planning Bureau Economic analyses and forecasts Federal Planning Bureau Economic analyses and forecasts On weights in dynamic- ageing microsimulation.
1/20 Generalized Symbolic Execution for Model Checking and Testing Charngki PSWLAB Generalized Symbolic Execution for Model Checking and Testing.
SOFTWARE TESTING. INTRODUCTION  Software Testing is the process of executing a program or system with the intent of finding errors.  It involves any.
Federal Planning Bureau Economic analyses and forecasts What are the consequences of the AWG projections on the adequacy of social security.
MDU Development Unit Model. MDU Development Unit Model Howard Redway Model Development Unit UK Department for Work and Pensions
1 CS 161 Introduction to Programming and Problem Solving Chapter 9 C++ Program Components Herbert G. Mayer, PSU Status 10/20/2014.
The Metadata Toolbox: A User’s Perspective on DDI J.M. Eisenhauer Smith, Data Analyst/Archivist Center for Demography of Health and Aging University of.
Federal Planning Bureau Economic analyses and forecasts Federal Planning Bureau Economic analyses and forecasts The option value approach in MIDAS_BE Some.
1 Modelling with SAGE: lessons and future plans Jane Falkingham & Maria Evandrou ESRC Centre for Population Change University of Southampton BSPS Annual.
What are the driving forces behind trends in inequality among pensioners? ( Lessons from a stylized model ) Paper presented at the Séminaire Scientifique.
Guide To UNIX Using Linux Third Edition
Principles of Procedural Programming
Chapter 3 Planning Your Solution
Fundamentals of Python: From First Programs Through Data Structures
Your Interactive Guide to the Digital World Discovering Computers 2012.
Python quick start guide
Plan.be EU-PROGRESS Project MiDLAS Kick-off Meeting Gijs Dekkers Federal Planning Bureau, CESO, K U Leuven And CEPS/INSTEAD Raphaël Desmet Federal.
Federal Planning Bureau Economic analyses and forecasts LIAM2* A sneak preview... *Life-cycle Income Analysis Model Gijs Dekkers Federal Planning Bureau.
Fundamentals of Python: First Programs
Introduction to FORTRAN
Avro Apache Course: Distributed class Student ID: AM Name: Azzaya Galbazar
What is Sure BDCs? BDC stands for Batch Data Communication and is also known as Batch Input. It is a technique for mass input of data into SAP by simulating.
LIAM 2: A NEW OPEN SOURCE DEVELOPMENT TOOL FOR DISCRETE-TIME DYNAMIC MICROSIMULATION MODELS GIJS DEKKERS (FEDERAL PLANNING BUREAU, Brussels, CESO, K.U.LEUVEN.
ILUTE Microsimulation Modelling of Social/Financial Processes – An Overview Antoine Haroun June 2004.
Confidential - Property of Navitas Accelerate define.xml using defineReady - Saravanan June 17, 2015.
LIAM 2: A NEW OPEN SOURCE DEVELOPMENT TOOL FOR THE DEVELOPMENT OF DISCRETE-TIME DYNAMIC MICROSIMULATION MODELS PHILIPPE LIÉGEOIS (CEPS/INSTEAD, Luxembourg.
Introduction of C++ language. C++ Predecessors Early high level languages or programming languages were written to address a particular kind of computing.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 6 Value- Returning Functions and Modules.
Using IPUMS.org Katie Genadek Minnesota Population Center University of Minnesota The IPUMS projects are funded by the National Science.
1 CSC 221: Introduction to Programming Fall 2012 Functions & Modules  standard modules: math, random  Python documentation, help  user-defined functions,
The WinMine Toolkit Max Chickering. Build Statistical Models From Data Dependency Networks Bayesian Networks Local Distributions –Trees Multinomial /
Methodology - Conceptual Database Design. 2 Design Methodology u Structured approach that uses procedures, techniques, tools, and documentation aids to.
Innovations in Data Dissemination Thomas L. Mesenbourg, Jr. Acting Director U.S. Census Bureau United Nations Seminar on Innovations in Official Statistics.
SE: CHAPTER 7 Writing The Program
Eurostat Expression language (EL) in Eurostat SDMX - TWG Luxembourg, 5 Jun 2013 Adam Wroński.
Methodology - Conceptual Database Design
C463 / B551 Artificial Intelligence Dana Vrajitoru Python.
Introducing Python CS 4320, SPRING Lexical Structure Two aspects of Python syntax may be challenging to Java programmers Indenting ◦Indenting is.
The challenge of a mixed-mode design survey and new IT tools application: the case of the Italian Structure Earning Surveys Fabiana Rocci Stefania Cardinleschi.
Intermediate 2 Computing Unit 2 - Software Development.
Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP.
CSI 1340 Introduction to Computer Science II Chapter 1 Software Engineering Principles.
Autumn School Dynamic MSM16-18 November 2015 | L-Esch-sur-Alzette Slide 1 Note Combining LIAM2 and EUROMOD: a (useful?) possibility.
Autumn School Dynamic MSM16-18 November 2015 | L-Esch-sur-Alzette Slide 1 A gentle introduction to microsimulation Gijs Dekkers.
Autumn School Dynamic MSM16-18 November 2015 | L-Esch-sur-Alzette Slide 1 Developing a concrete model : the full path II] Building Micro data (cf. variables)
Autumn School Dynamic MSM16-18 November 2015 | L-Esch-sur-Alzette Slide 1 Aggregates, output and other basic tools.
Autumn School Dynamic MSM16-18 November 2015 | L-Esch-sur-Alzette Slide 1 7. Stochastic concepts in LIAM2.
Exploring Microsimulation Methodologies for the Estimation of Household Attributes Dimitris Ballas, Graham Clarke, and Ian Turton School of Geography University.
 Software Development Life Cycle  Software Development Tools  High Level Programming:  Structures  Algorithms  Iteration  Pseudocode  Order of.
Autumn School Dynamic MSM16-18 November 2015 | L-Esch-sur-Alzette Slide 1 4. Basic concepts, a rudimentary model, and input data (demo01.yml)
Autumn School Dynamic MSM16-18 November 2015 | L-Esch-sur-Alzette Slide 1 Playing with Objects.
Scion Macros How to make macros for Scion The Fast and Easy Guide.
CMPSC 16 Problem Solving with Computers I Spring 2014 Instructor: Tevfik Bultan Lecture 4: Introduction to C: Control Flow.
Federaal Planbureau Economische analyses en vooruitzichten Integrating a random utility random opportunity labour supply model in MIDAS Belgium: presentation.
Python: Building Geoprocessing Tools David Wynne, Ghislain Prince.
Lecture 11 Introduction to R and Accessing USGS Data from Web Services Jeffery S. Horsburgh Hydroinformatics Fall 2013 This work was funded by National.
Patrick Desbrow, CIO & VP of Engineering October 29, 2014
Software Testing.
Accelerate define.xml using defineReady - Saravanan June 17, 2015.
Dynamic Microsimulation Population Projection in Developing Countries
Object-Orientated Programming
Paper presented at the séminaire scientifique, Caisse des Dépôts,
Coding Concepts (Basics)
Topics Introduction to Value-returning Functions: Generating Random Numbers Writing Your Own Value-Returning Functions The math Module Storing Functions.
Structural dynamic microsimulation modelling at the National Institute
An introduction to MIDAS
13/05/2013 Gijs Dekkers Gaëtan de Menten Raphaël Desmet
PYTHON - VARIABLES AND OPERATORS
Presentation transcript:

Federal Planning Bureau Economic analyses and forecasts LIAM 2 A tool for the development of dynamic cross- sectional microsimulation models presentation at the 3rd General Conference of the International Microsimulation Association, “Microsimulation and Policy Design” June 8th to 10th, 2011, Stockholm, Sweden. Gaëtan de Menten Federal Planning Bureau of Belgium Gijs Dekkers Federal Planning Bureau of Belgium, and CESO, Katholieke Universiteit Leuven Philippe Liégeois CEPS/INSTEAD, and DULBEA University of Brussels IGSS Luxembourg

Federal Planning Bureau Economic analyses and forecasts 2/21  LIAM 2 is a new tool for the development of (all kinds of) dynamic microsimulation models with dynamic cross-sectional ageing.  It is a simulation framework that allows for comprehensible modelling and the straightforward use of various simulation techniques  It allows for prospective as well as retrospective simulation  This presentation will give you a sneak preview of LIAM 2. Introduction

Federal Planning Bureau Economic analyses and forecasts 3/21 Overview of this presentation  The foundations of LIAM 2 (Gijs)  Current features (Gaëtan)  Current performance (Gaëtan)  Conclusions and some other relevant information (Philippe)

Federal Planning Bureau Economic analyses and forecasts 4/21 Overview of this presentation  The foundations of LIAM 2  Current features  Current performance  Conclusions and some other relevant information

Federal Planning Bureau Economic analyses and forecasts 5/21 The foundations of LIAM 2  LIAM by Cathal O’Donoghue  Used in AIM-project, developing MIDAS for Belgium, Italy and Germany.  Updating, extending and considerable problem solving by Geert Bryon (FPB)  Extensive use of LIAM in the continuous development of MIDAS  PROGRESS-MiDaL project (Grant VS/2009/0569)  FPB (Be): development, application and testing  CEPS/INSTEAD (Lux): testing  IGSS (Lux): investment, testing  Cathal O’Donoghue (Teacasc, Ire), Howard Redway (ministry of work and pensions, uk): comments and conceptual assistance

Federal Planning Bureau Economic analyses and forecasts 6/21 Overview of this presentation  The foundations of LIAM 2  Current features  Current performance  Conclusions and some other relevant information

Federal Planning Bureau Economic analyses and forecasts 7/21 Overview  Implemented in Python  Very high level and readable language  uses some efficient libraries written mostly in C  Input  Simulation description: a text file  Alignment: CSV files  Initial simulation data: an hdf5 file  converter: csv (or tab-separated text files) hdf5  Output  hdf5 file (and CSV files on demand)  Console log

Federal Planning Bureau Economic analyses and forecasts 8/21 Simulation file  Declare entities  eg "person", "household", "enterprise", "region"  fields of each entity  possible processes  Simulation  used processes and their order  input and output file  start period  number of periods to simulate

Federal Planning Bureau Economic analyses and forecasts 9/21 Simulation file entities: person: person: fields: fields: # period and id are implicit # period and id are implicit - age: int - age: int - ischild: bool - ischild: bool processes: processes: age: "age + 1" age: "age + 1" ischild: "age < 18" ischild: "age < 18" isold: "age >= 150" isold: "age >= 150"simulation: processes: processes: - person: [age, ischild, isold] - person: [age, ischild, isold] input: input: file: "base.h5" file: "base.h5" output: output: file: "output.h5" file: "output.h5" start_period: 2002 # first simulated period start_period: 2002 # first simulated period periods: 20 periods: 20 The setup of a model

Federal Planning Bureau Economic analyses and forecasts 10/21 Features  Handles fields of 3 types: float, int, bool  Temporary fields  Arbitrarily complex expressions  Arithmetic, comparison and boolean operators  Conditional expressions  Procedures to regroup processes  local variables  Macros (which are re-evaluated wherever they appear)  Globals (external time series)  Handle links easily (e.g. "mother.age")  Interactive console with optional step-by-step mode

Federal Planning Bureau Economic analyses and forecasts 11/21 Functions (1)  Simple functions  abs, log, exp, round,...  Aggregate functions  grpcount, grpsum, grpavg, grpstd, grpmax, grpmin  Temporal functions  lag, value_for_period, duration, tavg  One-to-many links  countlink(children, age>15), sumlink(persons, earnings, age>17), avglink, minlink, maxlink  Random sampling  uniform, normal, randint  choice (choose between predefined choices with given probabilities)

Federal Planning Bureau Economic analyses and forecasts 12/21 Functions (2)  Regressions  Logit with or without alignment  Other regressions types  Continuous (expr + normal(0, 1) * mult + error)  Clipped continuous (always positive)  Log continuous (exponential of continuous)  Matching: match two sets of individuals (aka Marriage market)  Lifecycle functions  new: create new individuals or households  remove: remove individuals or households from the dataset  Output functions  show: print the result of expressions to the console.  csv: write a table to a csv file  dump: produce a table with the expressions given as argument  State-alignment

Federal Planning Bureau Economic analyses and forecasts 13/21 Functions (3)  groupby (aka “pivot table”): group individuals by their value for the given expressions, and optionally compute an expression for each group  show(groupby(age / 20, gender, expr=grpcount(partner.id != -1))) gender | False | True | gender | False | True | (age / 20) | | | total 0 | 1 | 0 | 1 0 | 1 | 0 | 1 1 | 65 | 40 | | 65 | 40 | | 525 | 258 | | 525 | 258 | | 841 | 1049 | | 841 | 1049 | | 91 | 192 | | 91 | 192 | | 0 | 0 | 0 5 | 0 | 0 | 0 total | 1523 | 1539 | 3062 total | 1523 | 1539 | 3062  All output functions can be used both during the simulation and after it through the interactive console.

Federal Planning Bureau Economic analyses and forecasts 14/21

Federal Planning Bureau Economic analyses and forecasts 15/21 Overview of this presentation  The foundations of LIAM 2  Current features  Current performance  Conclusions and some other relevant information

Federal Planning Bureau Economic analyses and forecasts 16/21 Current Performance  For a simple model including:  lifecycle (birth, deaths)  marriage & divorce  labour market  The results of all these procedures are aligned to macro-projections.  6,300 persons, 20 periods: 12.7s  305,000 persons, 20 periods: 3 minutes 28s  ~120Mb RAM  550Mb output file (could be compressed if needed)  For a complete model with 100,000 persons  probably under 10min

Federal Planning Bureau Economic analyses and forecasts 17/21 Overview of this presentation  The foundations of LIAM 2  Current features  Current performance  Conclusions and some other relevant information

Federal Planning Bureau Economic analyses and forecasts 18/21  LIAM 2 is a flexible tool for the development of (all kinds of) dynamic microsimulation models with dynamic cross-sectional ageing.  It allows for prospective as well as retrospective simulation  It is still a work in progress...  Immigration  Weights (see the presentation by Dekkers and Cumpston)  More sophisticated regressions and simulation techniques  More features to make modelling easier  Speed optimization, known bugs to fix, code cleanup ...but it is being extensively tested and used for the development of MIDAS’ successor for Belgium and the new MIDAS-luxembourg.  But the most relevant information for all of you is that... Conclusions and some other relevant information

Federal Planning Bureau Economic analyses and forecasts 19/21... you are going to get it for free!

Federal Planning Bureau Economic analyses and forecasts 20/21  Check  This website contains  The LIAM 2 executable.  A synthetic dataset of 20,200 individuals grouped in 14,700 households in HDF5 format.  A small model containing  Fertility and mortality (aligned)  Educational attainment level  Some labour market characteristics  Documentation  A LIAM 2 user guide  A ready-to-use “bundle” of notepad integrated with LIAM 2 and the synthetic dataset. A demonstration version is available

Federal Planning Bureau Economic analyses and forecasts Thank you for your attention