Reader small image

You're reading from  R Statistics Cookbook

Product typeBook
Published inMar 2019
Reading LevelExpert
PublisherPackt
ISBN-139781789802566
Edition1st Edition
Languages
Tools
Concepts
Right arrow
Author (1)
Francisco Juretig
Francisco Juretig
author image
Francisco Juretig

Francisco Juretig has worked for over a decade in a variety of industries such as retail, gambling and finance deploying data-science solutions. He has written several R packages, and is a frequent contributor to the open source community.
Read more about Francisco Juretig

Right arrow

Getting the posterior density in STAN

STAN is the leading Bayesian engine for R, both for academia and the industry. Its performance is very good, mainly because it is written in C++.

In Bayesian statistics, and we have a very different approach than in classical statistics. Here, each coefficient will behave as a random variable, and we will use appropriate algorithms to recover the distribution of each one of them. But there is an extra element here, we will be able to incorporate prior distributions into our approach. Consequently, the idea will be the following:

Bayesian statistics could be interpreted as an approach where we have a prior/initial idea about a coefficient, we then augment that expectation using the data, and we finally end up with a posterior distribution. This is not that different from the process humans follow when learning new things; for example, we...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
R Statistics Cookbook
Published in: Mar 2019Publisher: PacktISBN-13: 9781789802566

Author (1)

author image
Francisco Juretig

Francisco Juretig has worked for over a decade in a variety of industries such as retail, gambling and finance deploying data-science solutions. He has written several R packages, and is a frequent contributor to the open source community.
Read more about Francisco Juretig