The back-to-back stem-and-leaf plot below shows the ages of patients seen by two doctors in a

family clinic in one day. Compare the ages of the patients of Doctor 1 and Doctor 2 using the
mean and the median of each data set.
Ages of Doctor's Patients
Doctor 1 |
| 3 |
9, 2, 0 | 2 | 0, 0, 2, 3, 6
8, 5, 7 | 1 | 3, 7
9, 7, 3, 2, 1, 1 | 0 | 2, 2, 3, 9
Key: means 29 ~ 9 | 2 | 3 ~ means 23

I know how to do the mean but im so confused about how to do the median so if anyone can explain it step by step to me would be much appreciated 😅

i forgot to write doctor 2 but yall would probably know what im talking about lol

also its | 3 | 5 not | 3 |

To find the median of a data set, follow these steps:

Step 1: Arrange the data in ascending order.
In this case, for Doctor 1, the data set is:
0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 5, 6, 7, 7, 8, 9, 9, 9

For Doctor 2, the data set is:
2, 2, 2, 2, 2, 3, 3, 3, 7, 9

Step 2: Determine the number of data values, denoted as "n".
For Doctor 1, there are 22 data values.
For Doctor 2, there are 10 data values.

Step 3: Calculate the position of the median (middle value).
For Doctor 1, since there are 22 data values, the median position is the 11th value (middle value).
For Doctor 2, since there are 10 data values, the median position is the 5th value (middle value).

Step 4: Find the median.
For Doctor 1, the 11th value in the ordered data set is 2, so the median for Doctor 1 is 2.
For Doctor 2, the 5th value in the ordered data set is 2, so the median for Doctor 2 is 2.

Thus, the medians for Doctor 1 and Doctor 2 are both 2.