代写ST337 and ST405 BAYESIAN FORECASTING AND INTERVENTION Summer 2024代写留学生Matlab语言程序

ST337 and ST405

BAYESIAN FORECASTING AND INTERVENTION

Summer 2024

1. In a clinical trial, a new vaccine is being tested. A group of n individuals are vaccinated. Record Yi = 1, if the individual i has successfully developed immunity. Assume that Y1, . . . ,Yn are conditionally independent given the unknown success rate θ.

(a) Which of the probability distributions listed in Table 1 is best suited to model the data generation process? Write down the corresponding likelihood function. [2 marks]

Table 1: Probability distributions of random variable Y . B(α, β) and Γ(α) are the Beta and Gamma functions, respectively.

(b) Suppose a scientist wants to use the uniform. distribution as the prior for θ.

(i) As the scientist has no preference toward any specific value of success rate θ, specify suitable values of parameters a and b of the uniform. prior? Justify your answer.  [2 marks]

(ii) Would the Uniform. prior be conjugate for the selected likelihood function? Justify your answer.  [3 marks]

(c) Another scientist wants to use a Beta(α, β) as the prior for θ.

(i) Derive the posterior distribution for θ given Y1:n and state explictly the distribution parameters.     [4 marks]

(ii) Find the posterior mean and variance (in terms of n, α, β, and y¯ = n−1 yi)       [4 marks]

(iii) Give the expression (pdf) of the prediction distribution of Yn+1 given Y1:n (Hint: the expression is a fraction of two Beta functions B(·, ·)).           [5 marks]

2. Consider a Constant Gaussian Dynamic Linear Model (DLM) used to track the position and velocity of a high-speed train. Denote k ≥ 0 as the evenly spaced discrete time index, with time step ∆. The state of the system at time k is given by the state vector θk = (θk,1, θk,2) ⊤, which includes the position θk,1 and velocity θk,2 of the train. The transitions of train’s states are subject to transition noise uk. Sensor measurements of the train’s position Yk are recorded at discrete time and are subject to observation noise vk.

(a) Write down the corresponding state (including the initial state) and observation equations and give explicitly the assumptions on the noise terms.           [3 marks]

(b) What are the hyperparameters of the DLM and their dimensionality? Give the explicit form. of the transition matrix and the observation matrix.   [2 marks]

(c) Assuming the conditions of Kalman Filter are fullfilled. Let the predictive distribution of θ1 given Y0 and the noise covariances be expressed respectively as

θ1|Y0 ∼ N((0, 0)⊤, I2), cov(uk) = I2, and cov(vk) = 1,

where I2 is 2 × 2 identity matrix.

(i) Write down the forecasting distribution of Y1 given Y0.    [3 marks]

(ii) Given the observation y1 = 2, write down the filtering distribution of θ1 given Y0:1.   [3 marks]

(iii) Compute the Kalman gain K1. Compare the predictive distribution of θ1 given Y0 and the filtering distribution of θ1 given Y0:1. Explain the implications of using the filtering distribution over the predictive distribution for making real-time decisions.   [3 marks]

(d) Suppose the observation at time k+1 is missing, derive the predictive distribution of the state θk+2, given all observations up to time k (in terms of mk+1 and Pk+1).   [2 marks]

(e) Suppose U and V are unknown covariances of transition and observation noises, respectively. U and V have common scaling factor σ 2 , and they can be be written as U = σ 2Ue and V = σ 2Ve with σ 2 unknown but Ue and Ve known. We perform. inference on σ 2 using both Maximum likelihood estimation (MLE) and Bayesian approach.

(i) For MLE, write down the likelihood function and explain why the Kalman filter is useful to obtain MLE.   [2 marks]

(ii) For Baysian approach, without actual derivations, state the prior distribution and indicate what family the posterior distribution of σ 2 will belong to.  [2 marks]

3. (a) Consider M a univariate time-series {Yk, θk}k≥0 of the form.

with θ0 = u0 and, for k ≥ 0, vk and uk have mean zero and are all independent.

(i) Derive the expression of the forecast function gk(δ) = E(Yk+δ | Y0:k) of M, for δ > 0, in terms of the filtering mean mˆ k = E(θk | Y0:k). Justify all steps.   [3 marks]

(ii) Consider the transition matrix

the observation vector H = (1, 1) and the filtering mean mˆ k = (2, 2)⊤. 1) Find the forecast function. 2) Is this DLM a polynomial model? 3) Is this DLM observable?   [4 marks]

(iii) Can a DLM similar to the one in Question 3(a)(ii) have forecast function gk(δ) = 3δ? Justify your answer.   [2 marks]

(iv) Why the DLMs are classified based on E(yk+δ | y0:k) and not on E(θk+δ | y0:k)?   [2 marks]

(b) Consider an M with transition matrix

and with observation matrix H = (2, 1).

(i) Provide the expression of M′ a canonical similar model to M and identify its transition matrix F ′ and its observation matrix H′ . Justify your answers.    [3 marks]

(ii) Find the similarity matrix S between M′ and M.   [4 marks]

(iii) Let Id2 denote the 2 × 2 identity matrix. Since F = Id2F ′ Id− 2 1 , can you conclude that the similarity matrix is S = Id2, without performing the calculations in Question 3 (b)(ii)? Justify your answer.   [2 marks]

