A plot in l1 x1 x2 over the region x1 x2 isin -5 5 the


In Bayesian model selection (and parameter estimation) one is often faced with difficult, high-dimensional integrals. For example, suppose we have two models for our data, M1(x1, x2) and M2 (X1, x2), both of which are two-dimensional with model parameters x1 and x2. To find out which model does a better job at describing our dataset, within a Bayesian framework (and assuming no prior preference for either model) we would compute the Bayesian evidence factors, Z1 and Z2, where

Zi = ∫ ζ (x1, x2; Mi) Π(x1, x2; Mi) dx1dx2.     (8)

Here ζ(x1, x2; Mi) is the likelihood function and Π(x1, x2; Mi) is the prior distribution of parameters. If Z1 > Z2 we will prefer model 1 over model 2, for example. Here, the semi-colon notation in ζ(x1, x2; Mi) means that the model Mi(xi, x2) has been assumed in the computation of the likelihood function. How this is done is beyond the scope of this class. Instead, we will assume the likelihood function is given. For simplicity we shall assume ir(xi, x2; Mi) = 1. (The prior must satisfy f it = 1, so strictly speaking we cannot set it = 1 in general.)

In this problem you will tackle a challenging case when the parameters are degenerate: that is, there is a special combination if x1 and x2 where the model makes the same prediction while simultaneously varying the values of both x1 and x2. In such situations, neural networks trying to learn the likelihood surface may also experience significant difficulties. Obviously, the problem gets even worst when the dimensionality of the parameter space grows beyond two.

In the presence of a model degeneracy, one may encounter a likelihood function such as

ζ1(x1, x2) = exp (- (1 - x1)2 - 100 (x2 - x12)2).

(a) Plot In (L1 (x1, x2)) over the region x1, X2 ∈ [-5, 5]. The model's degeneracy will show up as lines in the x1-x2 plane where the value of ln ζ1 does not change.

(b) Modify the code you wrote to solve problem 2 to compute the value of

z1 = -55-55 ζ1(x1, x2) dx1 dx2

(c) Let N = 10k for k = 2,3, 4, and compute In (Z1) by continually increasing N. Continue increasing N until you can convincingly get at least 2 digits of precision. Quote some values of N and In (Z1).

(d) By any means possible (using your code or some other way entirely), compute Z2 for likelihood function ζ2(x1, x2) = 1.

What fits the data better, model 1 or model 2?

Request for Solution File

Ask an Expert for Answer!!
Engineering Mathematics: A plot in l1 x1 x2 over the region x1 x2 isin -5 5 the
Reference No:- TGS01710467

Expected delivery within 24 Hours