class: title_bg .title[ Computation infrastructure for<br/>teaching Bayesian modeling ] .conference[ .name[ JSM 2020 ] .bitly[ [bit.ly/JSM2020_Sta444](https://bit.ly/JSM2020_Sta444) ] ] .author[ .name[ Colin Rundel ] .school[ Univ of Edinburgh<br/> Duke University ] ] --- ## Context Sta 444 / 644 - Spatiotemporal Modeling * 4th year undergraduate elective (2nd year MS elective) * *Prereq* Sta 360 - Bayesian Inference and Modern Statistical Methods * Weekly labs / problem sessions with TA * 5 hws + 1 group project over the semester <br/> (mathematical, computational, and applied problems) --- ## Learning Outcomes * Modeling methods (lm, glm, ARIMA, GPs, CAR, etc.) * Model assessment and validation * Bayesian model implementation (probabilistic programming) --- .columns[ .col[ DLM for predicting `\(\text{CO}_2\)` <img src="imgs/dlm-1.png" width="80%" /><img src="imgs/dlm-2.png" width="80%" /> ] .col[ Violent Crime in Baltimore City <img src="imgs/baltimore1.png" width="57%" style="display: block; margin: auto;" /><img src="imgs/baltimore2.png" width="57%" style="display: block; margin: auto;" /> ] ] --- ## Software * Wide varierty of choices: BUGS, Jags, Stan, etc. * Some considerations: * Generalizability vs. specificity * Syntactic complexity * Performance * Limitations --- ## Computational Complexity and Efficiency This is often the first course where students engaged with models that cannot be fit "instantly". * Basics of algorithmic complexity * Model limitations vs software limitations * Implementation vs run time --- ## Infrastructure The platform provided for students matter (labs vs. servers vs. student laptops): * Configuration / Administration * Performance * Workflows .footnote[ Çetinkaya-Rundel & Rundel (2018) - [Infrastructure and Tools for Teaching Computing Throughout the Statistical Curriculum](https://amstat.tandfonline.com/doi/abs/10.1080/00031305.2017.1397549) ] --- # Thank you! .middle[ .center[ <div style="width: 98%"> <table class="contact" style="text-align: left; margin-left:auto; margin-right:auto; width:50%;"> <tbody> <tr><td><br/></td><td> </td></tr> <tr> <td style="vertical-align: middle;"> <i class="fas fa-envelope fa-fw fa-2x"></i> </td> <td></td> <td> <a href="mailto:rundel@gmail.com">rundel@gmail.com</a> </td> </tr> <tr><td><br/></td></tr> <tr> <td style="vertical-align: middle;"> <i class="fab fa-twitter-square fa-fw fa-2x"></i> </td> <td></td> <td> <a href="https://twitter.com/rundel">@rundel</a> </td> </tr> <tr><td><br/></td></tr> <tr> <td style="vertical-align: middle;"> <i class="far fa-file-powerpoint fa-fw fa-2x"></i> </td> <td></td> <td> <a href="http://bit.ly/JSM2020_Sta444">bit.ly/JSM2020_Sta444</a> </td> </tr> <tr><td><br/></td></tr> <tr> <td style="vertical-align: middle;"> <i class="fas fa-chalkboard-teacher fa-fw fa-2x"></i> </td> <td></td> <td> <a href="http://www2.stat.duke.edu/~cr173/Sta444_Fa18/">stat.duke.edu/~cr173/Sta444_Fa18/</a> </td> </tr> </tbody> </table> </div> ] ]