I want to know how the equation for binary cross entropy came about. My approach is the following:
Let's say we have two ground truths: $y_1$ and $y_2$. We also have two predictions $p_1$ and $p_2$. Now, $p_2$ can also be defined as $1 -p_1$ since we're dealing with a binary problem.
From this, how exactly do we arrive at this equation: $$−(y\log{p}+(1−y)\log{(1−p)})$$
And we think of this as a loss function, why does it make sense to minimize this equation?