question find the median and mean of the data set below: 38,45,12,27,21,43 answer attempt 1 out of 2 median…

question find the median and mean of the data set below: 38,45,12,27,21,43 answer attempt 1 out of 2 median = mean =
Answer
Explanation:
Step1: Sort the data set
$12, 21, 27, 38, 43, 45$
Step2: Calculate the median
Since there are 6 data - points (an even number), the median is the average of the two middle numbers. The two middle numbers are the 3rd and 4th numbers. Median=$\frac{27 + 38}{2}=\frac{65}{2}=32.5$
Step3: Calculate the mean
The mean $\bar{x}=\frac{\sum_{i = 1}^{n}x_{i}}{n}$, where $n = 6$ and $x_{i}$ are the data - points. $\bar{x}=\frac{12+21+27+38+43+45}{6}=\frac{186}{6}=31$
Answer:
Median = $32.5$ Mean = $31$