Calculate a z score and interpret its sign and size in the context of the original measurements.
Quick Answer
A Z score, also known as a standard score, tells you how far away a particular data point is from the mean of a data set, measured in terms of standard deviations.
Advertisement
Z score is a statistical measure that indicates how many standard deviations a data point is from the mean of a data set. It is a useful tool for understanding the relative position of data points within a distribution. Whether you are analyzing test scores, financial data, or any other dataset, learning how to calculate a Z score can help you make informed comparisons and interpretations. In this blog post, we will explore how to calculate Z scores, why they are important, and answer some frequently asked questions about Z scores.
What is a Z Score?
A Z score, also known as a standard score, tells you how far away a particular data point is from the mean of a data set, measured in terms of standard deviations. A positive Z score indicates that the data point is above the mean, while a negative Z score indicates that the data point is below the mean.
The formula and its conditions
, where X is the observed value, μ is the reference population mean and σ is its standard deviation, with σ > 0. The result is unitless. A descriptive sample-standardized score uses , with s > 0.
Standardization works for any distribution with a finite mean and positive finite standard deviation; it does not turn a skewed distribution into a normal one. Normal-table probabilities need an appropriate normal model.
Correction to the two original screenshots below
The screenshots use a separate dataset: 5, 8, 12, 15, 18. Its mean is 11.6 and squared deviations sum to 109.2. The population variance is 21.84, so , or 4.67 to two decimal places, not the 4.66 arithmetic error shown in both illustrations.
For X = 15, use the unrounded standard deviation: . The displayed final z score of 0.73 is still correct to two decimal places. The screenshots are retained for context; this corrected calculation supersedes their 4.66 value. Both screenshots treat their five values as the complete population.
Corrected result for the screenshots above: 5, 8, 12, 15, 18 have mean 11.6, squared-deviation sum 109.2, population variance 21.84 and standard deviation √21.84 ≈ 4.6733. For 15, z = 3.4/√21.84 ≈ 0.7275, which rounds to 0.73. Use these values instead of the screenshots’ 4.66.
Step-by-Step Guide to Calculate Z Score
Step 1: Find the Mean (Average)
The first step in calculating a Z score is to determine the mean (average) of the data set. Add all the data points together and divide by the number of data points.
Example: Treat [10, 15, 20, 25, 30] as the complete population of interest, not a sample estimate.
Next, calculate the standard deviation of the data set. The standard deviation measures the dispersion of data points around the mean. Use the worked standard deviation steps to follow the deviations from the mean before taking the square root.
Example:
Step 1: Subtract the mean from each data point and square the result.
(10 – 20)² = 100
(15 – 20)² = 25
(20 – 20)² = 0
(25 – 20)² = 25
(30 – 20)² = 100
Step 2: Find the average of these squared differences.
Sum = 100 + 25 + 0 + 25 + 100 = 250
Variance = 250 / 5 = 50
Step 3: Take the square root of the variance to find the standard deviation (σ).
Standard Deviation (σ) = √50 ≈ 7.07
Step 3: Use the Z Score Formula
Now that you have the mean and standard deviation, you can calculate the Z score for any data point in the data set.
Example: Calculate the Z score for the value 25.
Z = (X – μ) / σ
, which rounds to 0.71. Keep the unrounded standard deviation until the final step.
Final Answer: The Z score for the value 25 is approximately 0.71.
If these five values are a sample
The sample mean is still 20, but the usual sample variance is , and . The descriptive standardized score for 25 is then . State which reference and standard-deviation convention you use. This individual-value score is not the same as a hypothesis-test statistic for a sample mean, whose denominator uses a standard error. Use the confidence intervals for means and proportions to check the range implied by a sample estimate and its margin of error.
Interpreting Z Scores
Z = 0: The data point is equal to the mean.
Z > 0: The data point is above the mean.
Z < 0: The data point is below the mean.
Z > 2 or Z < -2: The value is more than two reference standard deviations from the mean. This can prompt investigation, but it is not a universal outlier test; consider distribution shape, sample size and context.
Importance of Z Scores
Standardization: Z scores compare standardized distance from appropriate reference means across units or scales. They do not necessarily compare percentiles when distribution shapes differ.
Identify Outliers: Z scores can flag possible outliers for investigation. Mean and standard deviation are themselves sensitive to extreme values; a flag alone is not a reason to delete data.
Probability Calculation: Z scores are used in normal distribution to determine the probability of a data point occurring within a certain range.
Examples of Calculating Z Scores
Example 1: In a class, the average test score is 75 with a standard deviation of 10. If a student scored 85, what is their Z score?
Mean (μ) = 75
Standard Deviation (σ) = 10
Data Point (X) = 85
Z = (X – μ) / σ = (85 – 75) / 10 = 1
Final Answer: The Z score is 1.
Example 2: The average monthly rent in a city is $1,200 with a standard deviation of $150. If a particular apartment has a rent of $1,500, what is the Z score?
Mean (μ) = 1,200
Standard Deviation (σ) = 150
Data Point (X) = 1,500
Z = (X – μ) / σ = (1,500 – 1,200) / 150 = 2
Final Answer: The Z score is 2.
Frequently Asked Questions about Z Score
Q1: What is the formula for calculating a Z score?
The formula for a Z score is , requiring σ > 0:
Where X is the value of the data point, μ is the mean, and σ is the standard deviation.
Q2: What does a Z score tell you?
A Z score indicates how many standard deviations a data point is from the mean. It helps in understanding the relative position of the data point within the distribution.
Q3: Can a Z score be negative?
Yes, a Z score can be negative if the data point is below the mean. A negative Z score indicates that the value is less than the average.
Q4: What is a good Z score?
A Z score close to 0 means the data point is near the mean. There is no universally “good” Z score: whether high or low is desirable depends on the measured outcome. Values beyond ±2 may merit investigation under an approximately normal model, but are not automatically errors or outliers.
Q5: How are Z scores used in real life?
Z scores are used in many fields, such as finance (to assess risk), education (to compare test scores), and healthcare (to analyze patient data relative to norms).
Q6: How do you interpret a Z score of 1.5?
A Z score of 1.5 means the data point is 1.5 standard deviations above the mean.
Q7: What is the difference between a Z score and a percentile?
A Z score measures the number of standard deviations away from the mean, while a percentile describes relative rank in a distribution (with conventions for ties). A Z score alone does not determine a percentile without distributional information. Under a standard normal model, z = 1 is approximately the 84.13th percentile and z = 2 the 97.72nd percentile.
Q8: Can Z scores be used for skewed distributions?
Yes, with a finite mean and positive finite standard deviation, the score still measures standardized distance for a skewed distribution. It does not remove the skew or justify using a standard normal table. Use the actual distribution or empirical ranks for percentiles. Use the z-score and percentile calculator to express a value in standard deviations from the mean.
Q9: How do you calculate Z score without standard deviation?
You need both the mean and the standard deviation to calculate a Z score. The standard deviation must be positive; if all reference values are identical, it is zero and the Z score is undefined. Do not divide by zero.
Q10: What is the Z score for the mean value?
For a positive standard deviation, the Z score for the mean value is 0 because it represents the point that is exactly at the average of the distribution.
Conclusion
Calculating the Z score is a valuable skill in statistics that helps you understand the relative position of data points within a distribution. By using the Z score formula, you can determine how far a value is from the mean and make informed decisions based on that information. Whether you’re comparing test scores, analyzing financial data, or interpreting survey results, Z scores provide a standardized way to measure and compare data.
Now that you know how to calculate Z scores, try using them in your own data analysis projects to better understand the significance of different values within your data sets.
Advertisement
Compare scores measured on different scales
A runner records a time of fifty-four seconds in a group with mean sixty seconds and standard deviation three seconds. The difference is negative six seconds. Dividing by three seconds gives a z score of negative two. This means the runner is two standard deviations below the mean time. A lower time is faster, so the negative sign can describe a strong performance.
Standardized Scores
When we want to apply the 68-95-99.7 Rule, we must first figure out how many standard deviations above or below the mean our data fall. This calculation is common enough that it has its own name: the standardized score. Values above the mean have positive standardized scores, while those below the mean have negative standardized scores. Since it's common to use the letter to represent a standard score, this value is also often referred to as a -score.
So far, we’ve only really considered -scores that are whole numbers, but in general they can be any number at all. For example, if we have data that are normally distributed with mean 80 and standard deviation 6, the value 85 is five units above the mean, which is less than one standard deviation. Dividing by the standard deviation, we get . Since 85 is of one standard deviation above the mean, we’d say that the standardized score for 85 is (which is positive, since ). This calculation describes the way we compute standardized scores.
Standardizing Data
Suppose we have data that are normally distributed with mean 50 and standard deviation 6. Compute the standardized scores (rounded to three decimal places) for these data values:
52
40
68
Solution
For each of these, we’ll plug the given values into the formula. Remember, the mean is and the standard deviation is :
Converting Standardized Scores to Original Values
Suppose we have data that are normally distributed with mean 10 and standard deviation 2. Convert the following standardized scores into data values.
1.4
−0.9
3.5
Solution
We’ll use the formula previously introduced to convert -scores into -values. In this case, the mean is and the standard deviation is :
The Normal Distribution
In the coin flipping example above, the distribution of the number of heads for 10,000 trials was close to perfectly symmetric and bell-shaped:
Because distributions with this shape appear so often, we have a special name for them: normal distributions. Normal distributions can be completely described using two numbers we’ve seen before: the mean of the data and the standard deviation of the data. You may remember that we described the mean as a measure of centrality; for a normal distribution, the mean tells us exactly where the center of the distribution falls. The peak of the distribution happens at the mean (and, because the distribution is symmetric, it’s also the median). The standard deviation is a measure of dispersion; for a normal distribution, it tells us how spread out the histogram looks. To illustrate these points, let’s look at some examples.
Identifying the Mean of a Normal Distribution
This graph shows three normal distributions. What are their means?
Solution
Step 1: Take a look at the three curves on the graph. Since the mean of a normal distribution occurs at the peak, we should look for the highest point on each distribution. Let’s draw a line from each curve's peak down to the axis, so we can see where these peaks occur:
Step 2: The peak of the red (leftmost) distribution occurs over the number 1 on the horizontal axis. Thus, the mean of the red distribution is 1. Similarly, the mean of the blue (middle) distribution is 2, and the mean of the yellow (rightmost) distribution is 3.
Identifying the Standard Deviation of a Normal Distribution
This graph shows three distributions, all with mean 2. What are their standard deviations?
Solution
Step 1: Identifying the standard deviation from a graph can be a little bit tricky. Let’s focus in on the yellow (lowest peaked) curve:
Step 2: Notice that the graph curves downward in the middle, and curves upwards on the ends. Highlighted in red is the part that curves downward and in green, the part that curves upward:
Step 3: The places where the graph changes from curving up to curving down (or vice versa) are called inflection points. Let’s identify where those occur by dropping a line straight down from each:
Step 4: We can estimate that the inflection points occur at and ; the mean is at (as shown by the middle dotted line). The difference between the mean and the location of either inflection point is the standard deviation; since , we conclude that the standard deviation of the green distribution is 3.
Step 5: Now, looking at the other two graphs, let's first identify the inflection points:
Step 6: The red (tallest peaked) distribution has inflection points at 1 and 3, and the mean is 2. Thus, the standard deviation of the red distribution is . The blue (lower peaked) distribution has inflection points at 0 and 4, and its mean is also 2. So, the standard deviation of the blue distribution is 2.
Let’s put it all together to identify a completely unknown normal distribution.
Identifying the Mean and Standard Deviation of a Normal Distribution
Using the graph, identify the mean and standard deviation of the normal distribution.
Solution
Step 1: Let’s start by putting dots on the graph at the peak and at the inflection points, then drop lines from those points straight down to the axis:
Step 2: From the red (middle) line, we can see that the mean of this distribution is 55. The blue (outermost) lines are each 3 units away from the mean (at 52 and 58), so the standard deviation is 3.
Properties of Normal Distributions: The 68-95-99.7 Rule
The most important property of normal distributions is tied to its standard deviation. If a dataset is perfectly normally distributed, then 68% of the data values will fall within one standard deviation of the mean. For example, suppose we have a set of data that follows the normal distribution with mean 400 and standard deviation 100. This means 68% of the data would fall between the values of 300 (one standard deviation below the mean: ) and 500 (one standard deviation above the mean: ). Looking at the histogram below, the shaded area represents 68% of the total area under the graph and above the axis:
Since 68% of the area is in the shaded region, this means that of the area is found in the unshaded regions. We know that the distribution is symmetric, so that 32% must be divided evenly into the two unshaded tails: 16% in each.
Of course, datasets in the real world are never perfect; when dealing with actual data that seem to follow a symmetric, bell-shaped distribution, we’ll give ourselves a little bit of wiggle room and say that approximately 68% of the data fall within one standard deviation of the mean.
The rule for one standard deviation can be extended to two standard deviations. Approximately 95% of a normally distributed dataset will fall within 2 standard deviations of the mean. If the mean is 400 and the standard deviation is 100, that means 95% calculation describes the way we compute standardized scores. (two standard deviations below the mean: ) and 600 (two standard deviations above the mean: ). We can visualize this in the following histogram:
As before, since 95% of the data are in the shaded area, that leaves 5% of the data to go into the unshaded tails. Since the histogram is symmetric, half of the 5% (that’s 2.5%) is in each.
We can even take this one step further: 99.7% of normally distributed data fall within 3 standard deviations of the mean. In this example, we’d see 99.7% of the data between 100 (calculated as ) and 700 (calculated as ). We can see this in the histogram below, although you may need to squint to find the unshaded bits in the tails!
This observation is formally known as the 68-95-99.7 Rule.
Using the 68-95-99.7 Rule to Find Percentages
If data are normally distributed with mean 8 and standard deviation 2, what percent of the data falls between 4 and 12?
If data are normally distributed with mean 25 and standard deviation 5, what percent of the data falls between 20 and 30?
If data are normally distributed with mean 200 and standard deviation 15, what percent of the data falls between 155 and 245?
Solution
Let’s look at a table that sets out the data values that are even multiples of the standard deviation (SD) above and below the mean:
Mean
2
4
6
8
10
12
14
Since 4 and 12 represent two standard deviations above and below the mean, we conclude that 95% of the data will fall between them.
Let’s build another table:
Mean
10
15
20
25
30
35
40
We can see that 20 and 30 represent one standard deviation above and below the mean, so 68% of the data fall in that range.
Let’s make one more table:
Mean
155
170
185
200
215
230
245
Since 155 and 245 are three standard deviations above and below the mean, we know that 99.7% of the data will fall between them.
Using the 68-95-99.7 Rule to Find Data Values
If data are distributed normally with mean 100 and standard deviation 20, between what two values will 68% of the data fall?
If data are distributed normally with mean 0 and standard deviation 15, between what two values will 95% of the data fall?
If data are distributed normally with mean 14 and standard deviation 2, between what two values will 99.7% of the data fall?
Solution
The 68-95-99.7 Rule tells us that 68% of the data will fall within one standard deviation of the mean. So, to find the values we seek, we’ll add and subtract one standard deviation from the mean: and . Thus, we know that 68% of the data fall between 80 and 120.
Using the 68-95-99.7 Rule again, we know that 95% of the data will fall within 2 standard deviations of the mean. Let’s add and subtract two standard deviations from that mean: and . So, 95% of the data will fall between -30 and 30.
Once again, the 68-95-99.7 Rule tells us that 99.7% of the data will fall within three standard deviations of the mean. So, let’s add and subtract three standard deviations from the mean: and . Thus, we conclude that 99.7% of the data will fall between 8 and 20.
There are more problems we can solve using the 68-95-99.7 Rule. but first we must understand what the rule implies. Remember, the rule says that 68% of the data falls within one standard deviation of the mean. Thus, with normally distributed data with mean 100 and standard deviation 10, we have this distribution:
Since we know that 68% of the data lie within one standard deviation of the mean, the implication is that 32% of the data must fall beyond one standard deviation away from the mean. Since the histogram is symmetric, we can conclude that half of the 32% (or 16%) is more than one standard deviation above the mean and the other half is more than one standard deviation below the mean:
Further, we know that the middle 68% can be split in half at the peak of the histogram, leaving 34% on either side:
So, just the “68” part of the 68-95-99.7 Rule gives us four other proportions in addition to the 68% in the rule. Similarly, the “95” and “99.7” parts each give us four more proportions:
We can put all these together to find even more complicated proportions. For example, since the proportion between 100 and 120 is 47.5% and the proportion between 100 and 110 is 34%, we can subtract to find that the proportion between 110 and 120 is :
Finding Other Proportions Using the 68-95-99.7 Rule
Assume that we have data that are normally distributed with mean 80 and standard deviation 3.
What proportion of the data will be greater than 86?
What proportion of the data will be between 74 and 77?
What proportion of the data will be between 74 and 83?
Solution
Before we can answer these questions, we must mark off sections that are multiples of the standard deviation away from the mean:
To figure out what proportion of the data will be greater than 86, let's start by shading in the area of data that are above 86 in our figure, or the data more than two standard deviations above the mean.
We saw in diagram that this proportion is 2.5%.
To figure out what proportion of the data will be between 74 and 77, let's start by shading in that area of data. These are data that are more than one but less than two standard deviations below the mean.
From diagram, we know that the proportion of data less than two standard deviations below the mean is 47.5%. And, from YOUR TURN 8.33, we know that 34% of the data is less than one standard deviation below the mean:
Subtracting, we see that the proportion of data between 74 and 77 is 13.5%.
To figure out what proportion of the data will be between 74 and 83, let's start by shading in that area of data in our figure.
Next, we'll break this region into two pieces at the mean:
From diagram, we know the blue (leftmost) region represents 47.5% of the data. And, using YOUR TURN 8.33, we get that the red (rightmost) region covers 34% of the data. Adding those together, the proportion we want is 81.5%.
Using Google Sheets to Find Normal Percentiles
The 68-95-99.7 Rule is great when we’re dealing with whole-number -scores. However, if the -score is not a whole number, the Rule isn’t going to help us. Luckily, we can use technology to help us out. We’ll talk here about the built-in functions in Google Sheets, but other tools work similarly.
Let’s say we’re working with normally distributed data with mean 40 and standard deviation 7, and we want to know at what percentile a data value of 50 would fall. That corresponds to finding the proportion of the data that are less than 50. If we create our histogram and mark off whole-number multiples of the standard deviation like we did before, we’ll see why the 68-95-99.7 Rule isn’t going to help:
Since 50 doesn’t line up with one of our lines, the 68-95-99.7 Rule fails us. Looking back at source illustration or discussion and source illustration or discussion, the best we can say is that 50 is between the 84th and 99.5th percentiles, but that’s a pretty wide range. Google Sheets has a function that can help; it’s called NORM.DIST. Here’s how to use it:
Click in an empty cell in your worksheet.
Type “=NORM.DIST(“
Inside the parentheses, we must enter a list of four things, separated by commas: the data value, the mean, the standard deviation, and the word “TRUE”. These have to be entered in this order!
Close the parentheses, and hit Enter. The result is then displayed in the cell; convert it to a percent to get the percentile.
So, for our example, we should type “=NORM.DIST(50, 40, 7, TRUE)” into an empty cell, and hit Enter. The result is 0.9234362745; converting to a percent and rounding, we can conclude that 50 is at the 92nd percentile. Let’s walk through a few more examples.
Using Google Sheets to Find Percentiles
Suppose we have data that are normally distributed with mean 28 and standard deviation 4. At what percentile do each of the following data values fall?
30
23
35
Solution
By entering “=NORM.DIST(30, 28, 4, TRUE)” we find that 30 is at the 69th percentile.
By entering “=NORM.DIST(23, 28, 4, TRUE)” we find that 23 is at the 11th percentile.
By entering “=NORM.DIST(35, 28, 4, TRUE)” we find that 35 is at the 96th percentile.
Google Sheets can also help us go the other direction: If we want to find the data value that corresponds to a given percentile, we can use the NORM.INV function. For example, if we have normally distributed data with mean 150 and standard deviation 25, we can find the data value at the 30th percentile as follows:
Click on an empty cell in your worksheet.
Type “=NORM.INV(“
Inside the parentheses, we’ll enter a list of three numbers, separated by commas: the percentile in question expressed as a decimal, the mean, and the standard deviation. These must be entered in this order!
Close the parentheses and hit Enter. The desired data value will be in the cell!
In our example, we want the 30th percentile; converting 30% to a decimal gives us 0.3. So, we’ll type “=NORM.INV(0.3, 150, 25)” to get 136.8899872; let’s round that off to 137.
Using Google Sheets to Find the Data Value Corresponding to a Percentile
Suppose we have data that are normally distributed with mean 47 and standard deviation 9. Find the data values (rounded to the nearest tenth) corresponding to these percentiles:
75th (that’s the third quartile)
12th
90th
Solution
By entering “=NORM.INV(0.75, 47, 9)” we find that 53.1 is at the 75th percentile.
By entering “=NORM.INV(0.12, 47, 9)” we find that 36.4 is at the 12th percentile.
By entering “=NORM.INV(0.9, 47, 9)” we find that 58.5 is at the 90th percentile.