Hongmu Notes

📉 Standard Deviation Variance Calculator

Paste a set of data and obtain the number of data, sum, mean, range, population and sample variance, standard deviation and coefficient of variation at once, and give the step-by-step process of the sum of squared deviations.
100% Browser local processing 0 Data upload

📊 Standard deviation and variance of a set of data

💡 Instructions for use

  • Data supports line breaks, spaces, commas, and semicolons. It is also compatible with Chinese full-width punctuation, negative numbers, and decimals. Non-numeric content will be automatically ignored.
  • The denominator of the population size is the number of data N, and the denominator of the sample size is the degree of freedom N minus 1. If you are not sure, choose "simultaneous output" to compare.
  • The result area will list the difference between each data and the mean and the squared deviation, making it easy to manually check how the variance is calculated.
  • The coefficient of variation is only given when the mean is not 0, and the unit is a percent sign. It is used to compare the relative dispersion of data of different dimensions.

📊 Calculate six groups of indicators at once

After pasting the data, the number of data, sum, average, minimum and maximum values, range, sum of squares of deviations, population variance and standard deviation, sample variance and standard deviation, and coefficient of variation are also given. Variance measures the degree of dispersion, but the unit is the square of the original data; standard deviation is its square root, and the unit is consistent with the original data. When writing reports, standard deviation is usually used.

First, think clearly whether the data is a population or a sample, which determines whether the variance denominator should be N or N minus 1.

🧠 The difference between the denominator of the population and the sample

The denominator of the overall variance is the number of data N, which is suitable for situations where the data at hand are all research objects, such as a test with a fixed number of people in the class. The denominator of the sample variance is the degree of freedom N minus 1, which is suitable for treating the data as a sample drawn from a larger population, such as several pieces sampled from a batch of products; the variance calculated in this way is on average closer to the real population, which is called Bessel correction.

The larger the number of data, the closer the two results are; the difference is obvious when there are only a few data.

📈 When is the coefficient of variation used?

Standard deviations have units, and two sets of data with different dimensions or very different average magnitudes cannot be directly compared. Divide the standard deviation by the absolute value of the mean and multiply it by 100% to get the coefficient of variation: the smaller the value, the more concentrated and stable the data is. Usually 15% is used as the empirical reference line for stability. For example, when comparing the score fluctuations of two subjects with different average scores, it is more fair to look at the coefficient of variation than the standard deviation.

The coefficient of variation loses meaning as the mean approaches 0, and the tool skips this term.

🔒 Data is not uploaded

All calculations are completed locally in the browser, without calling the server computing interface, and no registration or login is required. The entered data only exists on the current page and will be cleared when refreshing. When you need to save the results, use the copy or download button and you will get a plain text report.

The page is also available offline, making it suitable for checking assignments on a computer without a network connection.

🔗 All keywords and tutorials

Keywords page of the tool12a

Return to tool home page

❓ FAQ

What is the difference between standard deviation and variance?
The variance is the average of the squared deviations, and the unit is the square of the original data; the standard deviation is the arithmetic square root of the variance, and the unit is consistent with the original data, so it is more intuitive to describe the degree of dispersion. Standard deviation is generally used in reports.
When to use N When to use N minus 1?
Use N (population size) when the data at hand is the entire research object; use N minus 1 (sample size) when the data at hand is a sample drawn from a larger population in order to estimate the population variance more accurately.
Is the larger the standard deviation better??
It depends on the scene. When measuring performance or quality stability, the smaller the standard deviation, the more stable it is; when measuring sampling fluctuations and investment risks, a large standard deviation means stronger fluctuations, and there is no absolute good or bad.
Can the standard deviation be calculated with only one data??
No. The deviation of a data is always 0, and the population standard deviation is 0; the sample diameter requires the degree of freedom N minus 1. There is no definition at this time, and the tool will display a horizontal line.
What delimiters are supported for input?
Line breaks, spaces, commas, and semicolons (including Chinese full-width symbols) are all recognized. Negative numbers and decimals are also supported, and non-numeric content will be automatically ignored.
How many decimal places should the result be kept??
The number of decimal places can be integers, two digits, four digits or six digits. When doing manual verification, it is recommended to use four digits to avoid rounding and inconsistent results.