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

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

Brian邵彬 · 2024年05月21日

为什么少了一个regressor

NO.PZ2020010801000025

问题如下:

A model was estimated using daily data from the S&P 500 from 1977 until 2017 which included five day-of-the-week dummies (n = 10,087). The R2R^2 from this regression was 0.000599. Is there evidence that the mean varies with the day of the week?

选项:

解释:

The model estimated is

Yi=β1D1+β2D2+β3D3+β4D4+β5D5+ϵiY_i = \beta_1D_1 + \beta_2D_2 + \beta_3D_3 + \beta_4D_4 + \beta_5D_5 + \epsilon_i,

where Di is a dummy that takes the value 1 if the index of the weekday is i (e.g., Monday = 1, Tuesday = 2, c). The restriction is that

H0:β1=β2=β3=β4=β5H_0:\beta_1 = \beta_2 = \beta_3 = \beta_4 = \beta_5

so there this is no day-of-the-week effect. This model can be equivalently written as

Yi=μ+δ2D2+δ3D3+δ4D4+δ5D5+ϵiY_i = \mu + \delta_2D_2 + \delta_3D_3 + \delta_4D_4 + \delta_5D_5 + \epsilon_i,

therefore, here the null is

H0:δ2=δ3=δ4=δ5H_0:\delta_2 = \delta_3 = \delta_4 = \delta_5.

In the two models, μ=β1\mu = \beta_1, and μ+δi=βi\mu + \delta_i = \beta_i. The second form of the model is a more standard null for an F-stat.

The F-stat of the regression is

(R20)/4(1R2)/(n5)=0.000599/4(10.000599)/(100875)=1.51\frac{(R^2-0)/4}{(1-R^2)/(n-5)}=\frac{0.000599/4}{(1-0.000599)/(10087-5)}=1.51

The distribution is an F4,10082F_{4,10082} and the critical value using a 5% size is 2.37. The test statistic is less than the critical value, therefore, the null that all effects are 0 is not rejected.

请问第二个公式是怎么推导出来的?为什么少了一个regressor




3 个答案
已采纳答案

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

嗨,努力学习的PZer你好:


不是均值,这个μ只是代表常数项(也称为截距项),一般情况下会用α表示。

----------------------------------------------
努力的时光都是限量版,加油!

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

嗨,爱思考的PZer你好:


不太合适。

F检验需要用到restricted model的概念:

按照F检验的要求,当所有β都=0时,至少还应该有一个常数项α,这样才是restricted model。

如果用本题的公式1,β都=0时就没有常数项了。所以k只能是4。

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

Brian邵彬 · 2024年05月24日

这里的μ,是代表均值么?如果是的话,是谁的均值?

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

嗨,爱思考的PZer你好:



不是少了,这两种写法是等价的。只是第二种写法更正规一些。


本题是为了检验day of the week,一周的交易日最多只有5天,所以我们只需要4个哑变量就够了。

如果D2到D5全都等于0,那么常数项μ即代表Monday的效果。

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

Brian邵彬 · 2024年05月22日

那我可以用第一个公式去算么,就是k=5?

  • 3

    回答
  • 0

    关注
  • 163

    浏览
相关问题

