Y hat (prediction)
Say it: "y hat"
What it means
A hat means "an estimate of": is the model's prediction of the true value ; is an estimated parameter.
Example
In code
import numpy as np y = np.array([3.0, 5.0, 8.0]) y_hat = np.array([3.2, 4.9, 7.1]) print("errors:", (y - y_hat).round(2), "MSE:", round(np.mean((y - y_hat) ** 2), 3))
Output
errors: [-0.2 0.1 0.9] MSE: 0.287
Where it appears in machine learning
Losses compare with : MSE .
Related symbols
Learn it properly in the free lesson Optimisation, with practice questions that check your answers.