Statistics
Sample mean
Add the observations and divide by how many there are. Every deviation in the variance calculation is measured from this centre.
Last updated
The Formula
xbar = sum(x_i) / n
Add the observations and divide by how many there are. Every deviation in the variance calculation is measured from this centre.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| x_i | An individual observation | same as data | One of the five entered values x1 through x5. |
| n | Sample size | count | The count of observations, fixed at five in this tool. |
| xbar | Sample mean | same as data | The arithmetic average of all entered values. |
What Each Symbol Means
x_isame as data
An individual observation
One of the five entered values x1 through x5.
ncount
Sample size
The count of observations, fixed at five in this tool.
xbarsame as data
Sample mean
The arithmetic average of all entered values.
See It Worked With Real Numbers
A formula on its own does not tell you which number goes where. The how to calculate the standard error page applies this equation to a concrete case, shows every intermediate step, and names the mistakes that produce a wrong answer even when the algebra is right.
Where This Formula Appears
This equation is the working core of How To Calculate The Standard Error, filed under Math. Every number the guide produces comes from substituting into this one line.
Common Questions
What is the formula for Sample mean?
The formula for Sample mean is xbar = sum(x_i) / n. Add the observations and divide by how many there are. Every deviation in the variance calculation is measured from this centre.
What does each symbol in Sample mean stand for?
x_i is an individual observation; n is sample size; xbar is sample mean.
What units should I use with Sample mean?
Substitute x_i in same as data, n as a plain count, xbar in same as data. Convert every input to those units before you start, because the equation only returns the right answer when the units on both sides agree.
What is a common mistake when using Sample mean?
Dividing by the sample size rather than its square root. Some people divide the standard deviation by five instead of by sqrt(5). That makes the error far too small. Averaging independent observations reduces spread in proportion to the square root of the count, so the square root belongs in the denominator.