开发者:上海品职教育科技有限公司 隐私政策详情

应用版本:4.2.11(IOS)|3.2.5(安卓)APP下载

Ella · 2024年05月11日

in-sample的error大,不是说明模型过于简单吗

NO.PZ2020010801000040

问题如下:

A given set of data was divided into three equal parts. Three separate models were developed—each model using two of the three parts for fitting. Errors were calculated for each model. The diagram below shows the residual errors for each model run (the light highlights where the data was used for fitting the model versus the dark indicating the data that was held back):

Using the principles of m-fold cross validation, which model should be selected?





选项:

解释:

The first task is to calculate the squared residuals:

The model selected is the one that has the smallest RSS within the blue out-of-sample boxes—this is M3.





M3的in-sample的error大很多,说明模型过于简单啊

M2 in-sample和out-of-sample的error都比较小,不是更好吗

1 个答案
已采纳答案

李坏_品职助教 · 2024年05月11日

嗨,努力学习的PZer你好:


本题是要求我们用m-fold cross validation来挑选模型:

m-fold方法是重点关注样本外的效果,所以只需要看CV RSS最小的模型即可。


因为浅灰色只是用来样本内拟合,所以我们只需要深灰色的数据来检验模型即可,CV RSS 那一栏计算的就是三个模型所有深灰色误差的平方和,选CV RSS最小的那个,也就是M3模型。

----------------------------------------------
就算太阳没有迎着我们而来,我们正在朝着它而去,加油!

  • 1

    回答
  • 0

    关注
  • 181

    浏览
相关问题

NO.PZ2020010801000040 问题如下 A given set of ta wviinto three equparts. Three separate mols were velopeeamol using two of the three parts for fitting. Errors were calculatefor eamol. The agrbelow shows the resierrors for eamol run (the light highlights where the ta wusefor fitting the mol versus the rk incating the ta thwhelback):Using the principles of m-folcross valition, whimol shoulselecte The first task is to calculate the squareresials:The mol selecteis the one thhthe smallest RSS within the blue out-of-sample boxes—this is M3. 老师能一下RSS的定义吗?谢谢

2024-01-26 14:25 1 · 回答

NO.PZ2020010801000040问题如下A given set of ta wviinto three equparts. Three separate mols were velopeeamol using two of the three parts for fitting. Errors were calculatefor eamol. The agrbelow shows the resierrors for eamol run (the light highlights where the ta wusefor fitting the mol versus the rk incating the ta thwhelback):Using the principles of m-folcross valition, whimol shoulselecteThe first task is to calculate the squareresials:The mol selecteis the one thhthe smallest RSS within the blue out-of-sample boxes—this is M3.解析里算的totalRSS是做什么用的

2023-05-20 16:08 1 · 回答

NO.PZ2020010801000040 算深色部分的平方吗? M1=0.64 M2=0.81 M3=0.17 因为是resial的平方,所以哪个小要哪个,是这个意思吗?

2022-01-20 10:54 2 · 回答

没看懂这道题目的意思和考点,麻烦老师详细讲解一下,谢谢

2020-04-08 18:51 1 · 回答