Probability that two letters are repeated

  • Thread starter utkarshakash
  • Start date
  • Tags
    Probability
In summary: Actually, I may not have read your question quite accurately. I read it as exactly one unique letter is repeated twice. As in "exactly two letters of your six letter word are the same". If it means two unique letters of your alphabet are repeated in the six letter word, I'll have to rethink this. This would make your first post make more sense. But I think it might mean the former. It's a little ambiguous. Is "two letters" talking about two letters in the alphabet or two letters in the word?My Answer 18090/16^6My book's Answer 18080/16^6
  • #1
utkarshakash
Gold Member
854
13

Homework Statement


A word of 6 letters is formed from a set of 16 different letters of English alphabet(with replacement). Find out the probability that exactly two letters are repeated.

Homework Equations



The Attempt at a Solution


Total possible words = 26C16 . 16^6
Now there are 16C2 ways to choose two letters. Letter 1 can occur atleast twice and atmost 4 times. Same is the case with letter 2. So there arises 5 cases by which repetitions can occur.

Total words possible in these cases are (6C2.4C2.14.13+6C2.4C3.14+6C2.4C4+6C3.3C2.14+6C4.2C2)

∴n(P) = 26C16.16C2.(6C2.4C2.14.13+6C2.4C3.14+6C2.4C4+6C3.3C2.14+6C4.2C2)
P=n(S)/n(P)
But the answer which I get is incorrect.
 
Physics news on Phys.org
  • #2
so you can choose 16 letters for the first letter of the word and 16 for the second...

so the total combinations are 16^6

You could look at your problem from the reverse sense of what is the probability that no letters are repeated and then subtract it from 100%. right?
 
  • #3
jedishrfu said:
You could look at your problem from the reverse sense of what is the probability that no letters are repeated and then subtract it from 100%. right?

No, this would not work. Re-read the problem statement.
 
  • #4
phinds said:
No, this would not work. Re-read the problem statement.

You're right I overlooked that part. Close but no cigar.
 
  • #5
utkarshakash said:

Homework Statement


A word of 6 letters is formed from a set of 16 different letters of English alphabet(with replacement). Find out the probability that exactly two letters are repeated.

Homework Equations



The Attempt at a Solution


Total possible words = 26C16 . 16^6
Now there are 16C2 ways to choose two letters. Letter 1 can occur atleast twice and atmost 4 times. Same is the case with letter 2. So there arises 5 cases by which repetitions can occur.

Total words possible in these cases are (6C2.4C2.14.13+6C2.4C3.14+6C2.4C4+6C3.3C2.14+6C4.2C2)

∴n(P) = 26C16.16C2.(6C2.4C2.14.13+6C2.4C3.14+6C2.4C4+6C3.3C2.14+6C4.2C2)
P=n(S)/n(P)
But the answer which I get is incorrect.
It is a fixed 16 letters from the alphabet. What other letters happen to exist in the alphabet are irrelevant, so there should be no reference to 26.
If some letters are repeated then there will be fewer than 6 distinct letters chosen, so references to 6C2 are also suspect.
 
  • #6
haruspex said:
It is a fixed 16 letters from the alphabet. What other letters happen to exist in the alphabet are irrelevant, so there should be no reference to 26.
If some letters are repeated then there will be fewer than 6 distinct letters chosen, so references to 6C2 are also suspect.

By removing the 26C16 and 6C2 part I am very close to the answer. The numerator of my answer is 18090 whereas that of the answer given in my book is 18080. My denominator is correct. So I think there is a possibility that the answer in my book might be wrong. What do you say about it?
 
  • #7
utkarshakash said:
By removing the 26C16 and 6C2 part I am very close to the answer. The numerator of my answer is 18090 whereas that of the answer given in my book is 18080. My denominator is correct. So I think there is a possibility that the answer in my book might be wrong. What do you say about it?
What denominator would that be?
 
  • #8
haruspex said:
What denominator would that be?

The answer I get doesn't have a numerator anything like 18080, unless the denominator is a funny looking rational. Are you trying to match multiple choices by making random changes?
 
  • #9
haruspex said:
What denominator would that be?

My Answer 18090/16^6

My book's Answer 18080/16^6
 
  • #10
utkarshakash said:
My Answer 18090/16^6

My book's Answer 18080/16^6

They are both wrong.
 
  • #11
Dick said:
They are both wrong.

How?
 
  • #12
utkarshakash said:
How?

Actually, I may not have read your question quite accurately. I read it as exactly one unique letter is repeated twice. As in "exactly two letters of your six letter word are the same". If it means two unique letters of your alphabet are repeated in the six letter word, I'll have to rethink this. This would make your first post make more sense. But I think it might mean the former. It's a little ambiguous. Is "two letters" talking about two letters in the alphabet or two letters in the word?
 
Last edited:
  • #13
utkarshakash said:
My Answer 18090/16^6

