MATLAB: Is the equation of the line of best fit incorrect

lsline

I've projected a line of best fit using the linear basic fitting option onto my graph.Why does the equation of the line have a y-intercept of -30 when it clearly crosses the Y-axis at -5.5? Attached is m graph.

Best Answer

Your graph doesn't show the y-intercept. The x-axis range starts at 1900, rather than zero.