Consider the Poisson distribution paramterized by λ:
p(y;λ)=y!e−λλy
Show that the Poisson distribution is in the exponential family, and state what are b(y),η,T(y) and a(η).
Exponential family format:
p(y;η)=b(y)exp(ηTT(y)−a(η))
Poisson:
p(y;λ)=y!1e(−λ)λy
=y!1exp(−λ)exp(ln(λy))
=y!1exp(ylnλ−λ)
b(y)=y!1
T(y)=y
ηT=η=lnλ -> λ=exp(η)
a(η)=λ=exp(η)
(b)
Consider performing regression using a GLM model with a Poisson response variable. What is the canonical response function for the family?
(A Poisson random variable with parameter λ has mean λ)
hΘ(x)=E[y∣x;Θ]
=g(η)
=E[T(y);η]
=λ
=eη
=eΘTx
(c)
For a training set {(x(1),y(1)),...,(x(i),y(i))},let the log-likelihood of an example be logp(y(i)∣x(i)). By taking the derivative of the log-likelihood with respect to Θj, derive the stochastic gradient ascent rule for learning using a GLM with Possion response y and the canonical response function.
l(Θ)=log(y!1e(−λ)λy)
=ylog(λ)−log(y!)−λ
=ylog(eΘTx)−log(y!)−eΘTx
=yΘTx−log(y!)−eΘTx
∂Θi∂l=yxi−eΘTxxi=(y−eΘTx)xi
Stochastic Gradient Ascent rule:
for each (x(j),y(j)) in training examples {
Θi:=Θi−α((eΘTx(j)−y(j))xi(j))
}
Surprisingly, it's the same as logistic regression !!!
(d)
Consider using GLM with a response veriable from any member of the exponential family in which T(y)=y, and the canonical response function h(x) for the family. Show that stochastic gradient ascent on the log-likelihood log(Y∣X;Θ) results in the update rule Θi:=Θi−α(h(x)−y)xi.