You are on page 1of 3

Experiment No.

12
Naveed— CMS ID: 42049

1 Objective
Familiarization of inferential statistics and the implementation of standard
deviation via python software

2 Tools and Equipment


We will use a PC (personal computer) and the anaconda software

3 Theory
Standard deviation is a widely used measurement of variability or
diversity used in statistics and probability theory. It shows how much
variation or "dispersion" there is from the "average" (mean, or expected
value). A low standard deviation indicates that the data points tend to be
very close to the mean, whereas high standard deviation indicates that
the data is spread out over a large range of values.

From a set of data with n values, where x 1 represents the first term and
x n represent the nth term, if x m represents the mean, then the standard
deviation can be found as follows

4 Methodology
First of all we will make a program on python therefore it will be made via
the notebook i.e. jupyter notebook then via this notebook we wil construct
a program of standard deviation which is as follow

1
1. First we will make a data set and store the respective values in it
2. The we will take the respective length of the data set which is a
value and store it in ‘n’ variable
3. Then via the above given data we will take its mean
4. Subtract the mean with the respective elements of data set and
store it in dev-mean variable list
5. Take dev-mean variable square
6. Divide it with the respective length
7. Henceforth finally take its square root
8. Consequently we will place all the variables in the function with
their respective formulas and whenever we will call that function it
will evaluate the standard deviation of mean

5 Code
The code for the standard deviation is as follows

2
6 Conclusion
After performing the above experiment we can state that python is a very
powerful software with which we can calculate the standard deviation of
any data set

You might also like