Ed
há 3 meses
Para determinar qual das hipóteses \( h_0(x) \) ou \( h_1(x) \) tem o maior custo usando o erro quadrático médio, você deve seguir os seguintes passos: 1. Calcular as previsões: - Para \( h_0(x) = -20 + 0,5x \): \[ h_0(60) = -20 + 0,5 \times 60 = -20 + 30 = 10 \] - Para \( h_1(x) = -10 + 0,2x \): \[ h_1(60) = -10 + 0,2 \times 60 = -10 + 12 = 2 \] 2. Calcular o erro para cada hipótese: - O erro é dado por \( \text{erro} = y - h(x) \). - Para \( h_0 \): \[ \text{erro}_0 = 10 - 10 = 0 \] - Para \( h_1 \): \[ \text{erro}_1 = 10 - 2 = 8 \] 3. Calcular o erro quadrático: - Para \( h_0 \): \[ \text{erro quadrático}_0 = 0^2 = 0 \] - Para \( h_1 \): \[ \text{erro quadrático}_1 = 8^2 = 64 \] 4. Comparar os custos: - O custo associado a \( h_0 \) é 0 e o custo associado a \( h_1 \) é 64. Portanto, a hipótese \( h_1(x) \) tem o maior custo.