Content deleted Content added
m WP:CHECKWIKI error fix for #61. Punctuation goes before References. Do general fixes if a problem exists. -, replaced: → (8) using AWB (11751) |
improve, by removing the confusing not-slice-sampling bit and moving the nice motivation higher |
||
Line 16:
}}</ref>
==Motivation==▼
Suppose you want to sample some random variable ''X'' with distribution f(x). Suppose that the following is the graph of f(x). The height of f(x) corresponds to the likelihood at that point.▼
[[File:Some probability distribution.png|350px|alt=alt text]]▼
If you were to uniformly sample ''X'', each value would have the same likelihood of being sampled, and your distribution would be of the form f(x)=y for some ''y'' value instead of some non-uniform function f(x). Instead of the original black line, your new distribution would look more like the blue line.▼
[[File:A horizontally sliced distribution.png|350px|alt=alt text]]▼
In order to sample ''X'' in a manner which will retain the distribution f(x), some sampling technique must be used which takes into account the varied likelihoods for each range of f(x).▼
==Method==
Slice sampling, in its simplest form, samples uniformly from underneath the curve f(x) without the need to reject any points, as follows:
#Choose a starting value x<sub>0</sub> for which f(x<sub>0</sub>)>0.
Line 38 ⟶ 48:
Note that, in contrast to many available methods for generating random numbers from non-uniform distributions, random variates generated directly by this approach will exhibit serial statistical dependence. This is because to draw the next sample, we define the slice based on the value of f(x) for the current sample.
▲==Motivation==
▲Suppose you want to sample some random variable ''X'' with distribution f(x). Suppose that the following is the graph of f(x). The height of f(x) corresponds to the likelihood at that point.
▲[[File:Some probability distribution.png|350px|alt=alt text]]
▲If you were to uniformly sample ''X'', each value would have the same likelihood of being sampled, and your distribution would be of the form f(x)=y for some ''y'' value instead of some non-uniform function f(x). Instead of the original black line, your new distribution would look more like the blue line.
▲[[File:A horizontally sliced distribution.png|350px|alt=alt text]]
▲In order to sample ''X'' in a manner which will retain the distribution f(x), some sampling technique must be used which takes into account the varied likelihoods for each range of f(x).
==Compared to Other Methods==
|