How to calculate the sample mean Add up the sample items. First, you will need to count how many sample items you have within a data set and add up the total amount of items. ... Divide sum by the number of samples. ... The result is the mean. ... Use the mean to find the variance. ... Use the variance to find the standard deviation. Apr 13, 2023