Article ID | Journal | Published Year | Pages | File Type |
---|---|---|---|---|
429547 | Journal of Computer and System Sciences | 2015 | 23 Pages |
•We study the runtime in probabilistic programs with unbounded recursion.•A transformation to make probabilistic PDAs stateless is proposed.•We give bounds on the probability of long runs of a recursive program.
We study the runtime in probabilistic programs with unbounded recursion. As underlying formal model for such programs we use probabilistic pushdown automata (pPDAs) which exactly correspond to recursive Markov chains. We show that every pPDA can be transformed into a stateless pPDA (called “pBPA”) whose runtime and further properties are closely related to those of the original pPDA. This result substantially simplifies the analysis of runtime and other pPDA properties. We prove that for every pPDA the probability of performing a long run decreases exponentially in the length of the run, if and only if the expected runtime in the pPDA is finite. If the expectation is infinite, then the probability decreases “polynomially”. We show that these bounds are asymptotically tight. Our tail bounds on the runtime are generic, i.e., applicable to any probabilistic program with unbounded recursion.