联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-23:00
  • 微信:codinghelp

您当前位置:首页 >> Matlab编程Matlab编程

日期:2019-04-01 11:18

Question 3

Write a Matlab code to implement model selection based on the LASSO method (use the Matlab

quadprog function). Please select the parameter X by finding the minimum of BIC[

on a grid of X

values.

Apply your code to the data shown in the table below. Consider the full model 8 = :7 + :\ +:] + :^_ + :`a + :6b] + :_ + :`a + :6b + <, and evaluate

BIC[ on the grid C0,0.001,0.002, … ,1F of X values .

Compare your results to the Bayesian variable selection method described in the slides. Set c =

10, c7 = 0, G = 0.05, , = 0.5, and (d) = ∏ 0.5f$0.5f$ .

In addition, compare with model selection results obtained with the PRESS and BIC criteria.

Question 4:

Write a Matlab code to fit a stationary (implies mean and variance are constants) Gaussian

random field model with Gaussian correlation function and compute its posterior mean and 95%

interval predictions (for simplicity, you may write a code that works just for the case of a single

real input ). Apply your code to the data below, and plot the data, posterior mean, 95%

prediction intervals, and the true function q = sin (7) in the same figure. Please report the

maximum likelihood estimates of the prior mean :, prior variance


, and parameter Q in the

Gaussian correlation function.

q

0 sin(7 × 0)

0.2 sin(7 × 0.2)

0.4 sin(7 × 0.4)

0.6 sin(7 × 0.6)

0.8 sin(7 × 0.8)

1 sin(7 × 1)


版权所有:留学生编程辅导网 2020 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。 站长地图

python代写
微信客服:codinghelp