1 / 13

BAD: Bayesian Analysis Diagnostics

BAD: Bayesian Analysis Diagnostics. Mark Thyer, Gulliaume Evin, Dmitri Kavetski, Benjamin Renard. Outline. What is BAD? BAD Capabilities How does BAD work How to use BAD Examples Future Research/Discussion. What is BAD?. Suite of R tools

joann
Download Presentation

BAD: Bayesian Analysis Diagnostics

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. BAD: Bayesian Analysis Diagnostics Mark Thyer, Gulliaume Evin, Dmitri Kavetski, Benjamin Renard

  2. Outline • What is BAD? • BAD Capabilities • How does BAD work • How to use BAD • Examples • Future Research/Discussion

  3. What is BAD? • Suite of R tools • Efficiently produce graphical diagnostics from a Bayesian analysis • e.g. output from a BATEA scenario • Simplifies the significant overhead in processing data associated with parameter and predictive uncertainty • Automatically produce pdfs with multiple diagnostics • mass production runs • Manually produce single diagnostic • suitable for presentation etc. • Single Scenarios • Compare Multiple Scenarios

  4. BAD Capabilities: What diagnostics? • Evaluate model predictions • Time Series of Predictive Uncertainty • Predictive QQ plots

  5. BAD Capabilities: What diagnostics? • Evaluate model assumptions • Residual Diagnostics • time series • Versus predicted • qq plots, • Acf/pacf

  6. BAD Capabilities: What diagnostics? • Evaluate parameters: • Densities, Scatter plot matrix, MCMC convergence diagnostics • Easy to add more as required

  7. BAD Capabilities: What diagnostics? • Evaluate parameters: • MCMC Convergence Diagnostics • Easy to add more as required

  8. How does BAD work? Time Time Convert ASCII to BAD netcdf Produce Diagnostic Plots Initialise BAD Modeller Single plot/scenario Multi plots/scenario Controller scripts Code Conversion scripts (csv2nectcdf.bateau) Setup scripts (initialise_BAD) netcdf bad scripts (wrappers for plot scripts) plot scripts BATEA Output: ASCII bad.ncdf (ncdf) Files pdf/window (red arrows are control flow, blue arrows are data flow)

  9. How to use BAD Setup/Installation (once per computer) • Download code: • Go to BAD website http://code.google.com/p/bad-/ and follow instructions • Follow instructions given in read.me to finish set-up: • Install and set-up Tinn-R, Run install_BAD.r to install packages dependencies Using BAD • Initialisation (once each time you use BAD) • Run initialise_BAD.r • Convert BATEA ASCII to BAD ncdf (once for each bateau run) • See example script: Ex.csv2netcdf.bateau.r • Produce diagnostics plots (as many different plots as you like)

  10. Diagnostic Plot Examples Single Plot, Single Scenario • Probabilistic time series plots: • Script: Ex.plot.problim.bad.ncdf.r • Predictive QQ plots: • Script: Ex.plot.predictiveQQ.bad.ncdf.r • Residual plots: • Script: Ex.plot.residuals.multi.bad.ncdf.r • Parameter diagnostics: • Script: Ex.par.posterior.diagnostics.bad.ncdf.r

  11. Diagnostic Plot Examples • Multi Plot, Single Scenario: • Script: Ex.bad.controller.auto.bateau.diagnostics.r • Single Plot, multi-scenario: • Script: Ex.multiscen.boxplot.multiparsamples.r • Multi-plot multi-scenario: • Script: Ex.multiscen.bad.controller.auto.bateau.diagnostics.r • These multi plot/scenario can be tailored to specific needs

  12. Example using BAD diagnostics via BATEAU scripts Lacmalac_SLS_BAD_DIAG_skript.txt Need to add BAD_PATH to fpf files.

  13. Future Work Turning BAD diagnostics into an R package (summer 2011/2012) Further refinements for interface with BATEAU Discussion/Questions?

More Related