Calculadora de Desviación Estándar
Calcula la desviación estándar poblacional y muestral con resultados paso a paso
Standard Deviation Calculator
Calculate standard deviation and variance
Enter comma-separated numbers
sigma = sqrt(sum((xi - mean)^2) / N)What is a Standard Deviation Calculator?
A Standard Deviation Calculator is a statistics tool that measures how spread out a set of numbers is. Standard deviation tells you, on average, how far the values in a dataset are from the mean (average). A small standard deviation means the numbers are close together and close to the mean. A large standard deviation means the numbers vary widely.
Standard deviation is one of the most important ideas in statistics because it describes variability. It's used in many real-world areas such as finance (volatility of returns), education (spread of test scores), science (measurement error and consistency), and business analytics (variation in sales or performance metrics).
This calculator helps you compute standard deviation quickly and accurately—especially for larger datasets—without manually doing multiple steps like finding the mean, subtracting values, squaring differences, and taking square roots.
This Calculator Outputs Both Modes
- Population StdDev -- use when your data includes every member of the group
- Sample StdDev -- use when your data is a subset (sample) of a larger population
- Variance -- the square of the standard deviation (population variance)
How to Use This Standard Deviation Calculator
- Enter your data values -- input numbers into the data field (numbers only)
- Separate values using commas -- for example: 5, 10, 15, 20, 25
- Click 'Calculate' -- to compute the standard deviation
- Review the results -- both Population StdDev and Sample StdDev are displayed, along with Variance
- Interpret the spread -- compare the standard deviation relative to the mean to understand how consistent or varied the data is
Tips:
- Use Population when your data includes every member of the group you're measuring
- Use Sample when your data is a subset (sample) taken from a larger population
- Standard deviation is in the same units as your data (unlike variance, which is in squared units)
Standard Deviation Formulas
Let your dataset be: x₁, x₂, x₃, …, xₙ where n is the number of values.
Mean (Average)
x̄ = (x₁ + x₂ + … + xₙ) / n
Sum all values, then divide by the count
Population Standard Deviation
Variance:
σ² = [ Σ(xᵢ − μ)² ] / n
Standard deviation:
σ = √σ²
μ = population mean; divide by n
Sample Standard Deviation
Variance:
s² = [ Σ(xᵢ − x̄)² ] / (n − 1)
Standard deviation:
s = √s²
x̄ = sample mean; divide by (n − 1)
Why divide by (n − 1) for a sample?
Using (n − 1) instead of n corrects bias when estimating population variability from a sample. This adjustment is called Bessel's correction and produces a more accurate estimate of the true population standard deviation.
Example Calculations
Example 1: Population Standard Deviation
Data: 1, 2, 3
Mean (μ): (1 + 2 + 3) / 3 = 2
Differences from mean: (1−2) = −1, (2−2) = 0, (3−2) = 1
Squared → Sum: 1 + 0 + 1 = 2
σ²: 2 / 3 = 0.6667
σ: √0.6667 ≈ 0.8165
Result: Population SD ≈ 0.8165
Example 2: Sample Standard Deviation
Data: 1, 2, 3
Mean: 2, squared differences sum: 2
s²: 2 / (3 − 1) = 2 / 2 = 1
s: √1 = 1
Result: Sample SD = 1
Example 3: Low vs High Variability Comparison
Dataset A: 9, 10, 10, 11 (values close together)
Dataset B: 2, 6, 14, 18 (values spread out)
Both sets have a mean of 10, but Dataset B has a much larger standard deviation because values are farther from the mean.
Result: Higher spread → higher standard deviation
Example 4: Real-World Example (Test Scores)
Scores: 78, 80, 82, 85, 95
The mean is around the low-to-mid 80s. The score 95 is farther from the mean and increases the spread.
Result: The standard deviation helps quantify how consistent (or inconsistent) the scores are.
Frequently Asked Questions
What does standard deviation tell me?
It tells you how much values typically vary from the mean. Lower standard deviation means the data is clustered; higher standard deviation means the data is more spread out.
What's the difference between variance and standard deviation?
Variance is the average of squared differences from the mean. Standard deviation is the square root of variance. Standard deviation is preferred because it's in the same units as the original data.
Should I use sample or population standard deviation?
Use population if you have the full group you care about. Use sample if your data is only part of a larger group and you're estimating the population variability.
Can standard deviation be zero?
Yes. If all numbers are the same (e.g., 5, 5, 5, 5), there is no variation, so the standard deviation is 0.
How do outliers affect standard deviation?
Outliers (very high or very low values) usually increase standard deviation because they are far from the mean and contribute large squared differences.
Want to add this standard deviation calculator to your website? Get a custom embed code that matches your site's design and keeps visitors engaged.
¿Qué es la desviación estándar?
La desviación estándar mide qué tan dispersos están los valores de un conjunto de datos respecto a su media. Una desviación estándar baja significa que los valores se agrupan cerca del promedio; una alta indica que están muy dispersos. Es una de las estadísticas más usadas en el mundo: aparece en finanzas (volatilidad bursátil), ciencia (márgenes de error experimental), educación (distribución de calificaciones) y control de calidad industrial.
Existen dos versiones: la desviación estándar poblacional (σ) cuando el conjunto de datos incluye a todos los miembros del grupo, y la desviación estándar muestral (s) cuando trabajas con un subconjunto extraído de una población mayor. Esta calculadora calcula ambas, junto con la varianza y la media, a partir de cualquier lista de números que ingreses.
Cómo usar la calculadora de desviación estándar
- Escribe o pega tus números en el campo de entrada, separados por comas (por ejemplo: 4, 7, 13, 2, 1).
- Elige si quieres la desviación estándar poblacional o muestral, o deja que la calculadora muestre ambas.
- Haz clic en Calcular para ejecutar el cálculo.
- Lee la desviación estándar, la varianza y la media en el panel de resultados.
Fórmula de la desviación estándar
Media: μ = Σx / n
Desv. Est. Pobl. σ: √(Σ(x − μ)² / n)
Desv. Est. Muestral s: √(Σ(x − μ)² / (n − 1))
Varianza (pobl.): σ² = Σ(x − μ)² / n
Varianza (muestral): s² = Σ(x − μ)² / (n − 1)Usa σ poblacional cuando tus datos SON toda la población (por ejemplo, todas las calificaciones de una clase). Usa s muestral cuando tus datos son un subconjunto de una población mayor (por ejemplo, una encuesta de 500 personas que representa a millones). La fórmula muestral divide entre (n − 1) en lugar de n para corregir el sesgo que surge al estimar la media con los mismos datos.
Ejemplos resueltos
Ejemplo 1 — Conjunto clásico: {2, 4, 4, 4, 5, 5, 7, 9}
Media = (2+4+4+4+5+5+7+9) / 8 = 40 / 8 = 5. La suma de las desviaciones cuadráticas respecto a 5 es 32. Desviación estándar poblacional σ = √(32/8) = √4 = 2,00. Este es un conjunto de datos clásico que ilustra exactamente σ = 2.
Ejemplo 2 — Valores igualmente espaciados: {10, 20, 30, 40, 50}
Media = 150 / 5 = 30. Suma de desviaciones cuadráticas = (20²+10²+0²+10²+20²) = 1000. σ poblacional = √(1000/5) = √200 ≈ 14,14. s muestral = √(1000/4) = √250 ≈ 15,81.
Ejemplo 3 — Sin dispersión: {100, 100, 100}
Media = 100. Cada valor es igual a la media, por lo que cada desviación cuadrática es 0. Desviación estándar = 0: no hay ninguna dispersión en este conjunto de datos. Esto ocurre siempre que todos los valores son idénticos.