Some time back, I asked a question regarding a mass function for a dice roll with the following rules:
- We roll $n$ fair, $d$-sided dice (with standard number $1$ to $d$), choosing target numbers $x$ and $y$, such that $d \geq x > y \geq 1$, and $\{n,d,x,y\} \in \mathbb{N}^+$
- For every die that rolls at least $x$, we add 1 to our score, then roll that die again
- For every die that rolls at most $y$, we subtract 1 from our score, then roll that die again.
- If any die rolls between $x$ and $y$, that die terminates.
After a good deal of additional work, I determined that the mass function for the probability of score $h$ on $n$ dice was:
$$\begin{align*}P(H=h)=\binom{n+|h|-1}{|h|}\left(\frac{x-y-1}{d}\right)^n\left(\frac{d-x+1}{d}\right)^{\max[0,h]}\\\cdot\left(\frac{y}{d}\right)^{-\min[0,h]}{}_2F_1\left(\tfrac{n+|h|}{2}, \tfrac{n+|h|+1}{2}, |h|+1, \tfrac{4y(d-x+1)}{d^2}\right)\end{align*}$$
where:
$$\begin{align*}{}_2F_1\left(\tfrac{n+|h|}{2}, \tfrac{n+|h|+1}{2}, |h|+1, \tfrac{4y(d-x+1)}{d^2}\right)=&\left(\frac{2d}{d+\sqrt{d^2-4y(d-x+1)}}\right)^{|h|}\left(\frac{d}{\sqrt{d^2-4y(d-x+1)}}\right)^{n}\\ &\cdot\sum_{j=0}^{n-1}\binom{n-1}{j}\frac{|h|!(n+j-1)!}{(n-1)!(|h|+j)!}\left(\frac{d-\sqrt{d^2-4y(d-x+1)}}{2\sqrt{d^2-4y(d-x+1)}}\right)^j \end{align*}$$
I'm currently attempting to figure out where I'd even start to build a CDF function for this distribution. Functionally, we're looking at a discrete Negative Multinomial Distribution where $h$ can be any integer: $\infty > h > -\infty$. Unlike a more standard Negative Binomial distribution, I can't just sum the mass function from $0$ to $h$, as one normally would, and I've done a lot of reading but I can't figure out how one would generally build a CDF for this kind of discrete distribution. If this was a continuous variable, this wouldn't be a problem - I know that there are ways to integrate from $-\infty$ to $h$, but I'm pretty certain that transforming this into a continuous function won't actually help.
So, I ask, what approach can we use to calculate the cumulative distribution function for this result? To be specific, I'd like to convert the infinite sum in this CDF into either a closed form, or some finite sum that can be exactly calculated.