## Average

The average of a data set, formally called the mean, expresses the typical value in that data set. It is calculated by adding up all of the values, and dividing the sum by the size of the data set. For example, four friends take a quiz. Alice and Bob each get 3 questions right, Carol gets 4 right, and Dan gets 5 right. To calculate the mean, do the following:
```sum  = 3 + 3 + 4 + 5 = 15
size = 4
mean = 15 ÷ 4 = 3.75
```
In the example above, 3.75 expresses the typical quiz score. Note that none of the friends actually scored a 3.75, which is not even possible since a quiz score must be a whole number. The mean represents how people scored on the quiz overall.
Now let's say you want to get a general idea of how much money a group of friends have. Alice and Bob each have a net worth of \$150,000, Carol is worth \$75,000, Dan is worth \$125,000, and Warren is worth \$60 million. The mean is \$12.1 million, but that implies that each friend is very wealthy, when really most of them have a modest net worth while one is extremely wealthy. For data sets that have extreme outliers, it is better to calculate the median, which is the central value in that data set. It is calculated by sorting the values, and taking the middle value:
```sorted = \$75K, \$125K, \$150K, \$150K, \$60M
median = \$150K
```
In the example above, \$150,000 is the central value, which is a better representation of how much money the group of friends have. Even if Warren was worth \$600 million, the median would remain the same. The median is not skewed by extreme outliers.

### Exercise 1 of 6

Alice is 5ft 4in (64 inches), Bob is 6ft 3in (75 inches), and Carol is 5ft 5in (65 inches). How many inches in the mean?

### Exercise 2 of 6

Alice takes 20 minutes to get to work, Bob takes 35 minutes, Carol takes 15 minutes, and Dan takes 30 minutes. How many minutes is the mean?

### Exercise 3 of 6

Alice and her husband have 3 kids, Bob and his wife have 2 kids, Carol and her husband have 4 kids, and Dan has no kids. How many kids is the mean?

### Exercise 4 of 6

Alice earns \$66,000 per year, Bob earns \$89,000, Carol earns \$118,000, Dan earns \$62,000, and Warren earns \$425,000. What is the median salary?

### Exercise 5 of 6

Alice's home is worth \$486,000, Bob's home is worth \$372,000, Carol's home is worth \$428,000, Dan's home is worth \$594,000, and Warren's home is worth \$2,500,000. What is the median home price?

### Exercise 6 of 6

A grade point average (GPA) is calculated by adding up all of the grades for each class, and dividing the sum by the number of classes. A is 4 points, B is 3 points, C is 2 points, D is 1 point, and F is 0 points. You get four A's, one B, and one C. What is your GPA?