Solving a 5-Digit Probability Problem Using Combinations

  • Thread starter DrAlexMV
  • Start date
  • Tags
    Probability
In summary, the problem is asking for the number of 5-digit numbers that can be formed from the integers 1-9 without any digit appearing more than twice. The approach used is the combination formula, where 18 numbers are chosen and the order does not matter for groups of two numbers. However, this overcounts for the cases where one or two pairs of digits are the same, so the final answer is between (18!/(18-5)!)/8 and (18!/(18-5)!)/32. The correct answer is calculated by dividing the number of numbers with no repeated digits by 32, the number of numbers with one repeated digit by 16, and the number of numbers with two repeated digits by
  • #1
DrAlexMV
25
0
Problem Statement:
How many 5 digit number can be formed from the integers 1,2, ..., 9 if no digit can appear more than twice?

Approach:
18!/((2!*9)(18-5)!)

Reason:
Using the combination formula, we were able to approach this problem by saying that there are 18 numbers from which only 5 are chosen and the order does not matter for individual groups of two numbers.

Is this approach correct? I would love a very detailed explanation of this problem since many of the ones in class are about this same difficulty level.
 
Physics news on Phys.org
  • #2
That answer (57120) is close, but doesn't allow properly for the different combinations of one or two pairs the same etc.
In general, there's no easy way to solve these. For this one I would start with the full 95 and remove the disallowed:
- three the same, two different: 9 * 8 * 7 * 5C2
- "full house": 9 * 8 * 5C2
- four the same: 9 * 8 * 5C1
- five the same: 9
Result: 52920
 
  • #3
Could you elaborate on what you mean by "one or two pairs the same, etc"?
 
  • #4
DrAlexMV said:
Could you elaborate on what you mean by "one or two pairs the same, etc"?
You set up a model in which each digit is represented twice, as 1a, 1b, 2a, 2b etc. say.
Your 18!/(18-5)! is the number of ways of choosing 5, in order, from 18. That's too many for two reasons: because choosing a single '1' will be counted twice (1a, 1b) and because choosing 1a for a certain position and 1b for another gives the same result as if they were swapped around. You can correct for the first problem by dividing by 32 (25, not 2!*9), but that overcorrects when both the a and b copies are used (divides by 2 for each of the two digit positions instead of just once for the pair).
If we subdivide 18!/(18-5)! into three cases:
X = number with no repeated digits
Y = number with one digit repeated
Z = number with two digits repeated
then the final answer will be X/32 + Y/16 + Z/8
So we can see the answer lies between (18!/(18-5)!)/8 and (18!/(18-5)!)/32. You happened to divide by 18, so got a number that wasn't too far off.
Btw, X = 18 * 16 * 14 * 12 * 10 = 483840, Y = 9 * 5 * 4 * 16 * 14 * 12 = 483840, Z = 9C2 * 5 * 4 * 3 * 2 * 14 = 60480.
X + Y + Z = 18!/(18-5)!; X/32 + Y/16 + Z/8 = 52920.
 
  • #5


I would approach this problem by first understanding the basic principles of combinations and permutations. Combinations refer to the number of ways in which a selection can be made from a set of objects without regard to the order of the objects. In contrast, permutations refer to the number of ways in which a selection can be made from a set of objects while considering the order of the objects.

In this problem, we are looking for the number of 5-digit numbers that can be formed using the integers 1-9, with the restriction that no digit can appear more than twice. This means that we can only choose two digits from each number (1-9) and we need to consider the order of these digits.

To solve this problem, we can use the combination formula: nCr = n! / (r!(n-r)!), where n is the total number of objects and r is the number of objects being selected. In this case, n=9 (since we have 9 digits) and r=2 (since we are choosing two digits from each number).

However, this formula only gives us the number of combinations for one 2-digit number. To find the total number of combinations for all 5-digit numbers, we need to multiply this by the number of ways we can arrange these 2-digit numbers. This can be done by using the factorial function, denoted by an exclamation mark (!). Factorial denotes the product of all positive integers less than or equal to a given number. For example, 5! = 5*4*3*2*1 = 120.

In this problem, we need to arrange 5 groups of 2-digit numbers, which can be done in 5! ways. Therefore, the total number of combinations for all 5-digit numbers is given by 9C2 * 9C2 * 9C2 * 9C2 * 9C2 * 5! = (9!/((2!*7!)(2!*7!)(2!*7!)(2!*7!)(2!*7!)) * 5! = 18!/((2!*9)(18-5)!) = 18!/((2!*9)(13!)).

In summary, the approach used in the problem statement is correct. We have used the combination formula to find the number of ways we can choose two digits from each number and then multiplied it by the
 

Related to Solving a 5-Digit Probability Problem Using Combinations

1. What is simple probability?

Simple probability is the likelihood or chance of an event occurring, expressed as a fraction, decimal, or percentage. It is used to predict the likelihood of a specific outcome in a situation with equally likely possible outcomes.

2. How is simple probability calculated?

Simple probability is calculated by dividing the number of desired outcomes by the total number of possible outcomes. For example, if you are rolling a standard six-sided die and want to know the probability of rolling a 3, the calculation would be 1 (desired outcome) divided by 6 (possible outcomes), resulting in a probability of 1/6 or approximately 16.67%.

3. What is the difference between simple and compound probability?

Simple probability deals with situations where there is only one event and all outcomes are equally likely. Compound probability, on the other hand, deals with situations where there are multiple events and the likelihood of each event can be affected by the previous events.

4. Can simple probability be greater than 1?

No, simple probability can never be greater than 1. This is because a probability of 1 means that the event is certain to occur, while a probability of 0 means that the event will not occur at all. Any value in between represents the likelihood of the event occurring.

5. How can simple probability be applied in real life?

Simple probability can be applied in many real life situations, such as predicting the outcome of a coin toss, the chances of winning a game, or the likelihood of certain weather conditions. It is also commonly used in statistics, risk assessment, and decision-making processes.

Similar threads

  • Set Theory, Logic, Probability, Statistics
Replies
2
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
14
Views
954
  • Set Theory, Logic, Probability, Statistics
Replies
4
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
4
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
7
Views
383
  • Set Theory, Logic, Probability, Statistics
Replies
2
Views
3K
  • Set Theory, Logic, Probability, Statistics
Replies
20
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
4
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
2
Views
939
  • Programming and Computer Science
Replies
1
Views
1K
Back
Top