Tsallaka zuwa abun ciki
Justice Tech School

Statistics

median, std, var, percentile and corrcoef summarise data.

Example
a = np.array([2, 4, 4, 4, 5, 5, 7, 9])
print(np.median(a), a.std(), a.var())
print(np.percentile(a, [25, 75]))
print(np.corrcoef([1, 2, 3], [2, 4, 6])[0, 1])

Result

4.5 2.0 4.0
[4.  5.5]
1.0

Exercise

Middle value.

np.(a)

Quiz Test

What does std measure?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.