Q.7.1
Question
7.1. Consider a list of m names, where the same name may appear more than once on the list. Let , denote the number of times that the name in position i appears on the list, and let d denote the number of distinct names on the list.
(a) Express d in terms of the variables . Let U be a uniform (0, 1) random variable, and let .
(b) What is the probability mass function of X?
(c) Argue that .
Step-by-Step Solution
Verified- The required expression of will be .
- The probability mass function of X will be
- The value can be said that as .
is the number of times that the name in position i appears on the list
the number of distinct names on the list
Express in terms of .
Here, is the number of distinct names on the list and is the number of times that the name in position appears on the list.
The total number of name in the list is determined as,
From the overhead expression of the total number of names, can be expressed in terms of and . Hence, is expressed as:
Thus, the required expression of will be .
is the number of times that the name in position appears on the list
the number of distinct names on the list
We need to calculate the probability mass function of X.
If a random variable, U that follows uniform distribution between 0 and 1 .
So that, the probability density function of U is,
If a random variable X and it is defined as .
The probability mass function of X is determined as:
Using the probability density function of U, the probability mass function of X is simplified as:
Thus, the probability mass function of X will be .
is the number of times that the name in position appears on the list
the number of distinct names on the list
If
The expected value of a random variable Y will be
Now, is the probability mass function of the random variable Y.
Now we need to calculate the value of
Thus, the value can be said that