document.write( "Question 1201830: A student has to choose an elective class for the last semester of high school. Her counselor suggested 9 electives, 7 of which were technology classes.
\n" ); document.write( "If the student randomly chose to read about 6 of the electives, what is the probability that all of them are technology classes?
\n" ); document.write( "

Algebra.Com's Answer #836358 by math_tutor2020(3817)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "Answer: 1/12
\n" ); document.write( "1/12 = 0.083333 approximately\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "================================================================================\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Explanation:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Let's find out how many ways there are to pick 6 technology classes to read about.
\n" ); document.write( "n = 7 technology classes total
\n" ); document.write( "r = 6 slots to fill
\n" ); document.write( "The order of the classes doesn't matter.
\n" ); document.write( "Use the nCr combination formula.
\n" ); document.write( "n C r = (n!)/(r!(n-r)!)
\n" ); document.write( "7 C 6 = (7!)/(6!*(7-6)!)
\n" ); document.write( "7 C 6 = (7!)/(6!*1!)
\n" ); document.write( "7 C 6 = (7*6!)/(6!*1!)
\n" ); document.write( "7 C 6 = (7)/(1!)
\n" ); document.write( "7 C 6 = 7/1
\n" ); document.write( "7 C 6 = 7
\n" ); document.write( "There are 7 ways to pick 6 technology classes to read about.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "That's a fairly long-winded approach.
\n" ); document.write( "Is there a shortcut, and a way to avoid that formula?
\n" ); document.write( "Yes there is.
\n" ); document.write( "Imagine there are 2 groups: A and B
\n" ); document.write( "Group A represents what you pick (those 6 items to read).
\n" ); document.write( "Group B is what you don't pick: that 1 class left out.
\n" ); document.write( "At this point it should be fairly clear that there are 7 ways to fill group B, which means there are 7 ways to fill group A.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "--------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Now let's determine how many ways there are to select 6 classes, where some of which may not be technology classes.
\n" ); document.write( "n = 9 classes total
\n" ); document.write( "r = 6 slots
\n" ); document.write( "Use the nCr formula
\n" ); document.write( "n C r = (n!)/(r!(n-r)!)
\n" ); document.write( "9 C 6 = (9!)/(6!*(9-6)!)
\n" ); document.write( "9 C 6 = (9!)/(6!*3!)
\n" ); document.write( "9 C 6 = (9*8*7*6!)/(6!*3!)
\n" ); document.write( "9 C 6 = (9*8*7)/(3!)
\n" ); document.write( "9 C 6 = (9*8*7)/(3*2*1)
\n" ); document.write( "9 C 6 = 504/6
\n" ); document.write( "9 C 6 = 84
\n" ); document.write( "There are 84 ways to select 6 classes from a candidate pool of 9.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Rephrased another way:
\n" ); document.write( "There are 9*8*7 = 504 permutations
\n" ); document.write( "We divide by 3*2*1 = 6 to adjust the fact order doesn't matter (something like ABC is the same as BAC).
\n" ); document.write( "There are 6 ways to arrange any trio of items.
\n" ); document.write( "Therefore, we arrive at 504/6 = 84 combinations.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Each nCr value can be found in Pascal's Triangle.
\n" ); document.write( "For instance, the value 84 is in the row that starts with 1,9,...\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "--------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "There's a lot to take in, so read each subsection again to make sure you understand what is going on.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "To recap:
  • 7 ways to pick the 6 technology classes
  • 84 ways to pick any 6 classes (technology or not)
Order does not matter.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Divide those values to get the probability we want.
\n" ); document.write( "7/84 = (1*7)/(12*7) = 1/12 is the probability that all 6 selections are technology classes.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Use a calculator to get its approximate value
\n" ); document.write( "1/12 = 0.083333
\n" ); document.write( "It might be better to stick to the fraction form since it is exact.
\n" ); document.write( "Be sure to follow your teacher's instructions.
\n" ); document.write( "
\n" ); document.write( "
\n" );