View Single Post
  #4  
Old 04-27-2013, 12:31 AM
Elroch Elroch is offline
Invited Guest
 
Join Date: Mar 2013
Posts: 143
Default Re: Linear regression question

If I understand correctly, you have some data you are trying to do linear regression on, but you also have some knowledge of the form of the solution?

Well, first you could find the solution if the constraints were not there. If this happens to satisfy the constraints, you are done.

If it doesn't, the solution must lie on the boundary defined by the constraints, given some assumptions. If the constraints are simple enough, you may be able to rewrite your problem with the knowledge that it is on the boundary. For example if you wanted a 1-dimensional linear regression solution and knew the intercept with the y-axis had to be positive, but linear regression gave a unique solution with the intercept as negative (due presumably to noise in the data, I believe the constrained solution would have to have an intercept at zero.
Reply With Quote