UNIVERSITY OF TECHNOLOGY SYDNEY


37457 Advanced Bayesian Methods


This web-page will be updated regularly throughout 37457 Advanced Bayesian Methods, and all files are
subject to change. It was last updated at Fri Oct 28 13:08:50 2022.



File for the Subject Outline


The PDF file for the subject outline may be here

Advice about Laptop Preparation For Computer Laboratories


Advice about getting laptops ready for this subject's first computer laboratory may be here
Advice about getting laptops ready for this subject's second and later computer laboratories may be here

Files for Assignments


The PDF file for Assignment 1 may be here
The PDF file for Assignment 2 is not here and can be
obtained by e-mailing (matt.wand@uts.edu.au) the lecturer.
The PDF file for Assignment 3 may be here
The PDF file for Assignment 4 may be here
The PDF file for Assignment 5 may be here
The PDF file for Assignment 6 may be here
The PDF file for Assignment 7 may be here
The PDF file for Assignment 8 may be here
The text file (R script) binomBeta.R, needed for Assignment 4, may be here
The text file (R script) binomBetaChk.R, needed for Assignment 4, may be here
The text file (R script) mitsubBayes.R, needed for Assignment 4, may be here
The text file (R function) summMCMC.r, needed for Assignment 4, may be here
The text file (R functions) writeModel.r, possibly needed for Assignment 4, may be here
The text file (R script) NormRandSampMCMC.R, needed for Assignment 4, may be here
The text file (R script) ratsModel1.R, needed for Assignment 5, may be here
The text file (R script) randIntAndSlpViaStan.R, needed for Assignment 6, may be here
The text file (R script) orthodontModel1.R, needed for Assignment 6, may be here
The text file (data set) bacteria.txt, needed for Assignment 6, may be here
The text file (R script) bacteriaViaStan.R, needed for Assignment 6, may be here
The text file (data set) femSBMD.txt, needed for Assignment 7, may be here
The text file (R script) femSBMDview.R, needed for Assignment 7, may be here
The text file (R script) femSBMDviaStanBruteForce.R, needed for Assignment 7, may be here
The text file (R script) femSBMDviaStanSlick.R, needed for Assignment 7, may be here
The text file (R function) Ztps.r, needed for Assignment 7, may be here
The text file (R function) summMCMC.r, needed for Assignment 7, may be here
The text file (R script) rglSetup.R, needed for Assignment 7, may be here
The text file (R function) pointsInPoly.r, needed for Assignment 7, may be here
The text file (data set) wolfcamp.txt, needed for Assignment 7, may be here
The text file (auxiliary values) wolfcampKnots.txt, needed for Assignment 7, may be here
The text file (auxiliary values) wolfcampBdry.txt, needed for Assignment 7, may be here
The text file (R script) wolfcampViaStan.R, needed for Assignment 7, may be here
The text file (data set) ozoneMidwest.txt, needed for Assignment 7, may be here
The text file (auxiliary values) ozoneMidwestBdry.txt, needed for Assignment 7, may be here
The text file (auxiliary values) ozoneMidwestKnots.txt, needed for Assignment 7, may be here
The text file (data set) cheese.txt, needed for Assignment 8, may be here
The text file (R script) cheeseLOOana.R, needed for Assignment 8, may be here
The text file (R script) ratsModel1LOOana.R, needed for Assignment 8, may be here
The text file (R script) ratsModel2LOOana.R, needed for Assignment 8, may be here
The text file (R script) ratsModel3LOOana.R, needed for Assignment 8, may be here
The text file (R script) wolfcampPlaneFit.R, needed for Assignment 8, may be here
The text file (R script) wolfcampBivPenSplLOOana.R, needed for Assignment 8, may be here

Files for Class 1


The PDF file for the subject opening may be here
The PDF file for the slides titled Some Basics of Distribution Theory may be here

Files for Class 2


The PDF file for the slides projected in the first hour of Class 2 may be here
The PDF file for the slides projected in the second hour of Class 2 may be here

Files for Class 3


The PDF file for the slides given in Class 3 may be here

Files for Class 4


The PDF file for the slides projected in the first hour of Class 4 may be here
The PDF file for the second part of the full conditionals exercise in Class 4 may be here
The PDF file for the slides projected in the second hour of Class 4 may be here

Files for Class 5


The PDF file for the slides projected in the first hour of Class 5 may be here
The JAGS (via rjags) R script for the Mitsubishi data regression analysis may be here
The Stan (via rstan) R script for the Mitsubishi data regression analysis may be here
The JAGS (via rjags) R script for the travel time/distance regression analysis with
distance subject to missingness
may be here
The text file with travel time/distance data collected from members of the class may be here

Files for Class 6


The PDF file for the slides on autocorrelation functions may be here
The PDF file for the main Class 6 slides may be here

Files for Class 7


The PDF file for the dicussion on data pre-processing for Bayesian analyses may be here
The PDF file for the overview of grouped data analysis may be here
The PDF file for the whiteboard interlude in the overview of grouped data analysis may be here
The PDF file for the additional aspects of Bayesian analyses of grouped data may be here
The text file for the data set on pig weights may be here
The (comma separated) text file for the data set on school mathematics scores may be here
The text file for the R script for fitting a random intercept model via Stan may be here

Files for Class 8


The PDF file on penalized splines may be here
The web-sites containing rstan examples for time series models may be here and here


File for Class 9


The PDF file for the slides given in Class 9 may be here

Files for Class 10


The PDF file for the slides given in Class 10 may be here
The PDF file for the leave-one-out information criterion research article may be here
The updated R script for fitting a Bayesian stochastic volatility model using rstan may be here.
Note that the R package "astsa" is needed for the data in the Bayesian stochastic volatility example.
A PDF file containing the handwritten notes that provide details on the Bayesian stochastic volatility model may be here

Files for Class 11


The PDF file for the slides given in Class 11 may be here
The R/Stan script for fitting a Bayesian missing data model to data on diabetes in Pima Indians may be here
The R/Stan script for fitting a Bayesian measurement error model to data on coronary heart disease may be here

Files for Laboratory 1

The PDF file for Laboratory 1 may be here
The R script file mitsub.R may be here
The R script file BobTheDAG.R may be here
The R script file BobTheDAGwithData.R may be here
The R script file JessicaTheDAGwithData.R may be here
The R script file NathanielTheDAGwithData.R may be here
The R function file summMCMC.r may be here
The R script file ctsNathanielTheDAGwithData.R may be here
The R function file writeModel.r may be here

Files for Laboratory 2

The PDF file for Laboratory 2 may be here
The R function file Fibonacci.r may be here
The R script file HockeyComp.R may be here
The R script file NewtonRaphson.R may be here

Files for Laboratory 3

The PDF file for Laboratory 3 may be here
The R script file penSplinesDetails.R may be here
The data set file ozoneCalif.txt may be here
The R script file ozoneCalifViaStan.R may be here
The data set file BostonMortgages.txt may be here
The R script file BostonMortgagesViaStan.R may be here
The R script file penSplGEV.R may be here

Files for Laboratory 4

The PDF file for Laboratory 4 may be here
The R script file SLRmeasErr.R may be here
The R script file npRegMis.R may be here
The R script file meanAndVarNonparRegn.R may be here
The data set file lidar.txt may be here
The R script file loadRatsData.R may be here
The data set file SydneyRealEstateSubData.txt may be here
The R function file wait.r may be here
The R function file ZOSull.r may be here