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 n(i), i = 1, ... , m, denote the number of times that the name in position appears on the list, and let d denote the number of distinct names on the list. 

(a) Express d in terms of the variables m, n(i), i = 1, ... , m. Let U be a uniform (0, 1) random variable, and let X = [mU] + 1

(b) What is the probability mass function of X

(c) Argue that E[m/n(X)] = d

Step-by-Step Solution

Verified
Answer
  1. The required expression of d will be d=i=1m1n(i).
  2. The probability mass function of X will be P(X=i)=1m
  3. The value can be said that as Emn(X)=d.
1Step 1: Given information (Part a)

n(i),i=1,,m is the number of times that the name in position appears on the list 

d=the number of distinct names on the list 

2Step 2: Solution (Part a)

Express d in terms of m.

Here, d is the number of distinct names on the list and n(i) is the number of times that the name in ith position appears on the list.

The total number of name in the list is determined as,

 Total number of names =m

=i=1m(n(i))×d

From the overhead expression of the total number of names, d can be expressed in terms of n(i) and m. Hence, d is expressed as:

m=i=1m(n(i))×d

i=1m1=di=1m(n(i))

d=i=1m1i=1m(n(i))

d=i=1m1n(i)


3Step 3: Final answer (Part a)

Thus, the required expression of d will be d=i=1m1n(i).

4Step 4: Given information (Part b)

n(i),i=1,,m is the number of times that the name in position i appears on the list

d= the number of distinct names on the list

5Step 5: Solution (Part b)

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,

fU(u)=1    0u10     Otherwise 

If a random variable X and it is defined as X=[m U]+1.

The probability mass function of is determined as:

P(X=i)=P([mU]+1=i)

=P([mU]=i1)

=P(i1mU<i)

=Pi1mU<im

6Step 6:Solution (Part b)

Using the probability density function of U, the probability mass function of X is simplified as:

P(X=i)=Pi1mU<im

=i1mim1du

=[u]i1mim

=imi1m

=1m


7Step 7: Final answer (Part b)

Thus, the probability mass function of X will be P(X=i)=1m.

8Step 8: Given information (Part c)

n(i),i=1,,m is the number of times that the name in position i appears on the list

d= the number of distinct names on the list

9Step 9: Solution (Part c)

If Emn(X)=d

The expected value of a random variable Y will be E(Y)=yyP(Y=y)

Now, P(Y=y) is the probability mass function of the random variable Y.

Now we need to calculate the value of Emn(X)

Emn(X)=i=1mmn(i)P(X=x)

=i=1mmn(i)×1m

=i=1m1n(i)

=d

10Step 10: Final answer (Part c)

Thus, the value can be said that Emn(X)=d