326 21 Maximum likelihood
and p(a) = 0 for all other a.Here0<θ<1 is an unknown parameter,
which was estimated in Exercise 19.7. We want to find a maximum likelihood
estimate of θ.
a. Use the data to find the likelihood L(θ) and the loglikelihood (θ).
b. What is the maximum likelihood estimate of θ using the data from the
preceding table?
c. Suppose that we have the counts of n different leaves: n
1
of type starchy-
green, n
2
of type sugary-white, n
3
of type starchy-white, and n
4
of type
sugary-green (so n = n
1
+ n
2
+ n
3
+ n
4
). Determine the general formula
for the maximum likelihood estimate of θ.
21.9 Let x
1
,x
2
,...,x
n
be a dataset that is a realization of a random sample
from a U(α, β) distribution (with α and β unknown, α<β). Determine the
maximum likelihood estimates for α and β.
21.10 Let x
1
,x
2
,...,x
n
be a dataset, which is a realization of a random
sample from a Par(α) distribution. What is the maximum likelihood estimate
for α?
21.11 In Exercise 4.13 we considered the situation where we have a box
containing an unknown number—say N—of identical bolts. In order to get an
idea of the size of N we introduced three random variables X, Y ,andZ.Here
we will use X and Y , and in the next exercise Z, to find maximum likelihood
estimates of N .
a. Suppose that x
1
,x
2
,...,x
n
is a dataset, which is a realization of a random
sample from a Geo(1/N ) distribution. Determine the maximum likelihood
estimate for N.
b. Suppose that y
1
,y
2
,...,y
n
is a dataset, which is a realization of a random
sample from a discrete uniform distribution on 1, 2,...,N. Determine the
maximum likelihood estimate for N.
21.12 (Exercise 21.11 continued.) Suppose that m bolts in the box were
marked and then r bolts were selected from the box; Z is the number of
marked bolts in the sample. (Recall that it was shown in Exercise 4.13 c that
Z has a hypergeometric distribution, with parameters m, N,andr.) Suppose
that k bolts in the sample were marked. Show that the likelihood L(N )is
given by
L(N)=
m
k
N−m
r−k
N
r
.
Next show that L(N)increasesforN<mr/kand decreases for N>mr/k,
and conclude that mr/k is the maximum likelihood estimate for N .
21.13 Often one can model the times that customers arrive at a shop rather
well by a Poisson process with (unknown) rate λ (customers/hour). On a
certain day, one of the attendants noticed that between noon and 12.45 p.m.