Find $a, b, c$ minimizing MSE

Suppose you are given a dummy classifier. It looks like this: $$ y(x) = \begin{cases} a \text{ if } x = c \\ b \text{ else } \end{cases} $$

Given some data set $\{(y_1, x_1), \dots (y_n, x_n)\}$ how to estimate $a, b, c$ such that the MSE would be minimal?

Topic mse linear-regression regression

Category Data Science

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.