If you're thinking of a new laptop, you might wonder how much you should pay for one. You could sift through websites, but some Python code and a little linear regression could make the job easier.