逻辑回归的几个问题

来源:互联网 发布:修改机器码破解软件 编辑:程序博客网 时间:2024/06/06 00:36

Context: 10-11

Consider a following model for logistic regression:P(y=1|x,w)=g(w0+w1x)
where g(z)is the logistic function.

In the above equation the P(y=1|x;w) , viewed as a function of x, that we can get by changing the parameters w.

10) What would be the range of p in such case?

A) (0, inf)
B) (-inf, 0 )
C) (0, 1)
D) (-inf, inf)

Solution: C
For values of x in the range of real number from to + Logistic function will give the output between(0,1)

11) In above question what do you think which function would make p between (0,1)?

A) logistic function
B) Log likelihood function
C) Mixture of both
D) None of them

Solution: A

Explanation is same as question number 10