question\nfind the median and mean of the data set below:\n40, 8, 31, 3\nanswer attempt 1 out of 2\nmedian =…

question\nfind the median and mean of the data set below:\n40, 8, 31, 3\nanswer attempt 1 out of 2\nmedian = \nmean =
Answer
Answer:
Median = 19.5 Mean = 20.5
Explanation:
Step1: Sort the data set
3, 8, 31, 40
Step2: Calculate the median
Since there are 4 data - points (an even number), the median is the average of the two middle numbers. $\frac{8 + 31}{2}=\frac{39}{2}=19.5$
Step3: Calculate the mean
The mean $\bar{x}=\frac{3 + 8+31 + 40}{4}=\frac{82}{4}=20.5$