Probability - Password problem

This topic has expert replies
User avatar
Legendary Member
Posts: 1239
Joined: Tue Apr 26, 2011 6:25 am
Thanked: 233 times
Followed by:26 members
GMAT Score:680

Probability - Password problem

by sam2304 » Sun Aug 21, 2011 9:46 pm
The question is from the 300 GMAT problems with best solutions from our forum.

A password of a computer used five digits where they are from 0 and 9. What is the probability that the password solely consists of prime numbers and zero?
A 1/32
B 1/16
C 1/8
D 2/5
E ½

My approach:

We often use permutation and combinations in probability to arrive at no of outcomes.

Total number of outcomes = 10C5 - Choosing 5 digits out of 10 digits.
Total number of favorable outcomes = 5C5 x 5! ((Choosing 5 digits - 4 prime and zero out of the same) x (the number of ways each digit can be arranged))

5C5 = 1
so P(Password being prime and zero) = (1 x 5!)/10C5

The solution given in the document is different from the way i solved it. There are many problems which i have solved it using combinations and this one is confusing as even the answer choices won't fit in if i solve it using the above approach.

Need your help on why the above approach is wrong.


OA is A

Solution given in the document:
There are 10 possible options (0,1,2,3,4,5,6,7,8,9) for each digit.
5 of the options (0,2,3,5,7) are zero or prime.
So, P(a given digit is zero or prime) = 5/10 = 1/2

A quick way is to look at this as an AND probability.
P(all five digits are zero or prime) = P(1st digit is zero or prime AND 2nd digit is zero or prime AND 3rd digit is zero or prime AND 4th digit is zero or prime AND 5th digit is zero or prime)

This is equal to P(1st digit is zero or prime) x P(2nd digit is zero or prime) x P(3rd digit is zero or prime) x P(4th digit is zero or prime) x P(5th digit is zero or prime)
So, we get 1/2 x 1/2 x 1/2 x 1/2 x 1/2 = 1/32


Thanks in Advance.

Legendary Member
Posts: 1448
Joined: Tue May 17, 2011 9:55 am
Location: India
Thanked: 375 times
Followed by:53 members

by Frankenstein » Sun Aug 21, 2011 10:19 pm
sam2304 wrote: The solution given in the document is different from the way i solved it. There are many problems which i have solved it using combinations and this one is confusing as even the answer choices won't fit in if i solve it using the above approach.
Hi,
The question never said five distinct digits. So, digits can be repeated.
So, total number of cases will be 10^5 instead of 10C5.
Btw, even in your case(assuming all 5 are distinct), the number of cases should be 10P5, not 10C5.
As, the password should be chosen from 5digits(0,2,3,5,7), number of ways = 5^5
So, probability is 5^5/10^5 = (1/2)^5 = 1/32.
Cheers!

Things are not what they appear to be... nor are they otherwise

User avatar
Legendary Member
Posts: 516
Joined: Fri Jul 31, 2009 3:22 pm
Thanked: 112 times
Followed by:13 members

by smackmartine » Sun Aug 21, 2011 10:27 pm
Total number of outcomes = 10C5 - Choosing 5 digits out of 10 digits. This is wrong

Apply basic counting methods on these types of problems, rather than jumping straight on to formulas.

Total number of outcomes = (10)^5 (you can repeat the digits , because the question does not restrict you.)

Favorable outcomes= 5*5*5*5*5 = 5^5 (again no restriction on choosing same digits out of 0,2,3,5,7)

So, P(E) = (5/10)^5=(1/2)^5 = 1/32

So A
Smack is Back ...
It takes time and effort to explain, so if my comment helped you please press Thanks button :)

User avatar
Legendary Member
Posts: 1239
Joined: Tue Apr 26, 2011 6:25 am
Thanked: 233 times
Followed by:26 members
GMAT Score:680

by sam2304 » Sun Aug 21, 2011 10:28 pm
Thanks a lot for the tip. I forgot about repetition. Very true to your tagline :)

User avatar
GMAT Instructor
Posts: 905
Joined: Sun Sep 12, 2010 1:38 am
Thanked: 378 times
Followed by:123 members
GMAT Score:760

by Geva@EconomistGMAT » Mon Aug 22, 2011 7:04 am
sam2304 wrote:Thanks a lot for the tip. I forgot about repetition. Very true to your tagline :)
sorry for nitpicking, but the method detailed above would not have worked even had the question said "without repetition". This is because you are assuming that the order matters for the top of the fraction (by multiplying by 5!), while at the same time you're assuming that the order does not matter for the bottom of the fraction (10c5 means "without order). In order to correctly find the number of wanted outcomes out of the total number of outcomes, you need to be consistent - either the order matters for both, or does not matter for both. For probability, it doesn't really matter whether the order matters or not, as long as you're consistent in both top and bottom.

the correct calculation (assuming that the question uses without repetition) would be

total number of outcomes: 10C5 *5! (first choose which 5 digits, then multiply by internal order)
Wanted number of outcomes 5C5 * 5! (internal order of the 5 numbers - 4 primes and zero)

Once you reduce the 5!, you get 1 / 10C5 - Out of all the different ways of choosing 5 digits out of 10 (regardless of order), only one choice will include all 4 primes and zero 2,3,5,7,0. If you then want to find all the permutations in the wanted outcomes (0,2,3,5,7), that's fine, as long as you remember that the total number of outcomes should also include the permutations of all the different choices in 10C5.
Geva
Senior Instructor
Master GMAT
1-888-780-GMAT
https://www.mastergmat.com

GMAT/MBA Expert

User avatar
GMAT Instructor
Posts: 273
Joined: Tue Sep 21, 2010 5:37 am
Location: Raleigh, NC
Thanked: 154 times
Followed by:74 members
GMAT Score:770

by Whitney Garner » Mon Aug 22, 2011 8:21 am
A final note to add to this is about the always-useful Slot Method.

For the Denominator (total number of choices), there are 5 numbers to pick, so 5 slots. We have 10 choices for the first, 10 for the second... and so on. Filling all these slots means multiplying (these are AND choices), so the total number of choices is the 10^5 noted above.

For the Numerator (total desired outcomes), there are still 5 numbers to pick, so 5 slots, BUT now we have only 5 numbers to choose from. Completing the slots, there are 5 choices for each. Therefore, we have 5^5 choices that we favor.

5^5 / 10^5 = (5/10)^5 = (1/2)^5 = 1/32

Note: this is the exact same fraction that someone noted above, but I just wanted to remind you that setting up actual slots and thinking about each choice can help prevent mistakes that come from jumping straight into equations or formulas.

:)
Whit
Whitney Garner
GMAT Instructor & Instructor Developer
Manhattan Prep

Contributor to Beat The GMAT!

Math is a lot like love - a simple idea that can easily get complicated :)

User avatar
Master | Next Rank: 500 Posts
Posts: 461
Joined: Tue May 10, 2011 9:09 am
Location: pune
Thanked: 36 times
Followed by:3 members

by amit2k9 » Wed Sep 28, 2011 7:50 am
probability = (5+1)^5/ 10^5 = 1/32
For Understanding Sustainability,Green Businesses and Social Entrepreneurship visit -https://aamthoughts.blocked/
(Featured Best Green Site Worldwide-https://bloggers.com/green/popular/page2)