How to calculate and use z scores. The z-score is a statistical measure of the difference between two randomly drawn samples.