Skip to Content
Beginning Data Science in R 4: Data Analysis, Visualization, and Modelling for the Data Scientist
book

Beginning Data Science in R 4: Data Analysis, Visualization, and Modelling for the Data Scientist

by Thomas Mailund
June 2022
Beginner
528 pages
10h 39m
English
Apress
Content preview from Beginning Data Science in R 4: Data Analysis, Visualization, and Modelling for the Data Scientist
© Thomas Mailund 2022
T. MailundBeginning Data Science in R 4https://doi.org/10.1007/978-1-4842-8155-0_17

17. Project 2: Bayesian Linear Regression

Thomas Mailund1  
(1)
Aarhus, Denmark
 

The project for this chapter is building an R package for Bayesian linear regression. The model we will work with is somewhat a toy example of what we could imagine we could build an R package for, and the goal is not to develop all the bells and whistles of Bayesian linear regression. We will just build enough to see the various aspects that go into building a real R package.

Bayesian Linear Regression

In linear regression, we assume that we have predictor variables x and target variables y where y = w0 + w1x + ϵ where ϵ ∼ N(0, σ2). That is, we have a line with intercept ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning Data Science in R: Data Analysis, Visualization, and Modelling for the Data Scientist

Beginning Data Science in R: Data Analysis, Visualization, and Modelling for the Data Scientist

Thomas Mailund

Publisher Resources

ISBN: 9781484281550Purchase LinkPublisher Website