How do I construct a collection of all possible samples using 3 numbers?
October 22009
I have 3 marbles marked 1, 2, 5. How do I construct the collection of all possible samples of 3 marbles selected from the tub? I know there are 27 samples.
There are 3 choices for 1st pick, then 2 choices left for 2nd pick, then only 1 left.
So 3*2*1= possibilities possible unless you replace the marble each time.
{1,2,5} {1,5,2}
{2,1,5} {2,5,1}
{5,1,2} {5,2,1}
If you replace the marble each time you do inded have 3*3*3=27 possibilites
{1,1,1} {1,1,2} {1,1,5} {1,2,1} {1,2,2} {1,2,5} {1,5,1} {1,5,2} {1,5,5}
{2,1,1} {2,1,2} {2,1,5} {2,2,1} {2,2,2} {2,2,5} {2,5,1} {2,5,2} {2,5,5}
{5,1,1} {5,1,2} {5,1,5} {5,2,1} {5,2,2} {5,2,5} {5,5,1} {5,5,2} {5,5,5}
Currently editing tutorial