Hello. I would like to find out how to calculate the number of possible samples I can get when the sample number is bigger than the range? i.e. the range has three numbers and a sample must have 5 numbers. The numbers in the range can be repeated and a sample can either have only one of the numbers in the range or a combination of two or three of the numbers in the range. I know how to do this 'manually' I am just looking for a formula I can use to do this?
Could you give me an example of what you are looking for? For example, are you saying the range is {1,2,3} and you are trying to make five number combinations from that like { 1,2,3,2,3} ?
0 Replies
nacredambition
1
Reply
Mon 1 Jul, 2019 07:15 pm
@Mzansi,
Quote:
a sample can either have only one of the numbers in the range or a combination of two or three of the numbers in the range
Therefore each sample of five numbers has at least one of each number and no more than three.
There are 3 ways of choosing the first number, three ways of choosing the second number, three ways of choosing the third number, two ways of choosing the fourth number and only one way of choosing the final number.