Error Propagation in Gaussian Transformations¶
We're in the setting where we have some inputs that come from a distribution \mathbf{x} \sim \mathcal{N}(\mathbf{\mu_x}, \Sigma_\mathbf{x}) and we have some outputs y\in\mathbb{R}. Typically we have some function f(\mathbf) that maps the points f:\mathbb{R}^D \rightarrow \mathbb{R}. So like we do with GPs, we have the following function"
Change of Variables¶
To have this full mapping, we would need to use the change of variables method because we are doing a transformation between of probability distributions.
This is very expensive and can be very difficult depending upon the function.
Conditional Gaussian Distribution¶
Alternatively, if we know that f() is described by a Gaussian distribution, then we can find the joint distribution between \mathbf{x},y. This can be described as:
Taylor Expansions¶
by using a Taylor series expansion. Let \mu_x be the true inputs and we perturb these by some noise \delta_x which is described by a normal distribution \delta_x \sim \mathcal{N}(0, \Sigma_x). So we can write an expression for the function f(\mathbf{x}).
where \nabla_x f(\mu_x) is the jacobian of f(\cdot) evaluated at \mu_x, \nabla_{xx}f(\mu_x) is the hessian of f(\cdot) evaluated at \mu_x and e_i is a ones vector (essentially the trace of a full matrix).
Joint Distribution¶
So, we want \tilde{f}(\mathbf{x}) which is a joint distribution of \begin{bmatrix} \mathbf{x} \\ f(\mathbf{x})\end{bmatrix}. But as we said, this is difficult to compute so we do a Taylor approximation to this function \begin{bmatrix} \mu_\mathbf{x} \\ f(\mu_\mathbf{x} + \delta_x) \end{bmatrix}. But we still want the full joint distribution, ideally Gaussian. So that would mean we at least need the expectation and the covariance.
Derivation
The mean function is the easiest to derive. We can just take the expectation of the first two terms and we'll see why all the higher order terms disappear.
The covariance function is a bit harder. But again, the final expression is quite simple.
So now we can have a full expression for the joint distribution with the Taylor expansion.
where:
Joint Distribution for Additive Noise¶
So in this setting, we are closer to what we typically use for a GP model.
where we have noisy inputs with additive Gaussian noise\mathbf{x} \sim \mathcal{N}(\mathbf{\mu_x}, \Sigma_\mathbf{x}) and we assume additive Gaussian noise for the outputs \epsilon \sim \mathcal{N}(0, \sigma_y^2 \mathbf{I}). We want a joint distribution of \mathbf{x},y. So using the same sequences of steps as above, we actually get a very similar joint distribution, just with an additional term.
where
So if we want to make predictions with our new model, we will have the final equation as:
where \tilde{\Sigma}_x = \nabla_x \mu_{GP} \Sigma_x \nabla \mu_{GP}^\top.