以X ∈ { 0 ,1 } d
一个例子是当我们使用饱和模型时。
也就是说,定义P (y | x )∝ exp (∑ i w i f i(x i))
当存在封闭形式时,还有其他有趣的例子吗?
以X ∈ { 0 ,1 } d
一个例子是当我们使用饱和模型时。
也就是说,定义P (y | x )∝ exp (∑ i w i f i(x i))
当存在封闭形式时,还有其他有趣的例子吗?
Answers:
As kjetil b halvorsen pointed out, it is, in its own way, a miracle that the linear regression admits an analytical solution. And this is so only by virtue of linearity of the problem (with respect to the parameters). In OLS, you have ∑i(yi−x′iβ)2→minβ,
Now, with logistic regression, things aren't that easy anymore. Writing down the log-likelihood function, l(y;x,β)=∑iyilnpi+(1−yi)ln(1−pi),pi=(1+exp(−θi))−1,θi=x′iβ,
A somewhat deeper look into the problem (taking the second derivative) reveals that this is a convex optimization problem of finding a maximum of a concave function (a glorified multivariate parabola), so either one exists, and any reasonable algorithm should be finding it rather quickly, or things blow off to infinity. The latter does happen to logistic regression when Prob[Yi=1|x′iβ>c]=1
This post was originally intended as a long comment rather than a complete answer to the question at hand.
From the question, it's a little unclear if the interest lies only in the binary case or, perhaps, in more general cases where they may be continuous or take on other discrete values.
One example that doesn't quite answer the question, but is related, and which I like, deals with item-preference rankings obtained via paired comparisons. The Bradley–Terry model can be expressed as a logistic regression where logit(Pr(Yij=1))=αi−αj,
If a full round-robin of comparisons is performed (i.e., a pairwise preference is recorded for each unordered (i,j)
To interpret this, imagine a full round-robin tournament in your favorite competitive sport. Then, this result says that the Bradley–Terry model ranks the players/teams according to their winning percentage. Whether this is an encouraging or disappointing result depends on your point of view, I suppose.
NB This rank-ordering result does not hold, in general, when a full round-robin is not played.