question find the median and mean of the data set below: 4,2,12,34 answer attempt 1 out of 2 median = mean =

question find the median and mean of the data set below: 4,2,12,34 answer attempt 1 out of 2 median = mean =
Answer
Explanation:
Step1: Arrange data in ascending order
$2,4,12,34$
Step2: Calculate the median
Since there are 4 data - points (an even number of data - points), the median is the average of the two middle numbers. The two middle numbers are 4 and 12. Median=$\frac{4 + 12}{2}=\frac{16}{2}=8$.
Step3: Calculate the mean
The formula for the mean $\bar{x}=\frac{\sum_{i = 1}^{n}x_{i}}{n}$, where $n$ is the number of data - points and $x_{i}$ are the individual data - points. Here, $n = 4$, $x_1=2$, $x_2 = 4$, $x_3=12$, $x_4 = 34$. Mean=$\frac{2+4 + 12+34}{4}=\frac{52}{4}=13$.
Answer:
Median = 8 Mean = 13