Bernoulli Distribution as a tiny Neural Network
Logistic regression is often considered the smallest neural network for
binary classification. We can think of Bernoulli distribution as an even
smaller neural network – one that doesn’t even depend on the input
data. Such a neural network would likely not be useful in practice.
However, given it’s simplicity, it serves as an illuminating example to
help us understand the statistical assumptions underlying a neural
network model. The assumptions we require for modeling Bernoulli
distribution as a neural network are also required for larger neural
networks. As an example, using Bernoulli distribution as a tiny neural
network, we can easily demonstrate how the famous cross-entropy loss
comes into being. We can even extend this Bernoulli distribution model
framework to recreate the familiar logistic regression model by simply
replacing a constant parameter by a sigmoid-affine function.
Perfectly Random