-
Notifications
You must be signed in to change notification settings - Fork 108
Expand file tree
/
Copy pathindex.Rmd
More file actions
56 lines (47 loc) · 2.88 KB
/
index.Rmd
File metadata and controls
56 lines (47 loc) · 2.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
title: "An Introduction to Bayesian Thinking"
subtitle: "A Companion to the Statistics with R Course"
author: ["Merlise Clyde", "Mine Çetinkaya-Rundel", "Colin Rundel", "David Banks", "Christine Chai","Lizzy Huang"]
date: "Last built on `r Sys.Date()`"
site: bookdown::bookdown_site
documentclass: book
bibliography: [book.bib, packages.bib, references.bib]
biblio-style: apalike
link-citations: yes
github-repo: StatsWithR/book
---
# Preface {-}
\newcommand{\No}{\textsf{Normal}}
\newcommand{\Ga}{\textsf{Gamma}}
\newcommand{\St}{\textsf{t}}
\newcommand{\NoGa}{\textsf{NormalGamma}}
\newcommand{\Be}{\textsf{Beta}}
\newcommand{\BF}{\textit{BF}}
\newcommand{\PO}{\textit{PO}}
\newcommand{\Odd}{\textit{O}}
\newcommand{\data}{\text{data}}
\newcommand{\iid}{\mathrel{\mathop{\sim}\limits^{\rm iid}}}
\newcommand{\Ca}{\textsf{C}}
\newcommand{\bv}{\boldsymbol{\beta}}
This book was written as a companion for the Course *Bayesian Statistics* from the Statistics with `R` specialization available on Coursera. Our goal in developing the course was to provide an introduction to Bayesian inference in decision making without requiring calculus, with the book providing more details and background on Bayesian Inference. In writing this, we hope that it may be used on its own as an open-access introduction to Bayesian inference using `R` for anyone interested in learning about Bayesian statistics. Materials and examples from the course are discussed more extensively and extra examples and exercises are provided. While learners are not expected to have any background in calculus or linear algebra, for those who do have this background and are interested in diving deeper, we have included optional sub-sections in each Chapter to provide additional mathematical details and some derivations of key results.
This book is written using the `R` package `bookdown`; any interested learners are welcome to download the source code from [github](http://github.com/StatsWithR/book) to see the code that was used to create all of the examples and figures within the book. Learners should have a current version of `R` (3.5.0 at the time of this version of the book) and will need to install `Rstudio` in order to use any of the `shiny` apps.
Those that are interested in running all of the code in the book or building the book locally, should download all of the following packages from `CRAN`:
```{r code, warning=FALSE, message=FALSE, results='hide'}
# R packages used to create the book
library(statsr)
library(BAS)
library(ggplot2)
library(dplyr)
library(BayesFactor)
library(knitr)
library(rjags)
library(coda)
library(latex2exp)
library(foreign)
library(BHH2)
library(scales)
library(logspline)
library(cowplot)
library(ggthemes)
```
We thank Amy Kenyon and Kun Li for all of their support in launching the course on Coursera and Kyle Burris for contributions to lab exercises and quizzes in earlier versions of the course.