Adaptive linear regression