NO.PZ2020010801000025 问题如下 A mol westimateusing ily ta from the S P 500 from 1977 until 2017 whiinclufive y-of-the-week mmies (n = 10,087). The R2R^2R2 from this regression w0.000599. Is there evinththe mevaries with the y of the week? The mol estimateis Yi=β1+β2+β3+β4+β5+ϵiY_i = \beta_11 + \beta_22 + \beta_33 + \beta_44 + \beta_55 + \epsilon_iYi​=β1​​+β2​​+β3​​+β4​​+β5​​+ϵi​, where is a mmy thtakes the value 1 if the inx of the weeky is i (e.g., Mony = 1, Tuesy = 2, c). The restriction is thH0:β1=β2=β3=β4=β5H_0:\beta_1 = \beta_2 = \beta_3 = \beta_4 = \beta_5H0​:β1​=β2​=β3​=β4​=β5​ so there this is no y-of-the-week effect. This mol cequivalently written Yi=μ+δ2+δ3+δ4+δ5+ϵiY_i = \mu + \lta_22 + \lta_33 + \lta_44 + \lta_55 + \epsilon_iYi​=μ+δ2​​+δ3​​+δ4​​+δ5​​+ϵi​, therefore, here the null is H0:δ2=δ3=δ4=δ5H_0:\lta_2 = \lta_3 = \lta_4 = \lta_5H0​:δ2​=δ3​=δ4​=δ5​. In the two mols, μ=β1\mu = \beta_1μ=β1​, anμ+δi=βi\mu + \lta_i = \beta_iμ+δi​=βi​. The seconform of the mol is a more stanrnull for F-stat. The F-stof the regression is(R2−0)/4(1−R2)/(n−5)=0.000599/4(1−0.000599)/(10087−5)=1.51\frac{(R^2-0)/4}{(1-R^2)/(n-5)}=\frac{0.000599/4}{(1-0.000599)/(10087-5)}=1.51(1−R2)/(n−5)(R2−0)/4​=(1−0.000599)/(10087−5)0.000599/4​=1.51The stribution is F4,10082F_{4,10082}F4,10082​ anthe criticvalue using a 5% size is 2.37. The test statistic is less ththe criticvalue, therefore, the null thall effects are 0 is not rejecte 请问一下F检验分子不是应该等于(UnrestricteR 2 - RestricteR2)/q 吗。题目说了unrestricteR2但并没有说restricteR2是多少。为什么公式里面直接就把restricteR2 忽略掉了呢

2024-05-24 11:45 1 · 回答

NO.PZ2020010801000025问题如下A mol westimateusing ily ta from the S P 500 from 1977 until 2017 whiinclufive y-of-the-week mmies (n = 10,087). The R2R^2R2 from this regression w0.000599. Is there evinththe mevaries with the y of the week?The mol estimateis Yi=β1+β2+β3+β4+β5+ϵiY_i = \beta_11 + \beta_22 + \beta_33 + \beta_44 + \beta_55 + \epsilon_iYi​=β1​​+β2​​+β3​​+β4​​+β5​​+ϵi​, where is a mmy thtakes the value 1 if the inx of the weeky is i (e.g., Mony = 1, Tuesy = 2, c). The restriction is thH0:β1=β2=β3=β4=β5H_0:\beta_1 = \beta_2 = \beta_3 = \beta_4 = \beta_5H0​:β1​=β2​=β3​=β4​=β5​ so there this is no y-of-the-week effect. This mol cequivalently written Yi=μ+δ2+δ3+δ4+δ5+ϵiY_i = \mu + \lta_22 + \lta_33 + \lta_44 + \lta_55 + \epsilon_iYi​=μ+δ2​​+δ3​​+δ4​​+δ5​​+ϵi​, therefore, here the null is H0:δ2=δ3=δ4=δ5H_0:\lta_2 = \lta_3 = \lta_4 = \lta_5H0​:δ2​=δ3​=δ4​=δ5​. In the two mols, μ=β1\mu = \beta_1μ=β1​, anμ+δi=βi\mu + \lta_i = \beta_iμ+δi​=βi​. The seconform of the mol is a more stanrnull for F-stat. The F-stof the regression is(R2−0)/4(1−R2)/(n−5)=0.000599/4(1−0.000599)/(10087−5)=1.51\frac{(R^2-0)/4}{(1-R^2)/(n-5)}=\frac{0.000599/4}{(1-0.000599)/(10087-5)}=1.51(1−R2)/(n−5)(R2−0)/4​=(1−0.000599)/(10087−5)0.000599/4​=1.51The stribution is F4,10082F_{4,10082}F4,10082​ anthe criticvalue using a 5% size is 2.37. The test statistic is less ththe criticvalue, therefore, the null thall effects are 0 is not rejecte在unrestricte设中没有常量,有5个variables,那么在最后一问中n-ku-1为什么不是n-5-1而是n-5呢?

2023-09-05 17:44 1 · 回答

