# Differentiating random walk probability w.t.r. rate of jump

**URL:** <https://discourse.julialang.org/t/differentiating-random-walk-probability-w-t-r-rate-of-jump/107116>\
**Category:** Probabilistic Programming\
**Tags:** autodiff\
**Created:** [December 4, 2023, 2:46pm UTC](https://discourse.julialang.org/t/differentiating-random-walk-probability-w-t-r-rate-of-jump/107116 "2023-12-04T14:46:10Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [December 14, 2023, 6:35pm UTC](https://discourse.julialang.org/t/differentiating-random-walk-probability-w-t-r-rate-of-jump/107116/11 "2023-12-14T18:35:23Z")

</div>

> [@mlanghinrichs](#):
>
> I imagine that stochastic derivatives of the distance function (between model and data statistics) with respect to model parameters would help a lot to explore the parameter space more efficiently. I don’t know, maybe like a Hamiltonian Monte Carlo within ABC, or another form of gradient-based ABC if possible.
> 
> Is this something worth to explore? Are you already working on this, or would it be useful to go into this topic a bit? Would be very happy to (roughly) understand the current state of this! The general idea sounds very exciting.

It’s exactly what we’re exploring. That was actually the genesis for the whole project:

> [@Differentiating through a Jump Problem](https://discourse.julialang.org/t/differentiating-through-a-jump-problem/31496/11):
>
> I took a stab at it, but it turns out to be impossible laughing. The reason is because after doing the rate calculations, you have to arrive at an integer for which jump is going to occur, and that integer value is going to “break” the differentiation chain (duals come out zero), so AD cannot be directly applied here. Mixings don’t seem to make sense. At a more fundamental level, I dug up a Petzold paper that made it a bit more explicit. They took a look at the chemical master equations, and …

---

_[View the full topic](https://discourse.julialang.org/t/differentiating-random-walk-probability-w-t-r-rate-of-jump/107116)._
