# Statistical Computation of Mean & Standard Deviation from a Given Data Set Using Python

To Know more about the Different Corporate Training & Consulting Visit our website www.Instrovate.com Or Email : info@instrovate.com or WhatsApp / Call at +91 74289 52788

# Statistical Computation of Mean & Standard Deviation from a Given Data Set Using Python

##### Share

Prerequisites To Follow this Exercise :

1. Python Installed in your System : If you are a new user to Python and want to know how to install Python via the Anaconda Distribution , You can go through the step by step Blog i have written to install Python via Anaconda Distribution & start using Jupyter Notebook : https://instrovate.com/2019/06/09/python-anaconda-distribution-how-to-download-and-install-it-and-run-the-first-python-program/

Once you have the  Python Installed in your system you are Good to Go ahead and follow the below Use Case and Example.

Below is the data stored in comma separated format csv file:

Write a python program that can give us sum, mean and standard deviation for sales in each  year specified in data.

For Corporate training and Online Training contact at info@instrovate.com or call / whatsapp at +91 74289 52788

*********************************************************

Try On you Own First Before Referring to the Solution Below

***********************************************************

<<

To solve the above problem we will create a dictionary in which the key would be year and the subsequent value would be a list containing the value of sales for that year.

After that we can compute the sum , mean & standard deviation by using statistics library in python
Above is the python code to get the desired outcome.  If you want to get the Code as Python Code File Subscribe to our website – https://instrovate.com/ and our YouTube Channel Below – https://youtube.com/c/InstrovateTechnologies