Exercise: Calculating Likelihood

P(y=1x,w)=σ(wTx+b)=11+e(wTx+b)P(y=0x,w)=1σ(wTx+b)

L(w)=i=1n{P(y=1xi,w),if yi=1P(y=0xi,w),if yi=0

L(w)=i=1nP(y=1xi,w)yi×P(y=0xi,w)1yi

LL(w)=i=1nyilogP(y=1xi,w)+(1yi)logP(y=0xi,w)

Calculate the likelihood and the log likelihood for the following data set:

σ(wTxi+b) yi
.7 1
.25 0
.9 1