Answer:
the minimal loss of the optimal prediction would be g = 0
Explanation:
From the given question, we formulate y and g to be:
![y =\begin{cases} 1, & \text{rain with probability 0.1} \\ 0, & \text{rain with probability 0.9} \end{cases}](https://img.qammunity.org/2021/formulas/mathematics/college/biv45p8notsj2ni30nj67st26e5cz5it5m.png)
![g =\begin{cases} 1, & \text{if we guess it will rain} \\ 0, & \text{if we guess it will not rain} \end{cases}](https://img.qammunity.org/2021/formulas/mathematics/college/5djnlumntp9avdz81fz1xynkm9tgfmgzjd.png)
Loss function = L(y.g)
The expected loss for g = 1 & g = 0 can now be determined as follows:
When g = 1; ( i.e. guess it will rain)
The expected loss = L(1,1) × Probability (y = 1) + L(0,1) × Probability (y = 0)
The expected loss = 0 × 0.1 + 100 × 0.9
The expected loss = $90
When g = 0; ( i.e. guess it will not rain)
The expected loss = L(1,0) × Probability (y = 1) + L(0,0) × Probability (y = 0)
The expected loss = 500 × 0.1 + 0 × 0.9
The expected loss = $50
Therefore, the minimal loss of the optimal prediction would be g = 0 i.e it will not rain on the day of the child's birthday.