Blog Archives

Statistics in Python: Measures of Dispersion

In this article I would like to concentrate on 4 main measures of statistical dispersion: range (and the biggest and the smallest number as well), average deviation, variance and standard deviation. In Python, we can easily compute them with a

Tagged with: , , , , , ,
Posted in data analysis, python

Statistics in Python: Central Tendency

In the central tendency there are 3 most common measures: mean (arithmetic average), median and mode. Their manual calculation in Python is presented below. Mean Arithmetic mean is a sum of a collection of numbers divided by the total number

Tagged with: , , , , ,
Posted in data analysis, python

Statistics in Python: Frequency Distribution

Previous articles concentrated on managing and visualizing data with numpy and mathplotlib.pyplot libraries. Now, it is time to count more statistics, but manually, without built-in functions. For the beginning, let’s write some code to show a frequency distribution of the

Tagged with: , ,
Posted in data analysis, python

Python Exercises: Computing Pay

Below exercises come from the book ‘Python for Informatics. Exploring Information.’ Version 2.7.0 by Charles Severance. Exercise 2.3 Write a program to prompt the user for hours and rate per hour to compute gross pay. Enter Hours: 35 Enter Rate:

Tagged with: , ,
Posted in python