To find the Minimum Mean Square Error (MMSE) estimate of (X) given (S), we need to find the conditional expectation (E[X|S]). The MMSE estimate is given by this conditional expectation because it minimizes the mean square error between the estimate and the true value of (X).
Given that (S = X + Z), and (X) and (Z) are independent, we first find the distribution of (S). Since (X \sim \text{Uniform}[0,1]) and (Z \sim \text{Uniform}[0,2]), the sum (S) will have a distribution that is the convolution of the distributions of (X) and (Z).
The probability density function (pdf) of (X) is (f_X(x) = 1) for (0 \leq x \leq 1), and the pdf of (Z) is (f_Z(z) = \frac{1}{2}) for (0 \leq z \leq 2).
The pdf of (S), (f_S(s)), is the convolution of (f_X(x)) and (f_Z(z)):
[f_S(s) = \int_{-\infty}^{\infty} f_X(x) f_Z(s-x) dx.]
Since (X) and (Z) are defined over ([0,1]) and ([0,2]) respectively, the integral limits can be adjusted to reflect the regions where the functions are non-zero:
[f_S(s) = \int_{0}^{1} f_X(x) f_Z(s-x) dx.]
Substituting the pdfs:
[f_S(s) = \int_{0}^{1} 1 \cdot \frac{1}{2} dx = \frac{1}{2} \int_{0}^{1} dx = \frac{1}{2},]
for (0 \leq s \leq 3), because the maximum value (S) can take is when (X) and (Z) are at their maximum, which is (1 + 2 = 3), and the minimum is (0 + 0 = 0).
However, to accurately describe (f_S(s)), we need to consider the shape of the convolution over the interval ([0,3]). For (0 \leq s \leq 1), the convolution increases linearly from (0) to (\frac{1}{2}), for (1 \leq s \leq 2), it remains constant at (\frac{1}{2}), and for (2 \leq s \leq 3), it decreases linearly back to (0). Thus, the pdf of (S) can be described piecewise:
[f_S(s) = \begin{cases}
s & \text{for } 0 \leq s \leq 1, \
\frac{1}{2} & \text{for } 1 \leq s \leq 2, \
\frac{3-s}{2} & \text{for } 2 \leq s \leq 3.
\end{cases}]
To find (E[X|S]), we use the formula:
[E[X|S=s] = \frac{\int_{-\infty}^{\infty} x f_{X,S}(x,s) dx}{f_S(s)}.]
Since (X) and (Z) are independent, (f_{X,S}(x,s) = f_X(x) f_Z(s-x)). Substituting the pdfs of (X) and (Z), and considering the support of (X) and (Z), we get:
[E[X|S=s] = \frac{\int_{0}^{1} x \cdot 1 \cdot \frac{1}{2} dx}{f_S(s)} = \frac{\frac{1}{4}}{f_S(s)},]
for the region where (f_S(s)) is defined.
However, the correct approach to find (E[X|S]) involves using the conditional density (f_{X|S}(x|s)), which requires the joint density (f_{X,S}(x,s)) and the marginal density (f_S(s)). Given (S = X + Z), and (X) and (Z) are independent, the conditional expectation (E[X|S]) can be derived by considering the geometry of the problem and the properties of uniform distributions.
For a given (S = s), (X) can take values in ([0, \min(1, s)]) because (Z) can take values in ([0, 2]) and (S = X + Z). The conditional density (f_{X|S}(x|s)) is uniform over this interval, scaled by the ratio of the lengths of the intervals ([0,1]) and ([0, \min(1, s)]), but since we are looking for (E[X|S]), we integrate (x) times this density over the possible values of (X) given (S = s).
Given the complexity of directly computing (E[X|S]) through integration and considering the uniform distributions, a simpler approach to find the MMSE estimate is to use the property that for a uniform distribution, the conditional mean given a linear combination (like (S = X + Z)) can be derived based on the geometry of the uniform distributions and the line (S = X + Z).
The MMSE estimate (E[X|S]) for (X \sim \text{Uniform}[0,1]) and (Z \sim \text{Uniform}[0,2]) can be intuitively understood as follows: Given (S), (X) is uniformly distributed over the interval that satisfies (S = X + Z), considering the constraints of (X) and (Z).
To simplify, consider the expected value of (X) given (S = s), which due to the linearity of expectation and the uniform nature of (X) and (Z), can be related to the midpoint of the interval of possible (X) values given (S).
For (0 \leq s \leq 1), the possible values of (X) are in ([0, s]), and for (1 \leq s \leq 2), (X) can be in ([0, 1]), and for (2 \leq s \leq 3), (X) is in ([s-2, 1]).
Thus, the MMSE estimate (E[X|S=s]) can be calculated based on these intervals and the uniform distribution of (X) given (S). For instance, when (0 \leq s \leq 1), (E[X|S=s] = \frac{s}{2}) because (X) is uniformly distributed over ([0, s]), and similarly, we can derive expressions for the other ranges of (s).
Given the uniform distributions and the independence of (X) and (Z), and considering the line (S = X + Z), the MMSE estimate (E[X|S]) reflects the expected value of (X) given the constraint (S = X + Z), and it can be shown that:
[E[X|S=s] = \begin{cases}
\frac{s}{2} & \text{for } 0 \leq s \leq 1, \
\frac{1}{2} & \text{for } 1 \leq s \leq 2, \
\frac{3-s}{2} & \text{for } 2 \leq s \leq 3.
\end{cases}]
This expression for (E[X|S=s]) provides the MMSE estimate of (X) given (S=s), taking into account the uniform distributions of (X) and (Z) and their independence.