Skip to content

Instantly share code, notes, and snippets.

@dfm
Created May 26, 2015 13:33
Show Gist options
  • Save dfm/dece3a2e59b0d6fa0b17 to your computer and use it in GitHub Desktop.
Save dfm/dece3a2e59b0d6fa0b17 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Demo:\n",
"\n",
"1. draw a random number $r$ between 0 and 1 and if $r < p(\\mathbf{q}\\,|\\,\\mathbf{y}) / p(\\mathbf{x}_t\\,|\\,\\mathbf{y})$ return $\\mathbf{q}$ as $\\theta_{t+1}$ and, otherwise, return $\\theta_t$ as $\\theta_{t+1}$."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.9"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment