東京大学 情報理工学系研究科 創造情報学専攻 2013年8月実施 筆記試験 第1問
Author
Description
We consider a weather prediction system in which a single senior predictor predicts a weather probability distribution on the basis of predictors' prediction results. Below the system is described in details. There are weather predictors, each of whom outputs a weather probability distribution once a day. Here the weather is a binary random variable taking a value 1 or 0 only (1 means "fine" while 0 means "not fine"). It is assumed that the weather is independent of a day. Let the probability distribution that the -th predictor outputs on the -th day be () where we let (). There is a senior predictor who aggregates the outputs of the predictors. On the -th day, the senior predictor takes a weighted average over the probability distributions output by the predictors to output a weather probability distribution (). Here the weight on the -th predictor on the -th day is denoted as ( ()). That is, on the -th day, is given by (see Figure 1). On the -th day, after the senior predictor ouputs, the real outcome of the weather on the day is reported. This process goes on sequentially with respect to . In the above setting, answer the following questions.
(1) Assume that the senior predictor defines the weight of the -th predictor on the -th day so that the ratio of s with respect to is equal to that of their corresponding likelihoods with respect to the sequence of the past data: . That is, when we denote the likelihood of the -th predictor with respect to as ,
the following equation holds: For each , The likelihood of the -th predictor with respect to is calculated as , where we denote as and we set (). In this setting, for each , show a relation between and , and derive a formula for calculating using and ().
(2) Suppose that the senior predictor predicts the weather probability distribution sequentially with respect to for days. Then under the setting of as in (1), write an algorithm for the senior predictor to output a weather probability distribution and update the weights for predictors every day, and show the order of its computation time in terms of and . Here the initial weight for each predictor is set as follows:
(3) When the prediction is sequentially made for days, we define the cumulative predictive loss for the senior predictor with respect to the sequence of observed real coutcome as follows: Then write as a function of () and . Here the logarithm is the natural logarithm.
(4) Prove that the senior predictor's cumulative loss for days defined in (3) is at most larger than the least cumulative loss over all -th predictors for days. Here the cumulative loss for the -th predictor for days is defined as ().
题目描述
考虑一个在线天气预测系统:(N) 名预测者每天各输出一次二元天气 (X\in{1,0}) 的概率分布,其中 1 表示晴、0 表示非晴,且假定不同日期的天气相互独立。第 (i) 名预测者在第 (t) 天输出 (P_i^{(t)}(X)),对两个取值均有 (0<P_i^{(t)}(X)<1)。
一名高级预测者汇总这 (N) 个结果。第 (t) 天给第 (i) 人的权重为 (v_i^{(t)}>0),且 (\sum_{i=1}^Nv_i^{(t)}=1),输出加权混合分布 [ \hat P^{(t)}(X)=\sum_{i=1}^Nv_i^{(t)}P_i^{(t)}(X). ] 高级预测者输出后,才公布当天真实结果 (x_t\in{1,0}),上述过程随 (t) 依次进行。
- 权重之比等于各预测者对过去 (t-1) 天结果序列 (x^{t-1}=x_1\cdots x_{t-1}) 的似然之比: [ v_1^{(t)}:\cdots:v_N^{(t)} =w_1^{(t-1)}:\cdots:w_N^{(t-1)}, ] 其中 [ w_i^{(t-1)}=\prod_{j=1}^{t-1}P_i^{(j)}(X=x_j), ] 简记 (P_i^{(j)}(X=x_j)) 为 (P_i^{(j)}(x_j)),并令 (P_i^{(0)}(x_0)=1)。对每个 (i),写出 (w_i^{(t)}) 与 (w_i^{(t-1)}) 的关系,并推导用 (w_i^{(t-1)}) 和 (P_i^{(t)}(x_t)) 计算 (v_i^{(t+1)}) 的公式。
- 连续预测 (T) 天,按第 1 问的权重规则写出高级预测者每天输出混合概率并更新各预测者权重的算法,分析关于 (N,T) 的时间复杂度。初始权重均为 [ v_1^{(0)}=\cdots=v_N^{(0)}=\frac1N. ]
- 对真实序列 (x^T=x_1\cdots x_T),定义高级预测者的累计对数损失 [ Loss(x^T)=\sum_{t=1}^T-\log\hat P^{(t)}(x_t). ] 用所有 (P_i^{(t)}(x_t))((i=1,\ldots,N;\ t=1,\ldots,T))及 (N) 表示 (Loss(x^T)),其中 (\log) 为自然对数。
- 第 (i) 名预测者的 (T) 日累计损失为 [ \sum_{t=1}^T-\log P_i^{(t)}(x_t). ] 证明高级预测者的累计损失至多比所有单个预测者中最小的累计损失多 (\log N)。
考点
- 专家建议下的在线学习:按历史似然对专家赋权,逐日形成混合概率并用新观测乘法更新权重。
- 对数损失与遗憾界:利用混合模型似然的乘积展开和对数,把总损失写成专家似然之和,并证明相对最佳专家的额外损失不超过 (\log N)。