X∼bin(k;n,θ)
f(k)=P(X=k)=(kn)θk(1−θ)n−k We can look at the ratio of successive outcomes
r=P(X=k)P(X=k+1)When r>1 then P(X=k+1)>P(X=k)
When r<1 then P(X=k+1)<P(X=k)
Maximum of the distribution occurs when r switches from being greater than 1 to less than 1.
r=P(X=k)P(X=k+1)=(kn)θk(1−θ)n−k(k+1n)θk+1(1−θ)n−(k+1)=
=k+1n−k⋅1−θθ What value of k results in r≤1?
k+1n−k⋅1−θθ≤1
θ(n−k)≤(1−θ)(k+1)
nθ−kθ≤k+1−kθ−θ
k≥nθ−(1−θ) Max probability is the smallest interger value of k≥nθ−(1−θ)
Likelihood function
L(θ∣n,x)=(xn)θx(1−θ)n−x==x!(n−x)!n!θx(1−θ)n−x Log-likelihood function
lnL(θ∣n,x)=ln(x!(n−x)!n!)+xlnθ+(n−x)ln(1−θ)
dpd(L(θ∣n,x))=0+x⋅θ1+(n−x)⋅(−1−θ1)=0
x(1−θ)−(n−x)θ=0
x−xθ−nθ+xθ=0
x−nθ=0
θ=nx The maximum likelihood estimate for θ is just the average.
Comments