My book's Answer 18080/16^6
I thought of a number of interpretations of the question, but all give me much larger numbers.
A. Of the distinct letters in the 'word', exactly two occur more than once. So the counts of distinct letters could be 4, 2; 3, 3; 3, 2, 1; 2, 2, 1, 1.
B. Exactly two occur twice each, the other two once each, i.e. just the 2,2,1,1 case.
c. As B, but the repeats are immediate, i.e. the two occurrences of a letter are consecutive.

For B, there are 16C2 ways of choosing the two repeated letters, and 14C2 ways of choosing the other two. Having chosen the letters, we must now order them. There are 6C2 places for the first of the repeated letters, 4C2 for the other repeated letter, and two ways of filling in the remaining two digits. 16C2*14C2*6C2*4C2*2 is far larger than either of the answers you quote.
What's your reasoning for 18090?
 
  • #14
utkarshakash said:

Homework Statement


A word of 6 letters is formed from a set of 16 different letters of English alphabet(with replacement). Find out the probability that exactly two letters are repeated.

Homework Equations



The Attempt at a Solution


Total possible words = 26C16 . 16^6
Now there are 16C2 ways to choose two letters. Letter 1 can occur atleast twice and atmost 4 times. Same is the case with letter 2. So there arises 5 cases by which repetitions can occur.

Total words possible in these cases are (6C2.4C2.14.13+6C2.4C3.14+6C2.4C4+6C3.3C2.14+6C4.2C2)

∴n(P) = 26C16.16C2.(6C2.4C2.14.13+6C2.4C3.14+6C2.4C4+6C3.3C2.14+6C4.2C2)
P=n(S)/n(P)
But the answer which I get is incorrect.

The way I would do it is to note first that there are C(16,2) = 120 ways of choosing the two letters to be repeated, and for each such way we have the same probability of occurrence; so we might as well assume the repeated letters are A and B, with A repeated a times and B repeated b times. Here, 2 ≤ a,b ≤ 4 and a+b ≤ 6. For the case a=b=2 the remaining two letters are chosen without repetition from 14, and the number of distinct such pairs are C(14,2) = 91, with each such pair having the same probability; so we might as well assume the letters are AABBCD; the probability of this is obtained from a multinomial distribution with 5 categories (A,B,C,D,other) and we want the probability p_5(2,2,1,1,0). So, P{AA,BB} = 91*p_5(2,2,1,1,0). For the case a=3,b=2 there are three classes (A,B,other) and we want p_3(3,2,1), so P(AAA,BB} = p_3(3,2,1). Similarly, P{AA,BBB} = p_3(2,3,1) = P{AAA,BB}. Finally, P{AAAA,BB}=P{AA,BBBB} = p_3(4,2,0) and P{AAA,BBB} = P_3(3,3,0).
 
Last edited:

Related to Probability that two letters are repeated

1. What is the probability that two letters are repeated in a random sequence of letters?

The probability of two letters being repeated in a random sequence of letters depends on the length of the sequence and the number of unique letters in the sequence. The formula for calculating this probability is (n-1)/n, where n is the number of distinct letters in the sequence. For example, if there are 4 unique letters in a sequence of 10 letters, the probability of two letters being repeated is (4-1)/10 = 0.3, or 30%.

2. How does the probability change if the sequence is longer?

The longer the sequence, the higher the probability of two letters being repeated. This is because as the sequence length increases, there are more opportunities for letters to be repeated. For example, in a sequence of 100 letters with 4 unique letters, the probability of two letters being repeated is (4-1)/100 = 0.03, or 3%. This is a significantly higher probability than the previous example with a sequence length of 10.

3. How does the probability change if there are more unique letters in the sequence?

If the number of unique letters in a sequence increases, the probability of two letters being repeated decreases. This is because with more unique letters, there are fewer opportunities for letters to be repeated. Using the same example as before, if there are 6 unique letters in a sequence of 10, the probability of two letters being repeated is (6-1)/10 = 0.5, or 50%. This is a higher probability compared to the first example with only 4 unique letters.

4. Is the probability affected by the order of the letters in the sequence?

No, the probability of two letters being repeated is not affected by the order of the letters in the sequence. As long as the number of unique letters and the length of the sequence remain the same, the probability will not change regardless of the order of the letters.

5. How can we use the concept of probability of repeated letters?

The concept of probability of repeated letters can be used in various real-world scenarios, such as predicting the likelihood of a certain pattern occurring in a sequence of events or analyzing the probability of certain outcomes in games or experiments. It can also be used in cryptography to assess the strength of a password or encryption key by calculating the probability of repeated characters. Additionally, understanding this concept can help in making informed decisions and minimizing risks in business and finance.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
1
Views
1K
  • Calculus and Beyond Homework Help
Replies
16
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
6
Views
1K
Replies
5
Views
2K
  • Calculus and Beyond Homework Help
Replies
10
Views
1K
  • Precalculus Mathematics Homework Help
Replies
4
Views
2K
  • Calculus and Beyond Homework Help
Replies
4
Views
5K
  • Set Theory, Logic, Probability, Statistics
Replies
7
Views
1K
  • Precalculus Mathematics Homework Help
Replies
16
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
2
Views
1K
Back
Top