Meta Interview Question

When do you use t-test and z-test?