Answer:
the minimal loss of the optimal prediction would be g = 0
Explanation:
From the given question, we formulate y and g to be:


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.