# How to use the STDEVPA function

**What is the STDEVPA function?**

The STDEVPA function returns the standard deviation based on the entire population. It evaluates Boolean value TRUE as 1, FALSE and text values as 0 (zero).

#### Table of Contents

## 1. Introduction

**What is Standard Deviation?**

Standard deviation tells you how far from the average values are spread out. Both charts above have numbers and an average plotted, they share the exact same average however, the numbers are not the same.

Chart A above shows that the values are more spread out than the values in chart B. Chart A has a standard deviation of 23.45256334, standard deviation for chart B is 5.207075606. Standard deviation is fundamental in statistics.

A normal distribution is a symmetric, bell-shaped probability distribution that is commonly used in statistics and probability theory. The shape of the normal distribution is determined by its mean (μ) and standard deviation (σ). The mean represents the center of the distribution, while the standard deviation represents the spread or dispersion of the data around the mean.

- A normal distribution with a standard deviation of 0.5 is relatively narrow and tightly clustered around the mean.

The values in the distribution are concentrated within a smaller range, with most values falling closer to the mean. The curve appears tall and steep, indicating a higher concentration of data points near the mean. - A normal distribution with a standard deviation of 1 is the most commonly used normal distribution, often referred to as the standard normal distribution.

The standard deviation of 1 represents a moderate spread of the data around the mean. About 68% of the data falls within one standard deviation (±1σ) of the mean, and approximately 95% of the data falls within two standard deviations (±2σ) of the mean. The curve has a characteristic bell shape, with a smooth and gradual taper towards the tails. - A normal distribution with a standard deviation of 2 is relatively wide and spread out compared to the standard normal distribution. The data is dispersed over a larger range, with values more spread out from the mean. The curve appears shorter and flatter, indicating a lower concentration of data points near the mean.

**When to use the STDEVA function and the STDEVPA function?**

Use STDEVPA if you have the full population data. Use STDEVA if you have a sample of limited data from a larger population. STDEVPA will result in a lower standard deviation compared to STDEVA on the same data.

Sample standard deviation is considered a better estimate for inferring population parameters.

**What is inferring population parameters?**

Population parameters refer to the actual values of statistics that describe an entire population, such as the population mean or standard deviation. However, the true population parameter values are often not known.

**What is sample inferential statistics?**

Sample inferential statistics are methods that allow using statistics calculated on a sample of data to infer the unknown population parameters.

For example:

- The sample mean can be used to estimate the population mean.
- The sample standard deviation can estimate the population standard deviation.

**What is the difference between the STDEVPA function and the STDEV.P function?**

The STDEVPA function evaluates:

- Boolean value TRUE as 1
- FALSE is 0 (zero).
- Text values are evaluated as 0 (zero) as well.

The STDEV.P function ignores Boolean and text values. estimates the standard deviation from a sample of values. Both formulas use the same math formula to calculate the standard deviation.

**What is the difference between the STDEVA function and the STDEVPA function?**

The STDEVA function estimates the standard deviation from a sample of values. If your data contains the entire population use instead the STDEVPA function to calculate the standard deviation.

Both functions evaluate:

- Boolean value TRUE as 1.
- FALSE is 0 (zero).
- Text values are evaluated as 0 (zero) as well.

STDEVPA math formula:

STDEVPA function = √(Σ(x - x̄)^{2}/n)

STDEVA math formula:

STDEVA function = √(Σ(x - x̄)^{2}/(n-1))

## 2. STDEVPA Function Syntax

STDEVPA(*value1*, *[value2]*, ...)

## 3. STDEVPA Function Arguments

value1 |
Required. The first number argument that represents the entire population. |

[value2] |
Optional. Up to 253 additional number arguments. |

## 4. STDEVPA Function Example

**A scientist studying insects has compiled data on the lifespan of a certain bug found in a designated area. Assume the data follows a normal distribution. Find the outliers outside the 2 standard deviations (±2σ) range?**

The data is:

Life span |

66 |

88 |

102 |

109 |

114 |

109 |

- |

106 |

89 |

100 |

The argument is:

*number1* = B16:B25

The data points are specified in cells B16:B25 in the image above.

The image above shows a chart containing a blue curve representing the probability mass function of a normal distribution where the mean is 88 and the standard deviation is 56, calculated below. The chart shows the standard deviations denoted ±1σ, ±2σ, and ±3σ, cells E19:E20 display ±2σ standard deviation. 2σ = 23.65 and -2σ = 152.95

Formula in cell E15:

Cell E15 displays 32.32 which represents the standard deviation (σ) based on the values in B15:B25. We can use this value and the arithmetic mean to calculate the ±2σ standard deviations.

Formula in cell E19:

The formula in cell E19 first calculates the arithmetic mean using the AVERAGE function. It then takes this mean value and subtracts twice the standard deviation from it. Specifically, it subtracts the product of 32.32 and 2 from 88, resulting in a value of 23.65.

88.3 - (32.3 × 2) = 88.3 - 64.6532288443508 = 23.65

Formula in cell E20:

The formula in cell E20 uses the AVERAGEA function to calculate the arithmetic mean then calculates the total with the standard deviation multiplied by 2.

88.3 + (32.3 × 2) = 88.3 + 64.6532288443508 = 152.95

The chart in the image above shows a normal distribution with the standard deviations denoted ±1σ, ±2σ, and ±3σ. One data point is outside the ±2σ standard deviations which is 0 (zero) representing the text string "-" in cell B22.

## 5. How is the STDEVPA function calculated?

STDEVPA function = √(Σ(x - x̄)^{2}/n)

√ - square root

Σ - sum of

x̄ - arithmetic mean

n - count of values

To calculate the standard deviation based on a sample using only three numbers follow these steps:

- Find the mean (average) of the three numbers.

- Let's say the three numbers are x_{1}, x_{2}, and x_{3}.

- The mean (x̄) is calculated as: x̄ = (x_{1}+ x_{2}+ x_{3}) / 3 - Calculate the deviation of each number from the mean.

- Deviation of x1 from the mean: x_{1}- x̄

- Deviation of x2 from the mean: x_{2}- x̄

- Deviation of x3 from the mean: x_{3}- x̄ - Square each of the deviations.

(x_{1}- x̄)^{2}

(x_{2}- x̄)^{2}

(x_{3}- x̄)^{2} - Find the sum of the squared deviations.

- Sum of squared deviations = (x_{1}- x̄)^{2}+ (x_{2}- x̄)^{2}+ (x_{3}- x̄)^{2} - Divide the sum of squared deviations by n, where n is the number of data points (in this case, n = 3).

- Variance = Sum of squared deviations / 3 - Take the square root of the variance to obtain the standard deviation.

- Standard deviation = √(Variance)

### Functions in 'Statistical' category

The STDEVPA function function is one of 73 functions in the 'Statistical' category.

## How to comment

How to add a formula to your comment<code>Insert your formula here.</code>

Convert less than and larger than signsUse html character entities instead of less than and larger than signs.

< becomes < and > becomes >

How to add VBA code to your comment[vb 1="vbnet" language=","]

Put your VBA code here.

[/vb]

How to add a picture to your comment:Upload picture to postimage.org or imgur

Paste image link to your comment.

Contact OscarYou can contact me through this contact form