This book introduces Bayesian data analysis and Bayesian cognitive modeling to students and researchers in cognitive science (e.g. linguistics, psycholinguistics, psychology, computer science) with a focus on modeling data from planned experiments. The book relies on the probabilistic programming language Stan and the R package brms.