NO.PZ2020010801000025 问题如下 A mol westimateusing ily ta from the S P 500 from 1977 until 2017 whiinclufive y-of-the-week mmies (n = 10,087). The R2R^2R2 from this regression w0.000599. Is there evinththe mevaries with the y of the week? The mol estimateis Yi=β1+β2+β3+β4+β5+ϵiY_i = \beta_11 + \beta_22 + \beta_33 + \beta_44 + \beta_55 + \epsilon_iYi​=β1​​+β2​​+β3​​+β4​​+β5​​+ϵi​, where is a mmy thtakes the value 1 if the inx of the weeky is i (e.g., Mony = 1, Tuesy = 2, c). The restriction is thH0:β1=β2=β3=β4=β5H_0:\beta_1 = \beta_2 = \beta_3 = \beta_4 = \beta_5H0​:β1​=β2​=β3​=β4​=β5​ so there this is no y-of-the-week effect. This mol cequivalently written Yi=μ+δ2+δ3+δ4+δ5+ϵiY_i = \mu + \lta_22 + \lta_33 + \lta_44 + \lta_55 + \epsilon_iYi​=μ+δ2​​+δ3​​+δ4​​+δ5​​+ϵi​, therefore, here the null is H0:δ2=δ3=δ4=δ5H_0:\lta_2 = \lta_3 = \lta_4 = \lta_5H0​:δ2​=δ3​=δ4​=δ5​. In the two mols, μ=β1\mu = \beta_1μ=β1​, anμ+δi=βi\mu + \lta_i = \beta_iμ+δi​=βi​. The seconform of the mol is a more stanrnull for F-stat. The F-stof the regression is(R2−0)/4(1−R2)/(n−5)=0.000599/4(1−0.000599)/(10087−5)=1.51\frac{(R^2-0)/4}{(1-R^2)/(n-5)}=\frac{0.000599/4}{(1-0.000599)/(10087-5)}=1.51(1−R2)/(n−5)(R2−0)/4​=(1−0.000599)/(10087−5)0.000599/4​=1.51The stribution is F4,10082F_{4,10082}F4,10082​ anthe criticvalue using a 5% size is 2.37. The test statistic is less ththe criticvalue, therefore, the null thall effects are 0 is not rejecte Means 和R Square 是个什么关系?该题目的解题思路是什么? 这两者如何关联上?考了哪几个知识点?非常感谢

2023-02-05 02:23 1 · 回答

NO.PZ2020010801000025问题如下A mol westimateusing ily ta from the S P 500 from 1977 until 2017 whiinclufive y-of-the-week mmies (n = 10,087). The R2R^2R2 from this regression w0.000599. Is there evinththe mevaries with the y of the week? The mol estimateis Yi=β1+β2+β3+β4+β5+ϵiY_i = \beta_11 + \beta_22 + \beta_33 + \beta_44 + \beta_55 + \epsilon_iYi​=β1​​+β2​​+β3​​+β4​​+β5​​+ϵi​, where is a mmy thtakes the value 1 if the inx of the weeky is i (e.g., Mony = 1, Tuesy = 2, c). The restriction is thH0:β1=β2=β3=β4=β5H_0:\beta_1 = \beta_2 = \beta_3 = \beta_4 = \beta_5H0​:β1​=β2​=β3​=β4​=β5​ so there this is no y-of-the-week effect. This mol cequivalently written Yi=μ+δ2+δ3+δ4+δ5+ϵiY_i = \mu + \lta_22 + \lta_33 + \lta_44 + \lta_55 + \epsilon_iYi​=μ+δ2​​+δ3​​+δ4​​+δ5​​+ϵi​, therefore, here the null is H0:δ2=δ3=δ4=δ5H_0:\lta_2 = \lta_3 = \lta_4 = \lta_5H0​:δ2​=δ3​=δ4​=δ5​. In the two mols, μ=β1\mu = \beta_1μ=β1​, anμ+δi=βi\mu + \lta_i = \beta_iμ+δi​=βi​. The seconform of the mol is a more stanrnull for F-stat. The F-stof the regression is(R2−0)/4(1−R2)/(n−5)=0.000599/4(1−0.000599)/(10087−5)=1.51\frac{(R^2-0)/4}{(1-R^2)/(n-5)}=\frac{0.000599/4}{(1-0.000599)/(10087-5)}=1.51(1−R2)/(n−5)(R2−0)/4​=(1−0.000599)/(10087−5)0.000599/4​=1.51The stribution is F4,10082F_{4,10082}F4,10082​ anthe criticvalue using a 5% size is 2.37. The test statistic is less ththe criticvalue, therefore, the null thall effects are 0 is not rejecte这种难度和类型的题考试会考吗

2022-03-21 15:55 1 · 回答