Amazon Interview Question

Difference between linear regression and t-test