Post · 1 min read· p. 126

2.1.1 Ordered Sampling with Replacement


Video Available Video Available

Here we have a set with nn elements (e.g.: A={1,2,3,⋯ .n}A=\{1, 2, 3,\cdots.n\}), and we want to draw kk samples from the set such that ordering matters and repetition is allowed. For example, if A={1,2,3}A=\{1,2,3\} and k=2k=2, there are $9$ different possibilities:

  1. (1,1);
  2. (1,2);
  3. (1,3);
  4. (2,1);
  5. (2,2);
  6. (2,3);
  7. (3,1);
  8. (3,2);
  9. (3,3).

In general, we can argue that there are kk positions in the chosen list: ((Position $1$, Position $2$, ..., Position k)k). There are nn options for each position. Thus, when ordering matters and repetition is allowed, the total number of ways to choose kk objects from a set with nn elements is

n×n×...×n=nkn \times n \times ... \times n=n^k
Note that this is a special case of the multiplication principle where there are kk "experiments" and each experiment has nn possible outcomes.