東京大学 情報理工学系研究科 創造情報学専攻 2013年8月実施 筆記試験 第1問
Author
Description
Official examination, archived Japanese PDF. 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 ().
题目描述
考虑一个在线天气预测系统: 名预测者每天各输出一次二元天气 的概率分布,其中 1 表示晴、0 表示非晴,且假定不同日期的天气相互独立。第 名预测者在第 天输出 ,对两个取值均有 。
一名高级预测者汇总这 个结果。第 天给第 人的权重为 ,且 ,输出加权混合分布
高级预测者输出后,才公布当天真实结果 ,上述过程随 依次进行。
-
权重之比等于各预测者对过去 天结果序列 的似然之比:
其中
简记 为 ,并令 。对每个 ,写出 与 的关系,并推导用 和 计算 的公式。
-
连续预测 天,按第 1 问的权重规则写出高级预测者每天输出混合概率并更新各预测者权重的算法,分析关于 的时间复杂度。初始权重均为
-
对真实序列 ,定义高级预测者的累计对数损失
用所有 ()及 表示 ,其中 为自然对数。
-
第 名预测者的 日累计损失为
证明高级预测者的累计损失至多比所有单个预测者中最小的累计损失多 。
Kai
(1) Likelihood and weight updates
The empty-product likelihood is . Multiplying by the newly observed outcome probability gives
Weights proportional to the likelihoods must be normalized to sum to one. Thus
All denominators are positive by the stipulated strictly positive probabilities.
(2) Sequential algorithm
Use the uniform weights for the first day's prediction. The statement calls the initial vector ; in the day-based notation of part (1), this is , since it precedes any observation. It is the same uniform initialization, not an extra update using future data.
v[i] = 1/N for i = 1,...,N
for t = 1,...,T:
obtain today's N predictive distributions P[i]
prediction[0] = sum(v[i] * P[i][0] for i = 1,...,N)
prediction[1] = sum(v[i] * P[i][1] for i = 1,...,N)
output prediction
observe the actual outcome x[t]
z = prediction[x[t]]
for i = 1,...,N:
v[i] = v[i] * P[i][x[t]] / z
The senior predictor takes arithmetic operations and working storage, excluding the predictors' own computation and stored output history. It outputs before observing that day's outcome. For long sequences, store log-likelihoods and normalize using log-sum-exp to avoid numerical underflow from products of many small probabilities; this retains the same asymptotic arithmetic count.
(3) Cumulative loss
Write , so . Then
Multiplying over days telescopes:
Consequently
The uniform average is outside the products: this mixture selects one expert for the whole sequence in its likelihood representation, rather than selecting a fresh uniform expert each day.
(4) Bound relative to the best expert
Let and choose . Since each likelihood is nonnegative,
Applying the decreasing function gives
This is a bound for every realized sequence, not merely for an expected loss. Indeed the algebraic proof itself does not require stochastic independence of the daily outcomes. At the two losses coincide; for and finite , strict positivity makes the displayed upper bound strict, although it can be approached arbitrarily closely.