Skip to content

Commit f0af8ba

Browse files
committed
update
1 parent 9446d96 commit f0af8ba

14 files changed

Lines changed: 4046 additions & 135 deletions
0 Bytes
Binary file not shown.

doc/pub/week12/ipynb/week12.ipynb

Lines changed: 2532 additions & 106 deletions
Large diffs are not rendered by default.

doc/pub/week12/pdf/week12.pdf

238 KB
Binary file not shown.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
\begin{MintedVerbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8\relax}]
2+
\PYG{c+c1}{\PYGZsh{} Set up the conditional probability distribution for each dimension}
3+
\PYG{c+c1}{\PYGZsh{} For example, I can sample p(a | b) using sample\PYGZus{}for\PYGZus{}dim[0].}
4+
5+
\PYG{n}{univariate\PYGZus{}conditionals} \PYG{o}{=} \PYG{p}{[}
6+
\PYG{n}{get\PYGZus{}conditional\PYGZus{}dist}\PYG{p}{(}\PYG{n}{joint\PYGZus{}mu}\PYG{p}{,} \PYG{n}{joint\PYGZus{}cov}\PYG{p}{,} \PYG{n}{d}\PYG{p}{)}
7+
\PYG{k}{for} \PYG{n}{d} \PYG{o+ow}{in} \PYG{n+nb}{range}\PYG{p}{(}\PYG{n}{D}\PYG{p}{)}
8+
\PYG{p}{]}
9+
10+
\end{MintedVerbatim}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
\begin{MintedVerbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8\relax}]
2+
\PYG{k}{def}\PYG{+w}{ }\PYG{n+nf}{get\PYGZus{}conditional\PYGZus{}dist}\PYG{p}{(}\PYG{n}{joint\PYGZus{}mu}\PYG{p}{,} \PYG{n}{joint\PYGZus{}cov}\PYG{p}{,} \PYG{n}{var\PYGZus{}index}\PYG{p}{)}\PYG{p}{:}
3+
\PYG{+w}{ }\PYG{l+s+sd}{\PYGZsq{}\PYGZsq{}\PYGZsq{}Returns the conditional distribution given the joint distribution and which variable}
4+
\PYG{l+s+sd}{ the conditional probability should use.}
5+
\PYG{l+s+sd}{ Right now this only works for 2\PYGZhy{}variable joint distributions.}
6+
7+
\PYG{l+s+sd}{ joint\PYGZus{}mu: joint distribution\PYGZsq{}s mu}
8+
\PYG{l+s+sd}{ joint\PYGZus{}cov: joint distribution\PYGZsq{}s covariance}
9+
\PYG{l+s+sd}{ var\PYGZus{}index: index of the variable in the joint distribution. Everything else will be}
10+
\PYG{l+s+sd}{ conditioned on. For example, if the joint distribution p(a, b, c) has mu [mu\PYGZus{}a, mu\PYGZus{}b, mu\PYGZus{}c],}
11+
\PYG{l+s+sd}{ to get p(c | a, b), use var\PYGZus{}index = 2.}
12+
13+
\PYG{l+s+sd}{ returns:}
14+
\PYG{l+s+sd}{ a function that can sample from the univariate conditional distribution}
15+
\PYG{l+s+sd}{ \PYGZsq{}\PYGZsq{}\PYGZsq{}}
16+
\PYG{k}{assert} \PYG{n}{joint\PYGZus{}mu}\PYG{o}{.}\PYG{n}{shape}\PYG{p}{[}\PYG{l+m+mi}{0}\PYG{p}{]} \PYG{o}{==} \PYG{l+m+mi}{2}\PYG{p}{,} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{Sorry, this function only works for 2\PYGZhy{}dimensional joint distributions right now}\PYG{l+s+s1}{\PYGZsq{}}
17+
\PYG{n}{a} \PYG{o}{=} \PYG{n}{joint\PYGZus{}mu}\PYG{p}{[}\PYG{n}{var\PYGZus{}index}\PYG{p}{]}
18+
\PYG{n}{b} \PYG{o}{=} \PYG{n}{joint\PYGZus{}mu}\PYG{p}{[}\PYG{o}{\PYGZti{}}\PYG{n}{var\PYGZus{}index}\PYG{p}{]}
19+
20+
\PYG{n}{A} \PYG{o}{=} \PYG{n}{joint\PYGZus{}cov}\PYG{p}{[}\PYG{n}{var\PYGZus{}index}\PYG{p}{,} \PYG{n}{var\PYGZus{}index}\PYG{p}{]}
21+
\PYG{n}{B} \PYG{o}{=} \PYG{n}{joint\PYGZus{}cov}\PYG{p}{[}\PYG{o}{\PYGZti{}}\PYG{n}{var\PYGZus{}index}\PYG{p}{,} \PYG{o}{\PYGZti{}}\PYG{n}{var\PYGZus{}index}\PYG{p}{]}
22+
\PYG{n}{C} \PYG{o}{=} \PYG{n}{joint\PYGZus{}cov}\PYG{p}{[}\PYG{n}{var\PYGZus{}index}\PYG{p}{,} \PYG{o}{\PYGZti{}}\PYG{n}{var\PYGZus{}index}\PYG{p}{]}
23+
24+
\PYG{c+c1}{\PYGZsh{} we\PYGZsq{}re dealing with one dimension so}
25+
\PYG{n}{B\PYGZus{}inv} \PYG{o}{=} \PYG{l+m+mi}{1}\PYG{o}{/}\PYG{n}{B}
26+
27+
\PYG{c+c1}{\PYGZsh{} Return a function that can sample given a value of g}
28+
\PYG{k}{def}\PYG{+w}{ }\PYG{n+nf}{dist}\PYG{p}{(}\PYG{n}{g}\PYG{p}{)}\PYG{p}{:}
29+
\PYG{c+c1}{\PYGZsh{} a + C*B\PYGZca{}\PYGZob{}\PYGZhy{}1\PYGZcb{}(g \PYGZhy{} b)}
30+
\PYG{n}{mu} \PYG{o}{=} \PYG{n}{a} \PYG{o}{+} \PYG{n}{C} \PYG{o}{*} \PYG{n}{B\PYGZus{}inv} \PYG{o}{*} \PYG{p}{(}\PYG{n}{g} \PYG{o}{\PYGZhy{}} \PYG{n}{b}\PYG{p}{)}
31+
\PYG{c+c1}{\PYGZsh{} A \PYGZhy{} C * B\PYGZca{}\PYGZob{}\PYGZhy{}1\PYGZcb{} * C\PYGZca{}T}
32+
\PYG{n}{cov} \PYG{o}{=} \PYG{n}{A} \PYG{o}{\PYGZhy{}} \PYG{n}{B\PYGZus{}inv} \PYG{o}{*} \PYG{n}{C} \PYG{o}{*} \PYG{n}{C}
33+
\PYG{k}{return} \PYG{n}{np}\PYG{o}{.}\PYG{n}{sqrt}\PYG{p}{(}\PYG{n}{cov}\PYG{p}{)} \PYG{o}{*} \PYG{n}{np}\PYG{o}{.}\PYG{n}{random}\PYG{o}{.}\PYG{n}{randn}\PYG{p}{(}\PYG{l+m+mi}{1}\PYG{p}{)} \PYG{o}{+} \PYG{n}{mu}
34+
35+
\PYG{k}{return} \PYG{n}{dist}
36+
37+
38+
\end{MintedVerbatim}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
\begin{MintedVerbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8\relax}]
2+
\PYG{n}{N} \PYG{o}{=} \PYG{l+m+mi}{10000}
3+
\PYG{n}{L} \PYG{o}{=} \PYG{n}{np}\PYG{o}{.}\PYG{n}{linalg}\PYG{o}{.}\PYG{n}{cholesky}\PYG{p}{(}\PYG{n}{joint\PYGZus{}cov}\PYG{p}{)}
4+
\PYG{n}{samples\PYGZus{}from\PYGZus{}true\PYGZus{}distribution} \PYG{o}{=} \PYG{n}{L} \PYG{o}{@} \PYG{n}{np}\PYG{o}{.}\PYG{n}{random}\PYG{o}{.}\PYG{n}{randn}\PYG{p}{(}\PYG{n}{D}\PYG{p}{,} \PYG{n}{N}\PYG{p}{)} \PYG{o}{+} \PYG{n}{joint\PYGZus{}mu}
5+
\PYG{n}{plt}\PYG{o}{.}\PYG{n}{plot}\PYG{p}{(}\PYG{o}{*}\PYG{n}{samples\PYGZus{}from\PYGZus{}true\PYGZus{}distribution}\PYG{p}{,} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{.}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYG{n}{alpha}\PYG{o}{=}\PYG{l+m+mf}{0.1}\PYG{p}{)}
6+
\PYG{n}{plt}\PYG{o}{.}\PYG{n}{axis}\PYG{p}{(}\PYG{p}{[}\PYG{o}{\PYGZhy{}}\PYG{l+m+mi}{4}\PYG{p}{,} \PYG{l+m+mi}{4}\PYG{p}{,} \PYG{o}{\PYGZhy{}}\PYG{l+m+mi}{4}\PYG{p}{,} \PYG{l+m+mi}{4}\PYG{p}{]}\PYG{p}{)}
7+
\PYG{n}{plt}\PYG{o}{.}\PYG{n}{show}\PYG{p}{(}\PYG{p}{)}
8+
9+
\end{MintedVerbatim}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
\begin{MintedVerbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8\relax}]
2+
\PYG{n}{samples} \PYG{o}{=} \PYG{n}{gibbs\PYGZus{}sample}\PYG{p}{(}\PYG{n}{univariate\PYGZus{}conditionals}\PYG{p}{,} \PYG{n}{sample\PYGZus{}count}\PYG{o}{=}\PYG{l+m+mi}{100}\PYG{p}{)}
3+
\PYG{n}{fig}\PYG{p}{,} \PYG{n}{ax} \PYG{o}{=} \PYG{n}{plt}\PYG{o}{.}\PYG{n}{subplots}\PYG{p}{(}\PYG{p}{)}
4+
5+
\PYG{n}{ax}\PYG{o}{.}\PYG{n}{plot}\PYG{p}{(}\PYG{o}{*}\PYG{n}{samples\PYGZus{}from\PYGZus{}true\PYGZus{}distribution}\PYG{p}{,} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{.}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYG{n}{alpha}\PYG{o}{=}\PYG{l+m+mf}{0.1}\PYG{p}{)}
6+
\PYG{n}{ax}\PYG{o}{.}\PYG{n}{plot}\PYG{p}{(}\PYG{o}{*}\PYG{n}{samples}\PYG{p}{,} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{k}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{)}
7+
\PYG{n}{ax}\PYG{o}{.}\PYG{n}{plot}\PYG{p}{(}\PYG{o}{*}\PYG{n}{samples}\PYG{p}{,} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{.r}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{)}
8+
\PYG{n}{ax}\PYG{o}{.}\PYG{n}{axis}\PYG{p}{(}\PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{square}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{)}
9+
\PYG{n}{plt}\PYG{o}{.}\PYG{n}{show}\PYG{p}{(}\PYG{p}{)}
10+
11+
\end{MintedVerbatim}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
\begin{MintedVerbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8\relax}]
2+
\PYG{k+kn}{import}\PYG{+w}{ }\PYG{n+nn}{numpy}\PYG{+w}{ }\PYG{k}{as}\PYG{+w}{ }\PYG{n+nn}{np}
3+
\PYG{k+kn}{import}\PYG{+w}{ }\PYG{n+nn}{matplotlib}\PYG{n+nn}{.}\PYG{n+nn}{pyplot}\PYG{+w}{ }\PYG{k}{as}\PYG{+w}{ }\PYG{n+nn}{plt}
4+
\PYG{c+c1}{\PYGZsh{} two dimensions}
5+
\PYG{n}{D} \PYG{o}{=} \PYG{l+m+mi}{2}
6+
7+
\PYG{c+c1}{\PYGZsh{} set up the means (standard normal distribution}
8+
\PYG{n}{a\PYGZus{}mu} \PYG{o}{=} \PYG{l+m+mi}{0}
9+
\PYG{n}{b\PYGZus{}mu} \PYG{o}{=} \PYG{l+m+mi}{0}
10+
\PYG{c+c1}{\PYGZsh{} and the variances and covariances}
11+
\PYG{n}{a\PYGZus{}sigma} \PYG{o}{=} \PYG{l+m+mi}{1}
12+
\PYG{n}{b\PYGZus{}sigma} \PYG{o}{=} \PYG{l+m+mi}{1}
13+
\PYG{n}{a\PYGZus{}b\PYGZus{}cov} \PYG{o}{=} \PYG{l+m+mf}{0.5}
14+
15+
\PYG{n}{joint\PYGZus{}cov} \PYG{o}{=} \PYG{n}{np}\PYG{o}{.}\PYG{n}{vstack}\PYG{p}{(}\PYG{p}{(}\PYG{p}{(}\PYG{n}{a\PYGZus{}sigma}\PYG{p}{,} \PYG{n}{a\PYGZus{}b\PYGZus{}cov}\PYG{p}{)}\PYG{p}{,} \PYG{p}{(}\PYG{n}{a\PYGZus{}b\PYGZus{}cov}\PYG{p}{,} \PYG{n}{b\PYGZus{}sigma}\PYG{p}{)}\PYG{p}{)}\PYG{p}{)}
16+
\PYG{n}{joint\PYGZus{}mu} \PYG{o}{=} \PYG{n}{np}\PYG{o}{.}\PYG{n}{vstack}\PYG{p}{(}\PYG{p}{(}\PYG{n}{a\PYGZus{}mu}\PYG{p}{,} \PYG{n}{b\PYGZus{}mu}\PYG{p}{)}\PYG{p}{)}
17+
18+
\end{MintedVerbatim}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
\begin{MintedVerbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8\relax}]
2+
\PYG{k}{def}\PYG{+w}{ }\PYG{n+nf}{gibbs\PYGZus{}sample}\PYG{p}{(}\PYG{n}{univariate\PYGZus{}conditionals}\PYG{p}{,} \PYG{n}{sample\PYGZus{}count}\PYG{p}{)}\PYG{p}{:}
3+
\PYG{+w}{ }\PYG{l+s+sd}{\PYGZsq{}\PYGZsq{}\PYGZsq{}Does Gibbs sampling given the distribution\PYGZsq{}s univariate conditionals.}
4+
5+
\PYG{l+s+sd}{ Returns a D x N matrix}
6+
\PYG{l+s+sd}{ \PYGZsq{}\PYGZsq{}\PYGZsq{}}
7+
\PYG{n}{D} \PYG{o}{=} \PYG{n+nb}{len}\PYG{p}{(}\PYG{n}{univariate\PYGZus{}conditionals}\PYG{p}{)}
8+
\PYG{k}{assert} \PYG{n}{D} \PYG{o}{==} \PYG{l+m+mi}{2}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}}\PYG{l+s+s2}{Sorry, this only supports 2 dimensions right now}\PYG{l+s+s2}{\PYGZdq{}}
9+
10+
\PYG{c+c1}{\PYGZsh{} initializes an empty matrix for the samples}
11+
\PYG{n}{samples} \PYG{o}{=} \PYG{n}{np}\PYG{o}{.}\PYG{n}{zeros}\PYG{p}{(}\PYG{p}{(}\PYG{n}{D}\PYG{p}{,} \PYG{n}{sample\PYGZus{}count}\PYG{p}{)}\PYG{p}{)}
12+
13+
\PYG{c+c1}{\PYGZsh{} initialize the first sample to some arbitrary value}
14+
\PYG{n}{samples}\PYG{p}{[}\PYG{p}{:}\PYG{p}{,} \PYG{l+m+mi}{0}\PYG{p}{]} \PYG{o}{=} \PYG{p}{[}\PYG{l+m+mi}{3}\PYG{p}{,} \PYG{o}{\PYGZhy{}}\PYG{l+m+mi}{3}\PYG{p}{]}
15+
16+
\PYG{k}{for} \PYG{n}{i} \PYG{o+ow}{in} \PYG{n+nb}{range}\PYG{p}{(}\PYG{l+m+mi}{1}\PYG{p}{,} \PYG{n}{sample\PYGZus{}count}\PYG{p}{)}\PYG{p}{:}
17+
\PYG{c+c1}{\PYGZsh{} first set this sample equal to the previous sample}
18+
\PYG{n}{samples}\PYG{p}{[}\PYG{p}{:}\PYG{p}{,} \PYG{n}{i}\PYG{p}{]} \PYG{o}{=} \PYG{n}{samples}\PYG{p}{[}\PYG{p}{:}\PYG{p}{,} \PYG{n}{i} \PYG{o}{\PYGZhy{}} \PYG{l+m+mi}{1}\PYG{p}{]}
19+
20+
\PYG{c+c1}{\PYGZsh{} now update the dimension whose turn it is using the conditional distribution}
21+
\PYG{c+c1}{\PYGZsh{} pass in all dimension from the previous sample except this dimension}
22+
\PYG{n}{d} \PYG{o}{=} \PYG{n}{i} \PYG{o}{\PYGZpc{}} \PYG{n}{D}
23+
\PYG{n}{samples}\PYG{p}{[}\PYG{n}{d}\PYG{p}{,} \PYG{n}{i}\PYG{p}{]} \PYG{o}{=} \PYG{n}{univariate\PYGZus{}conditionals}\PYG{p}{[}\PYG{n}{d}\PYG{p}{]}\PYG{p}{(}\PYG{n}{samples}\PYG{p}{[}\PYG{o}{\PYGZti{}}\PYG{n}{d}\PYG{p}{,} \PYG{n}{i} \PYG{o}{\PYGZhy{}} \PYG{l+m+mi}{1}\PYG{p}{]}\PYG{p}{)}
24+
25+
\PYG{k}{return} \PYG{n}{samples}
26+
27+
\end{MintedVerbatim}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
\begin{MintedVerbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8\relax}]
2+
\PYG{n}{samples} \PYG{o}{=} \PYG{n}{gibbs\PYGZus{}sample}\PYG{p}{(}\PYG{n}{univariate\PYGZus{}conditionals}\PYG{p}{,} \PYG{n}{sample\PYGZus{}count}\PYG{o}{=}\PYG{n}{N}\PYG{p}{)}
3+
\PYG{n}{fig}\PYG{p}{,} \PYG{n}{axs} \PYG{o}{=} \PYG{n}{plt}\PYG{o}{.}\PYG{n}{subplots}\PYG{p}{(}\PYG{l+m+mi}{1}\PYG{p}{,} \PYG{l+m+mi}{3}\PYG{p}{,} \PYG{n}{figsize}\PYG{o}{=}\PYG{p}{(}\PYG{l+m+mi}{12}\PYG{p}{,} \PYG{l+m+mi}{4}\PYG{p}{)}\PYG{p}{,} \PYG{n}{sharex}\PYG{o}{=}\PYG{k+kc}{True}\PYG{p}{,} \PYG{n}{sharey}\PYG{o}{=}\PYG{k+kc}{True}\PYG{p}{)}
4+
\PYG{c+c1}{\PYGZsh{} set all the axes}
5+
\PYG{n}{axs}\PYG{p}{[}\PYG{l+m+mi}{0}\PYG{p}{]}\PYG{o}{.}\PYG{n}{axis}\PYG{p}{(}\PYG{p}{[}\PYG{o}{\PYGZhy{}}\PYG{l+m+mi}{4}\PYG{p}{,} \PYG{l+m+mi}{4}\PYG{p}{,} \PYG{o}{\PYGZhy{}}\PYG{l+m+mi}{4}\PYG{p}{,} \PYG{l+m+mi}{4}\PYG{p}{]}\PYG{p}{)}
6+
\PYG{n}{axs}\PYG{p}{[}\PYG{l+m+mi}{0}\PYG{p}{]}\PYG{o}{.}\PYG{n}{plot}\PYG{p}{(}\PYG{o}{*}\PYG{n}{samples\PYGZus{}from\PYGZus{}true\PYGZus{}distribution}\PYG{p}{,} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{.}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYG{n}{alpha}\PYG{o}{=}\PYG{l+m+mf}{0.1}\PYG{p}{)}
7+
\PYG{n}{axs}\PYG{p}{[}\PYG{l+m+mi}{0}\PYG{p}{]}\PYG{o}{.}\PYG{n}{set\PYGZus{}title}\PYG{p}{(}\PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{original p(a, b)}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{)}
8+
\PYG{n}{axs}\PYG{p}{[}\PYG{l+m+mi}{1}\PYG{p}{]}\PYG{o}{.}\PYG{n}{plot}\PYG{p}{(}\PYG{o}{*}\PYG{n}{samples}\PYG{p}{,} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{k}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYG{n}{alpha}\PYG{o}{=}\PYG{l+m+mf}{0.8}\PYG{p}{)}
9+
\PYG{n}{axs}\PYG{p}{[}\PYG{l+m+mi}{1}\PYG{p}{]}\PYG{o}{.}\PYG{n}{set\PYGZus{}title}\PYG{p}{(}\PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{gibbs sampling path}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{)}
10+
\PYG{n}{axs}\PYG{p}{[}\PYG{l+m+mi}{2}\PYG{p}{]}\PYG{o}{.}\PYG{n}{plot}\PYG{p}{(}\PYG{o}{*}\PYG{n}{samples}\PYG{p}{,} \PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{.g}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{,} \PYG{n}{alpha}\PYG{o}{=}\PYG{l+m+mf}{0.1}\PYG{p}{)}
11+
\PYG{n}{axs}\PYG{p}{[}\PYG{l+m+mi}{2}\PYG{p}{]}\PYG{o}{.}\PYG{n}{set\PYGZus{}title}\PYG{p}{(}\PYG{l+s+s1}{\PYGZsq{}}\PYG{l+s+s1}{gibbs samples}\PYG{l+s+s1}{\PYGZsq{}}\PYG{p}{)}
12+
\PYG{n}{plt}\PYG{o}{.}\PYG{n}{show}\PYG{p}{(}\PYG{p}{)}
13+
14+
\end{MintedVerbatim}

0 commit comments

Comments
 (0)