Skip to content
Justice Tech School

Descriptive Statistics

mean, median, var, sd, range, quantile and summary describe numbers.

Example
x <- c(2, 4, 4, 4, 5, 5, 7, 9)
print(mean(x)); print(median(x)); print(sd(x))
print(range(x)); print(quantile(x, c(0.25, 0.75)))
print(summary(x))

Exercise

Spread.

(x)

Quiz Test

What does median give?

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