A convex optimization formulation for multivariate regression