Slice sampling: Difference between revisions

Content deleted Content added
m Replace unicode entity nbsp for character [NBSP] (or space) per WP:NBSP + other fixes, replaced: → (2) using AWB (10331)
Example: removed spurious stars
Line 98:
==Example==
Let us consider a single variable example. Suppose our true distribution <math>g(x)\sim N(0,5)</math>. So:
<math>f(x) = \frac{1}{\sqrt{2\pi*5 \cdot5^2}} * e^{ -\frac{(x-0)^2}{2* \cdot 5^2} }</math>
 
*We first draw a uniform random value ''y'' from the range of f(x) in order to define our slice(es). Suppose y=0.01.