Given length of character array (N), and number of each character appearing in this array (e.g. A is appearing n_{A} times, B is appearing n_{B} times etc, n_{a}+n_{B}+..+n_{Z} = N),
what is the probability of character (say, _c) appearing m (m <= n_{_c}) times in a row in this array?

Let's say only characters are A and B.

n_{A} = 5
n_{B} = 3
N = 8
and suppose m = 3
and _c = 'A'
Situations of interest: AAA*****, *AAA****, **AAA*** etc.

## Question

## colonia 0

Given length of character array (N), and number of each character appearing in this array (e.g. A is appearing n

_{A}times, B is appearing n_{B}times etc, n_{a}+n_{B}+..+n_{Z}= N),what is the probability of character (say, _c) appearing m (m <= n

_{_c}) times in a row in this array?Let's say only characters are A and B.

n

_{A}= 5n

_{B}= 3N = 8

and suppose m = 3

and _c = 'A'

Situations of interest: AAA*****, *AAA****, **AAA*** etc.

I assume the probability is:

Do you agree?

## Link to post

## Share on other sites

## 0 answers to this question

## Recommended Posts

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.