Much of Bayesian inference in the past has been accomplished with the Gibbs sampler, although other MCMC algorithms such as No-U-Turn sampler have gained popularity with Stan and PyMC3.


I’m using my awesome coworker Joaquin’s Context Cards for this. It’s done by including <script src="https://unpkg.com/context-cards/dist/context-cards.js"></script> (see repository for more info).

Here’s the code behind one of the links:

<a href="https://en.wikipedia.org/wiki/Bayesian_inference" class="wikiPreview" data-wiki-lang='en' data-wiki-title='Bayesian_inference'>Bayesian inference</a>

I’m being fancy by using Font Awesome because I want the Wikipedia links to have that sweet “W” logo:

<link rel="stylesheet" href="//YOUR-CDN-LINK/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" crossorigin="anonymous">

I use the following rules to stylize Wikipedia links:

a.wikiPreview {
	color: #0645ad;
	text-decoration: none;
	border-bottom: 1px dotted #0645ad;
.wikiPreview::after {
	font-family: FontAwesome;
    content: " \f266";
    vertical-align: super;
    font-size: 6pt;

Squarespace users

If you’re using Squarespace, go into the page’s “Advanced” settings to add the <script> and <link> tags in the “Page Header Code Injection” section. Refer to this page for more details. The rules can go into the “Custom CSS” section of the Style Editor (in the “Design” section when configuring your site).