The z-score is a measure of how many standard deviations an element is from the mean. We can calculate it using the formula:
$$
Z = \frac{X - \mu}{\sigma}
$$
where X is the value we are interested in, $\mu$ is the mean, and $\sigma$ is the standard deviation.
Show more…