To understand the deduction in the given equation, we need to use properties of the expectation operator (\mathbb{E}) and some basic properties of inner products and norms in vector spaces. Let's break down the steps and properties used:
-
Linearity of Expectation: The expectation operator (\mathbb{E}) is linear, which means for any random variables (X) and (Y) and constants (a) and (b),
[
\mathbb{E}[aX + bY] = a\mathbb{E}[X] + b\mathbb{E}[Y].
]
-
Inner Product and Norm Properties: For any vectors (u) and (v), the norm squared can be expressed in terms of the inner product:
[
|u - v|^2 = (u - v)^\top (u - v).
]
-
Expanding the Norm Squared: Using the properties of the inner product, we can expand the norm squared term:
[
|z - (\phi(s_T) - \phi(s_0))|^2 = (z - (\phi(s_T) - \phi(s_0)))^\top (z - (\phi(s_T) - \phi(s_0))).
]
Expanding this, we get:
[
|z - (\phi(s_T) - \phi(s_0))|^2 = z^\top z - 2z^\top (\phi(s_T) - \phi(s_0)) + (\phi(s_T) - \phi(s_0))^\top (\phi(s_T) - \phi(s_0)).
]
-
Taking Expectation: Applying the expectation operator to the expanded form, we use the linearity of expectation:
[
\mathbb{E}{z, \tau} \left[ |z - (\phi(s_T) - \phi(s_0))|^2 \right] = \mathbb{E}{z, \tau} \left[ z^\top z \right] - 2\mathbb{E}{z, \tau} \left[ z^\top (\phi(s_T) - \phi(s_0)) \right] + \mathbb{E}{z, \tau} \left[ (\phi(s_T) - \phi(s_0))^\top (\phi(s_T) - \phi(s_0)) \right].
]
-
Simplifying the Terms: Notice that the term (z^\top z) does not depend on (\phi(s_T)) or (\phi(s_0)), and it can be considered as a constant term which we can absorb into the ((\text{const})) part. The middle term involves the expectation of an inner product, and the last term is the norm squared of (\phi(s_T) - \phi(s_0)), which is deterministic and thus can be taken out of the expectation:
[
\mathbb{E}{z, \tau} \left[ |z - (\phi(s_T) - \phi(s_0))|^2 \right] = \mathbb{E}{z, \tau} \left[ z^\top z \right] - 2\mathbb{E}_{z, \tau} \left[ z^\top (\phi(s_T) - \phi(s_0)) \right] + | \phi(s_T) - \phi(s_0) |^2.
]
-
Rearranging and Combining Constants: Rearranging the terms, we get:
[
-\mathbb{E}{z, \tau} \left[ |z - (\phi(s_T) - \phi(s_0))|^2 \right] = - \mathbb{E}{z, \tau} \left[ z^\top z \right] + 2\mathbb{E}{z, \tau} \left[ z^\top (\phi(s_T) - \phi(s_0)) \right] - | \phi(s_T) - \phi(s_0) |^2.
]
Combining the constant terms, we get:
[
-\mathbb{E}{z, \tau} \left[ |z - (\phi(s_T) - \phi(s_0))|^2 \right] + (\text{const}) = \mathbb{E}_{z, \tau} \left[ z^\top (\phi(s_T) - \phi(s_0)) \right] - | \phi(s_T) - \phi(s_0) |^2 + (\text{const}).
]
Thus, the deduction follows by applying the linearity of expectation and properties of inner products and norms.