PSY 626: Bayesian Statistics for Psychological Science
Spring 2024
Days/times: Tuesday, Thursday / 12:00 pm - 1:15 pm
Location: PRCE 255
Instructor:
Materials (lectures, readings, datasets, code):
This material can be downloaded from the class website at http://www2.psych.purdue.edu/~gfrancis/Classes/PSY626/indexS24.html
- PPT slides for Lecture 1, Francis (2019).
- PPT slides for Lecture 2, Francis (2012).
- PPT slides for Lecture 3, Francis (2014).
- PPT slides for Lecture 4.
- PPT slides for Lecture 5, Shrinkage.R, ShrinkagePrediction.R.
- PPT slides for Lecture 6, VisualSearch.csv, VisualSearch.R.
- PPT slides for Lecture 7, VisualSearch2.R, VisualSearch3.R.
- PPT slides for Lecture 8, VisualSearch4.R.
- PPT slides for Lecture 9, SmilesLeniency.csv, SmilesLeniency1.R.
- PPT slides for Lecture 10, WeaponPrime.csv, WeaponPrime1.R, ADHD.csv, ADHD.R, ProactiveInterference.csv, ProactiveInterference.R, SmallProactiveInterference.csv, SmallProactiveInterference.R.
- PPT slides for Lecture 11, VisualSearch.csv, VisualSearch5.R, VisualSearch5c.R, VisualSearch5e.R, VisualSearch5f.R
- PPT slides for Lecture 12, FacialFeedback.csv, FacialFeedback.R, FacialFeedback2.R, ZennerCards.csv, Zenner3.R.
- PPT slides for Lecture 13, SerialPosition.csv, SerialPosition.R, MaskingLaws.csv, MaskingLaws.R.
- PPT slides for Lecture 14 (updated), MapSearch.csv, MapSearch3.R, WordCloud.R.
- PPT slides for Lecture 15.
- PPT slides for Lecture 16, Humming.R.
- PPT slides for Lecture 17.
- PPT slides for Lecture 18.
- PPT slides for Lecture 19 (revised). Metanalysis.R, BF2N.R, SternbergSearch.csv, SternbergSearch1.R (revised), SternbergSearch2a.R (revised), SternbergSearch3.R.
- PPT slides for Lecture 20, OrientationJudgmentResults.csv, MoonAnalysis.R .
Text:
|
McElreath, R Statistical Rethinking: A Bayesian Course with Examples in R and Stan. Try to get the second edition. Ordering information and code examples are at the book web site. |
In case you do not yet have the textbook, Chapters 1 and 2 of the textbook are on-line.
As mentioned in class, you might want to install the rethinking package on your own computer. Here some guidance for a modern Mac (note the dependencies near the top).
General guidance is at the rethinking GitHub. Note, you cannot get by with just the slim install because we will soon need the MCMC algorithms.
The TA made an R script that might help, but I think you still need to first install a C-compiler.
General plan: The course will explain why you might want to use Bayesian methods instead of frequentist methods (such as t-tests, ANOVA, or regression). The general plan is to:
- Explain some problems/difficulties with frequentist methods: Publication bias, optional stopping, questionable research practices.
- Discuss differences between hypothesis testing and prediction: mean squared error, shrinkage.
- Discuss methods for prediction: likelihood, AIC, BIC, cross-validation.
- Explain the basic ideas of Bayesian methods: non-informative priors, informative priors.
- Provide hands-on examples of applying Bayesian methods: Bayes Factors, hierarchical models.
Throughout, we will be using computer programs to demonstrate the ideas. There will not be any proofs.
Class home page: The home page for this course is http://www.psych.purdue.edu/~gfrancis/Classes/PSY626/indexS24.html From this page you can download lecture notes, view the class schedule, view current grades, and connect to the various homework laboratory assignments.
Homework: Assignments will be due approximately every two weeks. The intention is to use the homework assignments as a way of practicing the concepts we discuss in class. They will be graded, but only to insure that students actively participate.
- Homework 1 (due date corrected): as PDF, as MS Word, ComputePower.R,
- Homework 2 (due February 5): as PDF, as MS Word, SleepySubjects.csv,
- Homework 3 (due February 26): as PDF, as MS Word, HummingRT.csv
- Homework 4 (due March 18): as PDF, as MS Word, Learning.csv (updated to fix a columns issue)
- Homework 5 (due April 18): as PDF, as MS Word, EmotionalStroop.csv
Project: In the last two weeks, students will present a Bayesian (or related) analysis of some of their own data. If you do not happen to have a data set, we will get one for you. There is no formal requirement for what to include in the project, but here's a few thoughts.
Assumed background:
- It would be nice, but not necessary, if you had some previous exposure to calculus.
- Doing any kind of Bayesian analysis requires some programming. We will be using the free R software. Many people like the R studio program. You do not need to be an expert programmer, but if you have little programming experience, you will have some catching up to do.
- Students should have experience with typical statistical methods (t-test, ANOVA, regression).
Teaching Assistant:
Please contact the TA if you cannot meet during office hours to schedule an alternative time.