Statistics How To

Testing a Single Mean

Hypothesis Testing > Testing a Single Mean

When you test a single mean, you’re comparing the mean value to some other hypothesized value. Which test you run depends on if you know the population standard deviation(σ) or not.

Known population standard deviation

If you know the value for σ, then the population mean has a normal distribution: use a one sample z-test. The z-test uses a formula to find a z-score, which you compare against a critical value found in a z-table. The formula is:
testing a single mean

Watch the video for an example of a z-test for a single mean:

Unknown population standard deviation

If you don’t know the population standard deviation, use the t-test. The t-score formula is almost identical to the z-score formula, except that σ (the population standard deviation) has been replaced by s (the sample standard deviation). The formula is:

.
The test is run the same way: use the formula to calculate your t-score and then compare it to a value found in a table (this time you’ll use the t-table).

See: One Sample T-Test example.

Non Parametric Tests for Testing a Single Mean

Non parametric (“distribution free”) tests don’t assume your data comes from a certain distribution, like the normal distribution. So if you have data that isn’t normally distributed, you should use one of these alternatives:

Both tests use medians instead of means. You don’t want to compare means for non-normally distributed data because the mean is very affected by outliers and skewness. As you don’t know the shape of the potential distribution, running a test for a mean would give you a very high probability of your results being wrong. The median on the other hand, is resistant to outliers and changes in skew.

------------------------------------------------------------------------------

If you prefer an online interactive environment to learn R and statistics, this free R Tutorial by Datacamp is a great way to get started. If you're are somewhat comfortable with R and are interested in going deeper into Statistics, try this Statistics with R track.

Comments are now closed for this post. Need help or want to post a correction? Please post a comment on our Facebook page and I'll do my best to help!
Testing a Single Mean was last modified: October 12th, 2017 by Stephanie Glen