P(y=1∣x,w)=σ(wTx+b)=11+e−(wTx+b)P(y=0∣x,w)=1−σ(wTx+b)
L(w)=∏i=1n{P(y=1∣xi,w),if yi=1P(y=0∣xi,w),if yi=0
L(w)=∏i=1nP(y=1∣xi,w)yi×P(y=0∣xi,w)1−yi
LL(w)=∑i=1nyilogP(y=1∣xi,w)+(1−yi)logP(y=0∣xi,w)
Calculate the likelihood and the log likelihood for the following data set: