Consider the problem of predicting $p(t|\bold x)$ for a single continuous target variable $t$ and a vector $\bold x$ of inputs (the extension to multiple targets is straightforward). We shall suppose that
$p(t|\bold x,\bold w)$ is Gaussian, with a mean given by the output of a neural network model $y(\bold x,\bold w)$, and with precision $\beta$
$$ p(t|\bold x,\bold w,\beta)=\mathcal N(t|y(\bold x,\bold w),\beta^{-1}) $$
a prior distribution over the weights $\bold w$ that is Gaussian of the form
$$ p(\bold w|\alpha)=\mathcal N(\bold w|\bm 0,\alpha^{-1}\bold I) $$
For an i.i.d. data set inputs $\bold x_1,\ldots,\bold x_N$, with a corresponding set of target values $\mathcal D=\{t_1,\ldots,t_N\}$, the likelihood function is given by
$$ p(\mathcal D|\bold w,\beta)=\prod_{n=1}^N\mathcal N(t_n|y(\bold x_n,\bold w),\beta^{-1}) $$
and so the resulting posterior distribution is then
$$ p(\bold w|\mathcal D,\alpha,\beta)\propto p(\bold w|\alpha)p(\mathcal D|\bold w,\beta) $$
The predictive distribution is obtained by
$$ p(t|\bold x,\mathcal D,\alpha,\beta)=\int p(t|\bold x,\bold w,\beta)p(\bold w|\mathcal D,\alpha,\beta)\ \text d\bold w $$
This integration is analytically intractable due to the nonlinearity of the network function $y(\bold x,\bold w)$ as a function of $\bold w$. So we shall find Gaussian approximations for the conditional distribution and the posterior distribution.
For the posterior distribution, use the Laplace approximation :
Assuming for the moment that $\alpha$ and $\beta$ are fixed, we can find a maximum of the posterior, which we denote $\bold w_{\text {MAP}}$, by standard nonlinear optimization algorithms using error backpropagation to evaluate the required derivatives.
Evaluate the matrix $\bold A$ defined by
$$ \bold A=-\nabla\nabla\log p(\bold w|\mathcal D,\alpha,\beta)\big|{\bold w=\bold w{\text{MAP}}}=\alpha\bold I+\beta\bold H $$
where $\bold H$ is the Hessian matrix comprising the second derivatives of the sum-of-squares error function with respect to the components of $\bold w$.
The corresponding local Gaussian approximation to the posterior is given by
$$ q(\bold w|\mathcal D)=\mathcal N(\bold w|\bold w_{\text{MAP}},\bold A^{-1}) $$
For the conditional distribution, assume that the posterior distribution has small variance compared with the characteristic scales of $\bold w$ over which $y(\bold x,\bold w)$ is varying, so that we can make a linear approximation of the network function around $\bold w_{\text{MAP}}$ by using Taylor expansion.
$$ y(\bold x,\bold w)\simeq y(\bold x,\bold w_{\text{MAP}})+\bold g^{\text T}(\bold w-\bold w_{\text{MAP}}) $$
where we have defined $\bold g=\nabla_{\bold w}y(\bold x,\bold w)|{\bold w=\bold w{\text{MAP}}}$. This gives a Gaussian approximation of the conditional distribution
$$ p(t|\bold x,\bold w,\beta)\simeq\mathcal N(t|y(\bold x,\bold w_{\text{MAP}})+\bold g^{\text T}(\bold w-\bold w_{\text{MAP}}),\beta^{-1}) $$
We can evaluate the marginal $p(t)$ given by
$$ p(t|\bold x,\mathcal D,\alpha,\beta)=\mathcal N(t|y(\bold x,\bold w_{\text{MAP}}),\sigma^2(\bold x)) $$
with $\sigma^2(\bold x)=\beta^{-1}+\bold g^{\text T}\bold A^{-1}\bold g$.
The marginal likelihood for the hyperparameters $\alpha,\beta$ is obtained by
$$ p(\mathcal D|\alpha,\beta)=\int p(\mathcal D|\bold w,\beta)p(\bold w|\alpha)\ \text d\bold w $$
The Laplace approximation result gives