6.8.6.2.2. statsmodels.sandbox.stats.runs.RunsProb

class statsmodels.sandbox.stats.runs.RunsProb[source]

distribution of success runs of length k or more (classical definition)

The underlying process is assumed to be a sequence of Bernoulli trials of a given length n.

not sure yet, how to interpret or use the distribution for runs of length k or more.

Musseli also has longest success run, and waiting time distribution negative binomial of order k and geometric of order k

need to compare with Godpole

need a MonteCarlo function to do some quick tests before doing more

__init__

x.__init__(...) initializes x; see help(type(x)) for signature

6.8.6.2.2.1. Methods

pdf(x, k, n, p) distribution of success runs of length k or more
pdf_nb(x, k, n, p)