The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

Variation Quiz

Variation Quiz

0
Votes
1
Answer

After reviewing the video on Variations with repetition, we were instructed to think of it as “the number of variations with repetitions when picking p-many elements out of n elements is equal to n to the power of p“.  The Quiz question asked about a combination lock code consisting of a 4 letter word (i.e. total number of elements (n)) using letters A, B, and C (i.e. p-many elements). Why is the answer to the quiz is 3^4? Shouldn’t the correct answer be 4^3?
n = 4 (total number of elements)
p = 3 (p-many elements)

1 Answer

365 Team
0
Votes

Hey Anderson, 
 
The simplest way to think about this is the following. The passcode consists of 4 letters, so there are 4 “positions” in the word -> _ _ _ _.
 
We can use any of the letters A, B and C as a first letter of the passcode, so there are 3 ways to fill out position 1 -> 3 _ _ _. Then, regardless what letter we choose, we still have 3 options for the second letter, 3 3 _ _ and so on. Hence, we have 3 options for reach additional position, regardless of what we’ve chosen so far. 
 
Hence, 3*3*3*3 = 3^4. 
 
Best ,
365 Vik