I'm going through the Stanford AI course on Coursera (like many others with similar questions). For univariate linear regression, supposedly there is only one (global) minimum for the cost function (squared error). I assume this can be proven mathematically and is also apparent based on the graph of the cost function, but I have a doubt about it intuitively.
Imagine that your data takes the shape of a symmetrical "X." In this case, wouldn't there be two optimal solutions/parameters (e.g. for slope): one positive and one negative?
Cheers!