Skip to content

Instantly share code, notes, and snippets.

View joonro's full-sized avatar

Joon Ro joonro

View GitHub Profile
@jtrive84
jtrive84 / b_gibbs_lm.md
Last active August 1, 2024 15:28
Gibbs Sampling for Bayesian Linear Regression

Gibbs Sampling for Bayesian Linear Regression

MCMC methods can be used to estimate linear regression models. In what follows, we derive the distributional forms and algorithms associated with two Gibbs sampling approaches: the full conditionals approach and the composition method.

The dataset is available here and represents refrigerator price as a function of available features. Our objective is to estimate PRICE as a function of ECOST, FSIZE, SHELVES and FEATURES, where:

  • PRICE: Response, cost of refrigerator.
@Superbil
Superbil / talk-org-mode.org
Last active February 12, 2023 07:37
[PyHUG] July: Use Python in Org-mode

[PyHUG] July: Use Python in Org-mode

About

@kroger
kroger / gist:3856821
Created October 9, 2012 05:38
autoimage for Sphinx
import os
from docutils import nodes
from docutils.parsers.rst import directives
from docutils.parsers.rst.directives.images import Image
def find_image(path, filename):
fname = os.path.join(path, filename)
if os.path.exists(fname + '.pdf'):
return fname + '.pdf'