# \#algorithm

**URL:** https://discourse.pymc.io/tag/algorithm/35.md

[Latest](https://discourse.pymc.io/latest.md) · [Categories](https://discourse.pymc.io/categories.md) · [Tags](https://discourse.pymc.io/tags.md)

---

## [Typo in "MCMC Using Hamiltonian Dynamics" (Neal, 2012)?](https://discourse.pymc.io/t/typo-in-mcmc-using-hamiltonian-dynamics-neal-2012/10357)

<div class="topic-metadata">

**Author:** [@jhrcook](https://discourse.pymc.io/u/jhrcook)\
**Replies:** 3\
**Last updated:** [September 15, 2022, 6:46pm UTC](https://discourse.pymc.io/t/typo-in-mcmc-using-hamiltonian-dynamics-neal-2012/10357 "2022-09-15T18:46:01Z")

</div>

Reading through Radford Neal’s 2012 review of HMC, “MCMC Using Hamiltonian Dynamics,” I got stumped by the following: In Bayesian statistics, the posterior distribution for the model parameters is the usual focus of in…

---

## [Help with understanding how sum\_stat="sort" works and how it is applied in "smc.py" source code](https://discourse.pymc.io/t/help-with-understanding-how-sum-stat-sort-works-and-how-it-is-applied-in-smc-py-source-code/8638)

<div class="topic-metadata">

**Author:** [@mjedrz](https://discourse.pymc.io/u/mjedrz)\
**Replies:** 2\
**Last updated:** [January 21, 2022, 5:26pm UTC](https://discourse.pymc.io/t/help-with-understanding-how-sum-stat-sort-works-and-how-it-is-applied-in-smc-py-source-code/8638 "2022-01-21T17:26:52Z")

</div>

Hi, I’ve been fiddling with the source code “smc.py” recently and discovered something which bugs me. When a summary statistic called “sum\_stat=sort” is used, then np.sort is applied to observations and sim\_data as foll…
