Random sequence - full alphabet run length

In summary: So the average run length is about 29.29.In summary, the conversation discusses a problem known as the "coupon collector's problem" where a sequence of digits from 0 to 9 is read until each digit has been seen at least once. The average length of these runs is equivalent to the sum of a geometric series, resulting in an average run length of approximately 29.29. This problem falls under the branch of mathematics known as probability.
  • #1
Monte_Carlo
72
0
Hi,

Suppose we're looking at a random sequence of digits from 0 to 9. We start off reading the digits until every digit from 0 to 9 has been seen at least once and we mark the count of digits read up to that point (run length). We then reset the run length and continue until the whole random sequence has been read. In the end, for every finite random sequence, there is a corresponding sequence of run lengths.

How would we be able to analytically arrive at average length of such these runs? What is the formal mathematical name given to such a run? What branch of mathematics concerns itself with this?

Monte
 
Mathematics news on Phys.org
  • #2
Let me know if I am in the wrong place

Just want to make sure this forum is appropriate for the question above - I've seen some people have looked at the problem but so far I garnered zero responses. This is not a homework problem.

Again, basically, given finite alphabet and a finite sequence composed using that alphabet, we start reading the sequence until every symbol in the alphabet has been at read least once. We then record how many symbols it took us to reach that point. We repeat, until we've read the whole sequence, thus finishing with sequence of run lengths. The question is, what is average (expected) length of these runs (looks like around 27 for random sequence of digits from 0 to 9).
 
  • #3
I suspect that you haven't gotten any response because it appears to be a very difficult calculation. Did you use some sort of Monte Carlo simulation to get 27?
 
  • #4
I believe that your question is equivalent to what's known as the "coupon collector's problem." You should be able to find an answer using that information.
 
  • #5
Once you've seen n digits, the next digit has a probability of n/10 of already been seen, so there is a probability of n/10 that a second digit is needed, n^2/100 that a third digit is needed etc. the sum of this is 1 + n/10 + n^2/100 + ... = 1/(1 - n/10). (sum of geometric series). This is the average number of digits you need to read until you get a new digit.
To get the average run length until all the digits are seen you need to sum 1/(1 - n/10) for n ranging from 0 up to 9, so you get 1 + 10/9 + 10/8 + 10/7 + ... . + 10/2 + 10/1 which is 29.2896...
 

1. What is a random sequence?

A random sequence refers to a series of elements or numbers that are generated without any predictable pattern. This means that each element or number has an equal chance of appearing in the sequence and there is no specific order or pattern in which they appear.

2. How is a random sequence generated?

A random sequence can be generated through various methods such as using a random number generator or by flipping a coin. In scientific experiments, random sequences are often generated using computer algorithms.

3. What is a full alphabet run length in a random sequence?

A full alphabet run length in a random sequence refers to the number of consecutive elements or numbers in the sequence that contain all the letters of the alphabet. For example, in a sequence of 26 elements, if the first 13 elements contain the letters A to M and the next 13 elements contain the letters N to Z, then the full alphabet run length is 13.

4. Why is it important to study full alphabet run lengths in random sequences?

Studying full alphabet run lengths in random sequences can provide insights into the randomness of the sequence. It can also help in understanding the probability of certain elements or patterns appearing in a random sequence, which can have applications in various fields such as cryptography, gambling, and data analysis.

5. What are some real-life examples of full alphabet run lengths in random sequences?

Full alphabet run lengths can be observed in various natural phenomena such as the distribution of letters in written text, the occurrence of different weather patterns throughout a year, and the distribution of animal species in a particular area. They can also be seen in artificial sequences such as the shuffling of a deck of cards or the generation of random passwords.

Similar threads

Replies
66
Views
4K
  • General Math
Replies
18
Views
1K
Replies
29
Views
7K
Replies
9
Views
4K
  • Calculus and Beyond Homework Help
Replies
9
Views
1K
Replies
4
Views
907
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
6
Views
663
  • General Math
4
Replies
125
Views
16K
Back
Top