In my book I have here that $\hat\beta=(X'X)^{-1}X'Y$, and that's fine and dandy, but I have a maybe dumb question regarding this.
So these $β$s are the coefficients that we must obtain from our model, but is this saying that we can obtain these coefficients simply using the formula above?
If yes, isn't this basically what we're trying to do in regression? Aren't we simply trying to find a good model and find the perfect values for the coefficients to get what we want, and we can figure that out through just this simple equation?
I guess I'm just a little confused about what we're trying to do here, if none of this makes sense let me know and it'll try to re-word it to the best of my ability