Success runs in Bernoulli trials

  • Context: MHB 
  • Thread starter Thread starter Mathick
  • Start date Start date
  • Tags Tags
    Bernoulli
Click For Summary
SUMMARY

This discussion focuses on the probability of observing a run of $r$ successes in a sequence of Bernoulli trials with success probability $p$. The recurrence relation for $u_n$, the probability that a run of $r$ successes occurs on the $n$th trial, is established as $u_n + u_{n−1}p + · · · + u_{n−r+1}p^{r−1} = p^r$ for $n \ge r$. The left-hand side represents the sum of probabilities of different scenarios leading to a successful run, while the right-hand side quantifies the probability of achieving $r$ consecutive successes. The discussion clarifies the reasoning behind the equality of both sides, emphasizing the concept of mutually exclusive events in the context of renewal processes.

PREREQUISITES
  • Understanding of Bernoulli trials and success probability
  • Familiarity with recurrence relations in probability theory
  • Knowledge of generating functions in statistical analysis
  • Concept of renewal processes in stochastic processes
NEXT STEPS
  • Study the derivation of generating functions in probability theory
  • Explore the concept of renewal theory and its applications
  • Learn about the implications of mutually exclusive events in probability
  • Investigate advanced topics in stochastic processes, particularly in relation to Bernoulli trials
USEFUL FOR

Mathematicians, statisticians, and students studying probability theory, particularly those interested in stochastic processes and renewal theory.

Mathick
Messages
23
Reaction score
0
I tried to understand the following problem:

Consider a sequence of Bernoulli trials with success probability $p$. Fix a positive integer $r$ and let $\mathcal{E}$ denote the event that a run of $r$ successes is observed; recall that we do not allow overlapping runs. We use a recurrence relation for $u_n$, the probability that $\mathcal{E}$ occurs on the $n$th trial, to derive the generating function $U(s)$. Consider $n \ge r$ and the event that trials $n, n − 1, . . . , n − r + 1$ all result in success. This event has probability $p^r$.

On the other hand, if this event occurs then event $\mathcal{E}$ must occur on trial $n−k$ ($0 \le k \le r−1$) and then the subsequent $k$ trials must result in success. Thus we derive

$u_n + u_{n−1}p + · · · + u_{n−r+1}p^{r−1} = p^r$, for $n \ge r$.

Everything is fine until 'On the other hand...' How do we know that event $\mathcal{E}$ must occur on trial $n−k$ ($0 \le k \le r−1$)? And also why the LHS of the above equation equals RHS? I mean I understand RHS - the probability of $r$ successes, but I'm struggling to understand LHS. In my opinion, when we take for example $u_{n-1}$, don't we also take into account the successes which happened outside our run in question? I'm clearly wrong but I don't understand why.

Please, could anyone try to explain it to me?
 
Physics news on Phys.org
This passage comes directly from Feller volume 1. The idea is observe something and calculate it two different but equivalent ways.
- - - - -
So let the coin tossing process run for a little bit (at least $r$ tosses, but consider $2r$ or more to avoid technicalities with boundary conditions / delayed renewal type of arguments)

If you observe a run of $r$ heads, then that occurs with probability $p^r$ -- this is one way of calculating it and it is easy.

Now for the second way of calculating it: if you observe a run of $r$ heads, then we have a 'look back' window over the last $r$ tosses and we know exactly one renewal occurred during this window (why?). Hence we either had a renewal just now, or one toss prior, or two tosses prior, or ..., or $r-2$ tosses, or $r-1$ tosses.

Each renewal ends on a run of heads, so if we had a renewal $r-1$ tosses ago, then the probability of this event is to see $r-1$ in a row subsequent to the renewal (which means $r-1$ 'new' heads and 'reusing' the last heads from the prior run that caused the renewal) times the probability of renewal at that time, given by $u_{n-(r-1)}$. Now for a renewal at $r-2$ the probability is $u_{n-(r-2)}\cdot p^{r-2}$, ..., for renewal at 1 toss ago the event probability is $u_{n-1}\cdot p$ and for renewal 0 tosses ago the probability is $u_n \cdot 1$, These events are mutually exclusive (reference the earlier "why") so their probabilities add. Hence we have the equality

$ p^r = u_n + u_{n−1}p + · · · + u_{n−r+1}p^{r−1} $
 

Similar threads

  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 15 ·
Replies
15
Views
2K