Statistics

Online Courses

Statistics with Python
Using the math library you can get various statistical values. We start by creating a list of values:

Five number summary
We can get the five number summary using the math library. The five number summary contains:  minimum, maximum, median, mean and the standard deviation.

Boxplot
This code will create a boxplot:

Previous Post
Next Post

6 Replies to “Statistics”

  1. I am newbie and I am using windows 32, I got the error below
    Traceback (most recent call last):
    File “C:/Users/ELTE/Desktop/python/readme.py”, line 2, in
    import numpy
    ImportError: No module named ‘numpy’

  2. Traceback (most recent call last):
    File “/home/andre/test.py”, line 4, in
    import matplotlib.pyplot as plt
    ImportError: No module named matplotlib.pyplot
    >>>

Leave a Reply

Your email address will not be published. Required fields are marked *