Per my discussion with @WardBrian , in HMC a draw can refer to two distinct concepts:
- The position variable
theta, which denotes a draw from the target distribution
- The tuple
(theta, rho) that contains position and momentum variables accordingly, denoting a draw from the joint distribution.
In Bayes-Kit, the data type DrawAndLogP suggests definition 1 when it is defined here. However, comments from @bob-carpenter in my pull request here suggest definition 2. Additionally, Stan documentation uses the phrase "draw" in HMC to refer to definition 1 here.
My code for the drghmc sampler uses the DrawAndLogP data type, suggesting definition 1, but in its documentation uses a draw to refer to definition 2. I worry this may be confusing.
Lastly, if Bayes-Kit is intended as a pedagogical resource, it may be especially worthwhile to clarify this confusion. Would love to hear other's thoughts on this!
Per my discussion with @WardBrian , in HMC a draw can refer to two distinct concepts:
theta, which denotes a draw from the target distribution(theta, rho)that contains position and momentum variables accordingly, denoting a draw from the joint distribution.In
Bayes-Kit, the data typeDrawAndLogPsuggests definition 1 when it is defined here. However, comments from @bob-carpenter in my pull request here suggest definition 2. Additionally, Stan documentation uses the phrase "draw" in HMC to refer to definition 1 here.My code for the
drghmcsampler uses theDrawAndLogPdata type, suggesting definition 1, but in its documentation uses a draw to refer to definition 2. I worry this may be confusing.Lastly, if Bayes-Kit is intended as a pedagogical resource, it may be especially worthwhile to clarify this confusion. Would love to hear other's thoughts on this!