library(png)
library(grid)
img <- readPNG("C:/Users/user/Documents/00_Applications_DataScience/CUNY/DATA606/Presentation/Problem_217.png")
 grid.raster(img)

Question 1:

Would the mean or the median best represent what we might think of as a typical income for the 42 patrons at this coffee shop? What does this say about the robustness of the two measures?

The median is a much better measure of the typical amount earned by these 42 people. The mean is much higher than the income of 40 of the 42 people. This is because the mean is an arithmetic average and gets affected by the two extreme observations. The median does not get effected as much since it is robust to outliers.

Question 2:

Would the standard deviation or the IQR best represent the amount of variability in the incomes of the 42 patrons at this co ee shop? What does this say about the robustness of the two measures?

The IQR is a much better measure of variability in the amounts earned by nearly all of the 42 people. The standard deviation gets affected greatly by the two high salaries, but the IQR is robust to these extreme observations.