Problem 2-1

(coding problems follow below) The energy function:

And the joint distribution

Isolate terms involving :

where

And noting as the regularization, is Gaussian:

Isolate terms involving :

For :

Thus the conditional :

where is the sigmoid function.