# Arup Guha
# 4/13/2020
# Example showing use of basic statistics functions

import statistics

# Hard-coded data - height in inches of a sample of people.
data = [65, 68, 67, 72, 74, 71, 69, 61, 63, 64, 65, 69, 69, 72]

# Calculate relevant stats.
avg = statistics.mean(data)
middle = statistics.median(data)

# Note: if there is no unique mode, this line crashes.
mostfreq = statistics.mode(data)

mystdev = statistics.pstdev(data)

# Display the results.
print("Average of the data =", avg)
print("Median of the data =", middle)
print("Most common value =", mostfreq)
print("Standard Deviation =", mystdev)
