linear regression ls to mmse interactive