linear regression scripts and results