Course materials for Advanced Statistics: Bayesian taught by Frank Edwards at Rutgers-Newark
| Advanced Statistics: Bayesian | 27:202:641 |
| Monday, Tuesday 10:00AM - 12:40PM | Room: CLJ 574 |
| Instructor: Frank Edwards | frank.edwards@rutgers.edu |
| Office hours: Wednesday 10AM-12PM | Room: CLJ 579B |
This course requires previous graduate-level coursework in statistics. Students are expected to be comfortable with probability, statistical inference, and generalized linear models. Instruction will be in R, but users of Python or Julia are also welcome.
If you are new to to R, I recommend working through chapters 1-8 of R for Data Science.
This is the course syllabus for Advanced Statistics: Bayesian, Fall 2026. It is a graduate-level introduction to Bayesian inference and modeling. Our emphasis will be on applied Bayesian statistics for social scientists.
Bayesian methods have several advantages over their frequentist analogues: they allow for incorporation of prior knowledge into our estimates, they are easy to interpret, and they allow for very flexible inference.
The primary disadvantages of Bayesian methods are 1) increased compute time (less of a problem every year) and 2) the requirement of additional thought and care in specification (this is good, actually). There’s are few good reasons not to adopt a Bayesian approach to social science.
We will cover the basics of Bayesian probability, Bayesian updating, causal inference for social science using directed acyclic graphs (DAGs), and regression using Markov Chain Monte Carlo (generalized linear models through multilevel models). Throughout, we will pay careful attention to how we connect questions, theory, models, priors, data, posterior inferences, and communication of findings.
Become comfortable with Bayesian inference
Develop a thoughtful social science workflow
Become skilled at connecting theory to explicit causal and statistical models
Understand how to conduct simulations for each stage of the statistical workflow
Understand how to estimate and interpret Bayesian regression models
Produce high-quality data visuals to communicate statistical findings
Email is my preferred mode of communication. Announcements will be sent to the class listserv. We won’t be using Canvas.
Attendance is required.
Bring a computer.
Complete homework on time.
Keep up with the reading.
Be respectful and professional.
Collaborate with your colleagues.
Document your code.
Try not to use AI tools.
Large language models have become incredibly good at writing R code. They also have caused tremendous social and environmental harm and have been shown to impede learning.
I will allow AI usage under the following conditions:
LLM_log.txtCompanies like Anthropic and OpenAI want you to become paying users dependent on their platforms. You don’t want them to own your workflow. You should build you workflow with open-source tools whenever possible. Open-source and on-device models have several advantages for researchers. They don’t cost money, they can produce reproducible output, and they keep your data secure. If you are going to use an LLM, I recommend using Ollama with Gemma4 (or similar) on your laptop.
All instruction will be conducted in the R statistical programming language. R is free and open-source, and can be downloaded here.
We will be using the RStudio integrated development environment. RStudio provides a powerful text editor and a range of very useful utilities. Positron is similar and is an acceptable choice if you prefer it.
In addition to writing code, RStudio a great tool for writing reports, papers, and slides using Quarto, which is a plain text format based on markdown. This syllabus, most of my course materials, and most of my academic papers are written in markdown.
You are required to submit assignments as rendered Quarto output.
Lastly, I recommend learning some form of version control to ensure your work is a) backed up, b) easily accessible to collaborators and c) reproducible. Git and GitHub are great and flexible tools for software development that have powerful applications for researchers. Here’s a useful intro to GitHub for R users.
We’ll be using the packages cmdstanr, brms, tidyverse, and tidybayes frequently.
If you’d like to clone the course repository on your laptop, you can run
git clone https://github.com/f-edwards/advanced_stats_bayes.git
To keep it up to date with current slides and homework, just navigate to the course directory (cd advanced_stats_bayes), then run
git fetch
Grades are based entirely on homework assignments. I grade assignments with a simple 2 point scale, and am generally a forgiving grader. If your work indicates a serious effort to complete the assignment, you can expect to receive full 2 points of credit. If you submit incomplete or sloppy work, you can expect 1 point of credit. Incomplete work will receive a zero.
Statistics is hard, and I prioritize growth and learning over getting correct answers in grading and evaluation.
All students who work hard and complete the assignments can expect to receive an A as their final grade.
I will assign homework each week. Assignments are due on Sunday by 10pm. Email your homework assignments (output and source code) to the instructor.
Don’t wait until the last minute to get started. These homeworks should take you on average about 6 hours of work to complete. Space that work out and give yourself time to ask for help from your peers and your instructor.
Group work is strongly encouraged. I recommend scheduling a time to meet with your classmates to work on the problem sets collectively. Quantitative research is a team sport, but I still do expect you to write your own code and interpretation. Don’t just copy/paste from your peers, the internet, or a chatbot. Cheating will make me grumpy, please don’t do it.
Life happens. All students are granted two free extensions on homework, no questions asked. Just email prior to the due date to let me know you’ll be taking an extension and when I should expect your submission.
Week 1
Reading:
Rethinking Chapter 1
Week 2
Reading: Rethinking Chapter 2
Week 3
Reading: Rethinking Chapter 3
Week 4
Reading: Rethinking Chapter 4
Week 5
Reading: Rethinking Chapter 8
tidybayesWeek 6
Reading: Rethinking Chapter 5
Week 7
Reading:
Lundberg, Johnson, and Stewart, 2021. “What is your Estimand” American Sociological Review. https://doi.org/10.1177/00031224211004187
Week 8
Reading: Rethinking Chapter 7
Week 9
Reading: Rethinking Chapter 9
Week 10
Reading: Rethinking Chapter 10
Week 11
Reading: Rethinking Chapters 11 (12 optional)
Week 12
Reading: Rethinking Chapter 13
Week 13
Reading: Rethinking Chapter 14.1-14.2
11/24: Multilevel models 2 - Varying slope models - Other options for clustered trajectories: splines and GAMs - Prior choice - Posterior inference
Week 14
Reading: Rethinking 14.3
Week 15
Reading: Rethinking 14.5