When should you use a t-test vs a z-test?
The z-test is used for hypothesis testing in statistics with a normal distribution. It is used to determine population variance in the case where a sample is large.
The t-test is used with a t-distribution and used to determine population variance when you have a small sample size.
In case the sample size is large or n>30, a z-test is used. T-tests are helpful when the sample size is small or n<30.