[SOLVED] R Bayesian We will consider a series of questions relating to an application of Bayesian inference to numerical analysis, specically quadrature.

$25

File Name: R_Bayesian_We_will_consider_a_series_of_questions_relating_to_an_application_of_Bayesian_inference_to_numerical_analysis,_specically_quadrature..zip
File Size: 1356.48 KB

5/5 - (1 vote)

We will consider a series of questions relating to an application of Bayesian inference to numerical analysis, specically quadrature.
We are going to consider the function
and its denite integral
fxexpx2 Z 1
Z fxdx. 1
The function f has no elementary antiderivative, so the calculation of Z is not straightforward. There is a famous method for computing Z with the trick of considering Z2 instead, rewriting the resulting d integral in polar coordinates, and making a convenient substitution. If you havent seen this, its beautiful and worth checking out. The result is
Zp.
We will consider modeling f with a Gaussian process prior distribution: pfGPf; , K,
and conditioning on the following set of data Dx, y:
x2.5, 1.5, 0.5, 0.5, 1.5, 2.5 ; yexpx2
0.0019305, 0.1054, 0.7788, 0.7788, 0.1054, 0.0019305 . We will x the prior mean functionto be identically zero; x0.
. First, let us consider the question of model, specically kernel, selection. Consider the following four choices for the covariance function K:
K1x, x0expxx02
K2x, x0expxx0
K3x, x01p3xx0 expp3xx0
Note that I am not parameterizing any of these kernels; please consider them to be xed as given.
Each kernel denes a Gaussian process model for the data in a natural way:
pfMiGPf; , Ki. Consider a uniform prior distribution over these models:
PrMi13 i1,2,3.
a Compute the log model evidence for each model given the data D above.
This is commonly credited to Gauss, but the idea goes back at least to Poisson.

b Compute the model posterior PrMD.
c Can you nd a kernel with higher model evidence given the data above? I will award
an extra credit point to the person who provides the kernel with the highest evidence.
. Now lets turn to prediction.
a For each kernel above, plot the predictive distribution over the interval x 2 6, 6. For each model Mi, please plot, in a separate gure, the predictive mean pyx, D, Mi and acredible interval. These plots should be the result of a computer program. Please add legends and axes labels, etc., and plot the true function on the same interval for reference. You can take a look through the course materials to get an idea of the sort of plots I am looking for.
b In addition, please write out the predictive mean and standard deviation at x0 for each of the kernels, pyx0, D, Mi.
c What is the modelmarginal predictive distribution, pyx, D? Write this in terms of the modelconditional predictive distribution and the model posterior.
d Assume that the model posterior is uniform; PrMiD13 for all models i this is not the case, if you are worried about your answer to b. Plot the modelmarginal predictive mean function EyD over the interval x 2 6, 6.
. Let us consider a simple numerical estimate of the integral using the midpoint rule. Let x be an evenly spaced grid of n points in the interval 6, 6 with spacing , starting with 62 and ending with 62, and let ffx. Then a midpoint rule estimate of the integral is
Xn Z f xi .
i1
a Show that Z has a Gaussian distribution. What is its mean and variance?
b Take the limit of our belief about Z as! 0, assuming K can be integrated. Interpret the result in a broader context.
. Now we will consider integration.
Perform Bayesian quadrature to estimate the denite integral R 6 f x dx, using the model
6
M1 from question . What is the predictive mean and standard deviation, pZD, M1?
Please give a numeric answer. How does this compare with the true answer?
. Finally,wewillconsideradecisionproblem.Supposewehavealreadymadesomeobservations D. How can we select the mostinformative next observation x, fx to make? This is a decision problem where the action space parametrizing the next observation location is the domain,x 2X.
Suppose that we are to estimate Z with a point estimate Z, and that we have selected the
squared loss
Z , ZZZ2 .
a GivenasetofobservationsD,whatistheBayesianoptimalaction?Whatistheexpected loss of that action?

b ComputetheexpectedlossoftheBayesianoptimalactionafteraddinganewobservation to D located at a point x. Plot this result as a function of x 2 6, 6. What is the optimal location to measure the function next? By symmetry there may be multiple equivalent answers.
c Condition the function on an observation of the function at the chosen location and plot the predictive distribution as in part a. Recompute the predictive distribution for Z. Did our estimate improve?

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] R Bayesian We will consider a series of questions relating to an application of Bayesian inference to numerical analysis, specically quadrature.
$25