Why do we call test-set as a way for unbiased estimation?(为何我们说测试集是用来做无偏估计的?)

Why do we call test-set as a way for unbiased estimation?

#UnbiasedEstmator #DeepLearning #Test-set
For Deep Learning applications, we spilt the dataset into training / validation and test sets. The test set is used for unbiased estimation of the model skills (generalization errors).

A natural question then is whether or not these estimators are “good” in any sense. One measure of “good” is “unbiasedness.”

Cases in time series forecasting with DL models with MAE as the estimator

Assume the MAE (Mean Absolute Error) estimator is
θ ^ = L M A E ( X 1 , X 2 , ⋯   , X n ) = 1 n ∑ i = 1 n ∣ X i − X i ^ ∣ \begin{aligned} \widehat{\theta} &= \mathbb{L}_{MAE}(X_1,X_2,\cdots,X_n) \\ &= \frac{1}{n}\sum^{n}_{i=1}{|X_i-\widehat{X_i}|} \end{aligned} θ =LMAE(X1,X2,,Xn)=n1i=1nXiXi
where ( X 1 , X 2 , ⋯   ) (X_1,X_2,\cdots) (X1,X2,) is the test set, and the widehat version is its estimations. If its mathematical expectations are:
E ( θ ^ ) = θ ^ E(\widehat{\theta}) = \widehat{\theta} E(θ )=θ

Then, we call θ ^ \widehat{\theta} θ is the unbiased estimator of MAE.

To prove that MAE is a unbiased estimator:

E ( θ ^ ) = E ( 1 n ∑ i = 1 n ∣ X i − X i ^ ∣ ) = 1 n ∑ i = 1 n E ( ∣ X i − X i ^ ∣ ) = 1 n × n × θ ^ = θ ^ \begin{aligned} E(\widehat{\theta}) &= E(\frac{1}{n}\sum^{n}_{i=1}{|X_i-\widehat{X_i}|}) \\ & = \frac{1}{n}\sum^{n}_{i=1}{E(|X_i-\widehat{X_i}|)}\\ & = \frac{1}{n}\times n \times \widehat{\theta} \\ & = \widehat{\theta} \end{aligned} E(θ )=E(n1i=1nXiXi )=n1i=1nE(XiXi )=n1×n×θ =θ

Cases with MSE

MSE is also a unbiased estimator.

θ ^ = L M S E ( X 1 , X 2 , ⋯   , X n ) = 1 n ∑ i = 1 n ( X i − X i ^ ) 2 \begin{aligned} \widehat{\theta} &= \mathbb{L}_{MSE}(X_1,X_2,\cdots,X_n) \\ &= \frac{1}{n}\sum^{n}_{i=1}{(X_i-\widehat{X_i})^2} \end{aligned} θ =LMSE(X1,X2,,Xn)=n1i=1n(XiXi )2
E ( θ ^ ) = E ( 1 n ∑ i = 1 n ( X i − X i ^ ) 2 ) = 1 n E ( ∑ i = 1 n ( X i − X i ^ ) 2 ) = 1 n ∑ i = 1 n E ( ( X i − X i ^ ) 2 ) = θ ^ \begin{aligned} E(\widehat{\theta})&= E(\frac{1}{n}\sum^{n}_{i=1}(X_i-\widehat{X_i})^2 )\\ &= \frac{1}{n} E(\sum^{n}_{i=1}(X_i-\widehat{X_i})^2) \\ &= \frac{1}{n} \sum^{n}_{i=1}E((X_i-\widehat{X_i})^2) \\ & = \widehat{\theta} \end{aligned} E(θ )=E(n1i=1n(XiXi )2)=n1E(i=1n(XiXi )2)=n1i=1nE((XiXi )2)=θ

Conclusion

To say that test set is used for unbiased estimation, it is not about the dataset itself, but about the estimator and estimated object, i.e., mean value and μ \mu μ, respectively.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

JasonDean

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值