Degrees of freedom refer to the number of values in the final calculation of a statistic that are free to vary. As degrees of freedom increase, the graph of a t-distribution approaches the standard normal distribution. A z-test is used when the population standard deviation is known, while a t-test is used when the population standard deviation is unknown. The critical value is obtained from statistical tables and compared to the test statistic calculated from the sample data.