Enter your data in the box above. You can separate values using commas, spaces, or newline breaks.
Dataset: Test scores: 70, 75, 80, 85, 90
Step 1 - Mean: (70 + 75 + 80 + 85 + 90) / 5 = 80
Step 2 - Standard Deviation: ≈ 7.07
Step 3 - For score of 90: 90 - 80 = 10
Step 4 - Z-score: 10 / 7.07 ≈ 1.41
Interpretation: A score of 90 is 1.41 standard deviations above the mean.
A Z-score tells you how many standard deviations away from the mean a particular value is. Here's how to calculate it step by step:
Where:
A Z-score (also called a standard score) is a statistical measurement that describes a value's relationship to the mean of a group of values. It's measured in terms of standard deviations from the mean. Z-scores are a way to standardize different datasets, making them comparable even when they have different units or scales.
When data is normally distributed and we convert it to Z-scores, we create what's called a standard normal distribution. This special distribution always has a mean of 0 and a standard deviation of 1, regardless of the original data's mean and standard deviation.
In a normal distribution:
Standardizing data into Z-scores is a common preprocessing step in statistical analysis. Below is a practical guide showing how to generate Z-scores using popular software: R Studio, IBM SPSS Statistics, JASP, Jamovi, and Stata.
Suppose we have a variable named score with the following values: 70, 75, 80, 85, 90.
The sample mean ($\mu$) is 80 and standard deviation ($s$) is 7.0711. The resulting Z-scores are approximately: -1.414, -0.707, 0.000, 0.707, 1.414.
In R, calculating Z-scores can be natively performed using the built-in scale() function, which subtracts the mean and divides by the standard deviation.
# Create sample dataset
data <- data.frame(score = c(70, 75, 80, 85, 90))
# Calculate Z-scores using scale()
data$z_score <- as.numeric(scale(data$score))
# View results
print(data)
SPSS provides both a Graphical User Interface (GUI) and syntax commands to compute standardized scores automatically.
score) into the Variable(s) box.Zscore in your data view.* Calculate Z-scores and save them as a new variable.
DESCRIPTIVES VARIABLES=score
/SAVE.
JASP offers an intuitive workflow to compute standardized variables dynamically.
z_score) and select Calculated Column.(score - mean(score)) / sd(score) or leverage the R expression scale(score).Jamovi makes data transformations straightforward through its built-in functions.
z_score).f(x)), enter Z(score) or manually enter (score - MEAN(score)) / SD(score).In Stata, standardized values are generated using the egen command paired with the std() function.
* Create sample dataset
clear
input score
70
75
80
85
90
end
* Generate Z-scores using egen std()
egen z_score = std(score)
* Display the dataset
list score z_score
z_score).score as the source variable and click OK.