4. Consider a DLM of the following form.

with θ0 = u0, F = , H = [1 0] and uk = ϵk, with {ϵk}k≥0 be a sequence of i.i.d. random variables distributed as N(0, σ2 ) for some σ 2 > 0.

(a) Rewrite this DLM as an ARMA(p, q) model for Yk. Identify the value of p and q, as well as the AR and MA coefficients.   [5 marks]

(b) Study the stability of the time series using the characteristic polynomials. Without further calculations, compare your result with the stability conditions for an AR(1) process and conclude about the influence of the moving average component.   [5 marks]

(c) Write the ARMA(p, q) model obtained in Question 4(a) as an infinite-order MA process.   [4 marks]

(d) Let Zk = Yk − E(Yk|Y0:k−1) be the innovation.

(i) What is the mean of Zk. Justify your answer.   [2 marks]

(ii) What is the variance of Zk given Y0:k−1. Justify your answer.   [2 marks]

(iii) What is the lag-δ autocvariance of Zk for δ ≠ 0. Justify your answer.   [2 marks]

5. (a) Consider a real-valued distribution π with mean µ = E(θ) and variance

where θ ∼ π. Suppose µ is known, but σ 2 is unknown. The task is estimating the variance σ 2 .

(i) Derive the expression for Vb1, the Monte Carlo estimator of σ 2 , and express its variance in terms of the fourth central moment µ4 = E[(θ − µ) 4 ] and the variance σ 2 of π.    [2 marks]

(ii) Derive the expression for Vb2, an importance sampling estimator of σ 2 with respect to a general proposal distribution q.  [2 marks]

(iii) Compute the mean and variance of Vb2.   [3 marks]

(iv) Is it possible for the variance of Vb2 to be lower than that of Vb1? Justify your response and provide an illustrative example [Hint: consider sampling weights ω(θ) = σ 2/(θ − µ) 2 ].   [3 marks]

(v) List two advantages of using Vb2 over Vb1, especially in light of your answer to the Question 5(d).   [2 marks]

(b) Consider the following smoothing distribution:

with

and with Zn, the corresponding normalising constant. It is assumed that one can sample from p0(·) and qk(· | θ) for any θ ∈ Θ.

(i) What are the two main issues when estimating integrals related to smoothing distributions?   [2 marks]

(ii) Which proposal distribution sn(θ0:n) would you use?    [2 marks]

(iii) Propose a way to get a sample θ0:n from sn(·).        [2 marks]

(iv) In the context of self-normalised importance sampling, what would be weight of this sample?    [2 marks]





热门主题

课程名

mktg2509 csci 2600 38170 lng302 csse3010 phas3226 77938 arch1162 engn4536/engn6536 acx5903 comp151101 phl245 cse12 comp9312 stat3016/6016 phas0038 comp2140 6qqmb312 xjco3011 rest0005 ematm0051 5qqmn219 lubs5062m eee8155 cege0100 eap033 artd1109 mat246 etc3430 ecmm462 mis102 inft6800 ddes9903 comp6521 comp9517 comp3331/9331 comp4337 comp6008 comp9414 bu.231.790.81 man00150m csb352h math1041 eengm4100 isys1002 08 6057cem mktg3504 mthm036 mtrx1701 mth3241 eeee3086 cmp-7038b cmp-7000a ints4010 econ2151 infs5710 fins5516 fin3309 fins5510 gsoe9340 math2007 math2036 soee5010 mark3088 infs3605 elec9714 comp2271 ma214 comp2211 infs3604 600426 sit254 acct3091 bbt405 msin0116 com107/com113 mark5826 sit120 comp9021 eco2101 eeen40700 cs253 ece3114 ecmm447 chns3000 math377 itd102 comp9444 comp(2041|9044) econ0060 econ7230 mgt001371 ecs-323 cs6250 mgdi60012 mdia2012 comm221001 comm5000 ma1008 engl642 econ241 com333 math367 mis201 nbs-7041x meek16104 econ2003 comm1190 mbas902 comp-1027 dpst1091 comp7315 eppd1033 m06 ee3025 msci231 bb113/bbs1063 fc709 comp3425 comp9417 econ42915 cb9101 math1102e chme0017 fc307 mkt60104 5522usst litr1-uc6201.200 ee1102 cosc2803 math39512 omp9727 int2067/int5051 bsb151 mgt253 fc021 babs2202 mis2002s phya21 18-213 cege0012 mdia1002 math38032 mech5125 07 cisc102 mgx3110 cs240 11175 fin3020s eco3420 ictten622 comp9727 cpt111 de114102d mgm320h5s bafi1019 math21112 efim20036 mn-3503 fins5568 110.807 bcpm000028 info6030 bma0092 bcpm0054 math20212 ce335 cs365 cenv6141 ftec5580 math2010 ec3450 comm1170 ecmt1010 csci-ua.0480-003 econ12-200 ib3960 ectb60h3f cs247—assignment tk3163 ics3u ib3j80 comp20008 comp9334 eppd1063 acct2343 cct109 isys1055/3412 math350-real math2014 eec180 stat141b econ2101 msinm014/msing014/msing014b fit2004 comp643 bu1002 cm2030
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图