From a4b8356192d4a3cc6c43af30f4e82fc9024f4d2d Mon Sep 17 00:00:00 2001 From: TheRealSpartacus Date: Mon, 3 Dec 2018 13:26:14 -0800 Subject: [PATCH] Adding Content (#23376) * Adding Content Saw empty guide, decided to fill with knowledge * fix(guide): standard deviation x-bar character --- .../index.md | 34 +++++++++++++++++-- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/guide/english/mathematics/calculating-standard-deviation-step-by-step/index.md b/guide/english/mathematics/calculating-standard-deviation-step-by-step/index.md index 6e8420b102..57cac456ee 100644 --- a/guide/english/mathematics/calculating-standard-deviation-step-by-step/index.md +++ b/guide/english/mathematics/calculating-standard-deviation-step-by-step/index.md @@ -3,13 +3,41 @@ title: Calculating Standard Deviation Step by Step --- ## Calculating Standard Deviation Step by Step -This is a stub. Help our community expand it. +Standard deviation is the measure of the average distance of all data points in a set to the mean of that set. The formula for the standard deviation of any given set is: -This quick style guide will help ensure your pull request gets accepted. +![alt text](https://github.com/TheRealSpartacus/sources/blob/master/StdDev/SD%20form.png) + +where *n* is the number of elements in the data set, *xi* is the *i*th element in the data set, and x̄ is the mean of the data set + +As seen in the formula, you first take the difference of all the values in the data set from the mean, square all of the differences, sum up all the squares, then divide it all by the number of elements in the data set minus 1. + +For example if you had a data set of [1,2,3] which has a mean of 2: + +You first would find the difference of all the data points and the mean: + +1-2 = -1 +2-2 = 0 +3-2 = 1 + +Next you square all the differences: + +(-1)^2 = 1 +(0)^2 = 0 +(1)^2 = 1 + +Then you add all the squares together: + +1+0+1 = 2 + +Finally you divide the sum by *n*-1, giving you the standard deviation: + +2/2 = 1 --> Standard Deviation. #### More Information: - +