Explain a median with a small example

Type the number and its unit as a single group. · 195 words

Give the rule and ask for a worked demonstration. The source note says: 'A median is the middle value after sorting; with two middle values, average them.' Ask: 'Explain this to a beginner using 7, 2, 5, 4, 6. Sort the list, point to the middle value, and finish with one sentence about even lists.' The sorted list is 2, 4, 5, 6, 7, so the median is 5. This answer is checkable: there are five positions, and the third holds 5. Supplying the rule as a source helps prevent the AI from confusing a median with a mean.

Test an even list: 'For 3, 8, 2, 6, sort the values, show the two middle positions, calculate their average, and give the median. Explain to a beginner in three short steps.' The ordered list is 2, 3, 6, 8. The middle values are 3 and 6, and their average is (3 + 6) / 2 = 4.5, so the median is 4.5. This result is checkable: four values create two middle positions, and 9 divided by 2 equals 4.5. Naming the audience, example, and output shape makes the response easy for a beginner to test.

Check your recall

What is the median of 3, 8, 2, 6, and what calculation produces it?

Check your answer

After sorting, the list is 2, 3, 6, 8. The two middle values are 3 and 6, so the median is (3 + 6) / 2 = 4.5.

Sources and credits

Original KeyTouch lesson. Background reading · DAIR.AI · Examples of Prompts.