Existence of least squares and maximum likelihood estimators? In statistical parameter estimation where there is a deterministic and stochastic component to the observation-generating model, do least squares and maximum likelihood estimators always exist? Solving inverse problems more generally begins with the question of existence but in this case, these estimators are defined by objective functions to be minimized or maximized - would there not always be a solution that is "closest" to the data even if the model is not a good descriptor of the data. So can we say that the solution always exists? I am not certain why here it says that for existence of the MLE, the likelihood function should be continuous and the domain of the parameter compact (unless the estimator must be expressed analytically?).
Furthermore, since least squares estimators don't make any statements about the statistical distribution of errors/residuals (unless you are trying to make a statement about its bias or variance), solutions would always exist for even non-linear least squares problems. Is this correct?
 A: The likelihood being continuous over a compact parameter space is a sufficient but not necessary condition for the MLE to exist. This means that whenever you have a likelihood that is continuous and a parameter space that is compact, you know for sure that a MLE exists - but the MLE can also exist in other cases. For instance, if the likelihood is twice differentiable, concave and its gradient is zero somewhere, the MLE will also exist.
For example, imagine you have a sample of Bernoulli experiments (e.g. a few coin tosses, where we code heads as 1 and tails as 0). If we consider our parameter (the probability of getting heads) as being any $0\leq\theta\leq1$ and we got zero heads, we get MLE $\hat\theta=0$. Had we considered the parameter being $0<\theta<1$, the MLE would not exist: the closer $\hat\theta$ gets to zero, the larger the likelihood would get, but zero is not an option in the parameter space.
That being said, all likelihoods used in practice have a well defined MLE, even if they cannot be expressed analytically and have to be found numerically. (Perhaps there is some obscure exception for this that I'm not aware of)
About least squares: in all cases I can think of, least squares methods will reveal a convex optimization problem for which a solution always exists. Again, maybe there is some obscure exception, but I've never found one in practice.
Hope I was helpful!
