recategorized by
589 views
1 votes
1 votes

Let $n, m$ and $k$ be three positive integers such that $n \geq m \geq k$. Let $S$ be a subset of $\left \{ 1, 2,\dots, n \right \}$ of size $k$. Consider sampling a function $f$ uniformly at random from the set of all functions mapping $\left \{ 1,\dots, n \right \}$ to $\left \{ 1,\dots, \text{m} \right \}$. What is the probability that $f$ is not injective on the set $S$, i.e., there exist $i,j  \in S$ such that $f(i) = f(j)$?

In the following, the binomial coefficient $\binom{n}{k}$ counts the number of $k$-element subsets of an $n$-element set.

  1. $1-\frac{k!}{k^{k}}$
  1. $1-\frac{m!}{m^{k}}$
  1. $1-\frac{k!\binom{m}{k}}{m^{k}}$
  1. $1-\frac{k!\binom{n}{k}}{n^{k}}$
  1. $1-\frac{k!\binom{n}{k}}{m^{k}}$
recategorized by

1 Answer

0 votes
0 votes
Option $(C)$

$P(\text{f is not injective}) = 1 – P(\text{f is injective})$

$= 1 – \frac{\text{injective functions}}{\text{total fuctions}}$

$= 1 – \frac{\text{(choosing k values from m)} * \text{(permuting each value from set S to these k values)}}{m^k}$

$= 1 – \frac{\binom{m}{k} \times k!}{m^k}$
Answer:

Related questions

1 votes
1 votes
1 answer
2
soujanyareddy13 asked Mar 25, 2021
1,048 views
What is the probability that at least two out of four people have their birthdays in the same month, assuming their birthdays are uniformly distributed over the twelve mo...