A line y^=−41+0.6x predicts weight in kg from height in cm. A person 170 cm tall is predicted to weigh −41+0.6(170)=61 kg. If they actually weigh 65 kg, the residual is 65−61=+4 kg: on the scatter plot, a vertical segment 4 units long from the line up to the point. Someone else of the same height who weighs 58 kg has a residual of −3 and sits 3 units below the line.
Order matters: always observed minus predicted. Positive means the model guessed too low; negative means too high. Because the least-squares line balances the points above it against those below, the residuals always sum to exactly zero, so their plain total says nothing about fit. To measure overall error, square them first; the least-squares line is the one that makes ∑ei2 as small as possible.
Plot each residual against x and look for a pattern. A shapeless band around zero means the line has captured the trend. A U-shape, with positive residuals at both ends and negative ones in the middle, means the data curve and a straight line is the wrong model, even if every residual is small. A fan that widens to the right means predictions grow less reliable as x grows.
A residual is not a deviation from the mean. The 65 kg person is 65−55=10 kg above the sample's mean weight of 55 kg, but only 4 kg above the prediction for their height. A deviation compares with the average of everyone; a residual compares with people of the same x.
Think of it like this. A residual is like the gap between a weather forecast and the actual temperature. Forecast 20 °C, actual 23 °C: the forecast was 3 degrees too low, a residual of +3. One gap says little, but a forecast that is too low every afternoon reveals a flaw in the model, just as a pattern in a residual plot does.
Core idea. A residual is how far one data point falls above or below the regression line: e=y−y^.