It is usually the case that
is not directly samplable, otherwise
McMC would be trivial so other methods such as importance sample are
probably more appropriate.
Y might be computed as a deterministic
function of an unknown parameter,
, in which case McMC can be
used to invert the relationship between
and
.
This is the basis of simulated annealing, a useful technique for dealing with non-linear constraints such as positivity.