Let's go through the problem step by step:
2.1 MMSE Objective Function
The Mean Minimum Square Error (MMSE) objective function aims to minimize the error between the predicted and actual values. For this problem, we want to minimize:
[
J(\mathbf{w}) = \frac{1}{2} \sum_{i=1}^{2} (y_i - (w_0 x_{i1} + w_1 x_{i2}))^2
]
Plugging in the given data points:
- Data point (d_1): ((1, 0)), with (y = 1)
- Data point (d_2): ((0, 1)), with (y = 1)
The objective function becomes:
[
J(\mathbf{w}) = \frac{1}{2} \left[ (1 - w_0)^2 + (1 - w_1)^2 \right]
]
To find the optimal solution ((w_0, w_1)), we need to minimize (J(\mathbf{w})). Since this is a simple quadratic function, the minimum can be found using calculus. Setting the partial derivatives equal to zero:
[
\frac{\partial J}{\partial w_0} = -(1-w_0) = 0 \quad \Rightarrow \quad w_0 = 1
]
[
\frac{\partial J}{\partial w_1} = -(1-w_1) = 0 \quad \Rightarrow \quad w_1 = 1
]
So the optimal solution is ((w_0, w_1) = (1, 1)).
2.2 Lagrangian Function
To add a regularization constraint of (|\mathbf{w}|^2 \leq C), the Lagrangian function (L(\mathbf{w}, \lambda)) with Lagrange multiplier (\lambda) is:
[
L(\mathbf{w}, \lambda) = J(\mathbf{w}) + \lambda (|\mathbf{w}|^2 - C)
]
Substituting our objective function and constraint:
[
L(\mathbf{w}, \lambda) = \frac{1}{2} \left[ (1 - w_0)^2 + (1 - w_1)^2 \right] + \lambda (w_0^2 + w_1^2 - C)
]
2.3 KKT Conditions
The Karush-Kuhn-Tucker (KKT) conditions for this problem include:
- Stationarity: (\nabla_{\mathbf{w}} L = 0)
- Primal feasibility: (|\mathbf{w}|^2 \leq C)
- Dual feasibility: (\lambda \geq 0)
- Complementary slackness: (\lambda (|\mathbf{w}|^2 - C) = 0)
Let's use these to find (\mathbf{w}^*) for different (C).
Case (1): (C = 0.5)
Given the function is quadratic and positive-definite, ((1,1)) is outside the hypersphere defined by (|\mathbf{w}|^2 \leq 0.5). Hence, the constraint is active, (|\mathbf{w}|^2 = 0.5), and (\lambda > 0).
We need to find (\mathbf{w}^*) on the boundary. The stationarity condition gives us:
[
\begin{align*}
\frac{\partial L}{\partial w_0} &= -(1-w_0) + 2 \lambda w_0 = 0 \
\frac{\partial L}{\partial w_1} &= -(1-w_1) + 2 \lambda w_1 = 0
\end{align*}
]
Solve the equations:
From (-(1-w_0) + 2 \lambda w_0 = 0):
[
1 - w_0 = 2\lambda w_0 \quad \Rightarrow \quad w_0(1 + 2\lambda) = 1 \quad \Rightarrow \quad w_0 = \frac{1}{1 + 2\lambda}
]
The same result holds for (w_1), so we can write:
[
(w_0, w_1) = \left(\frac{1}{1+2\lambda}, \frac{1}{1+2\lambda}\right)
]
The constraint (|\mathbf{w}^*|^2 = 0.5) gives:
[
2 \left(\frac{1}{1+2\lambda}\right)^2 = 0.5 \quad \Rightarrow \quad \frac{2}{(1+2\lambda)^2} = 0.5 \quad \Rightarrow (1+2\lambda)^2 = 4 \quad \Rightarrow \quad 1+2\lambda = 2
]
[
\lambda = 0.5
]
Hence, ((w_0, w_1) = \left(\frac{1}{2}, \frac{1}{2}\right)).
Case (2): (C = 1)
The contour for (|\mathbf{w}|^2 = 1) is still active like in the previous case. By solving, we find (1+2\lambda = \sqrt{2}), so:
[
\lambda = \frac{\sqrt{2}-1}{2}, \quad (w_0, w_1) = \left(\frac{1}{\sqrt{2}}, \frac{1}{\sqrt{2}}\right)
]
Case (3): (C = 2, 3)
For these cases, ((1, 1)) is within the constraint, so:
[
\mathbf{w}^* = (1, 1) \quad \text{and} \quad \lambda = 0
]
In summary, for the constraint (|\mathbf{w}|^2 \leq C):
- (C = 0.5): ((w_0, w_1) = \left(\frac{1}{2}, \frac{1}{2}\right))
- (C = 1): ((w_0, w_1) = \left(\frac{1}{\sqrt{2}}, \frac{1}{\sqrt{2}}\right))
- (C \geq 2): ((w_0, w_1) = (1, 1))