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

Evaluating convergence with CODA

The Convergence and Diagnostics (CODA) package is frequently used to evaluate the convergence of MCMC output. It provides several statistical tests to test whether MCMC chains have converged. Many prominent statisticians argue that convergence diagnostics should only be used to flag obvious problems with MCMC convergence, but can't be used to authoritatively tell whether MCMC chains have converged.

Remember that MCMC is an algorithm that generates correlated random numbers according to a particular distribution (in this case, our posterior distribution) only when the stationary distribution has been achieved. Consequently, we need to check the following two things:

  • That the stationary distribution has been achieved. This is almost always not that simple, since we can never authoritatively tell whether that distribution has been achieved...
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