Calculate the mean, median, and mode of a data set with the sum, count, sorted positions, and frequency count shown at every step.
You are a statistics tutor who never states a mean, median, or mode without showing the arithmetic behind it, because a bare number that turns out wrong is worse than no answer at all, and it's exactly the kind of mistake that sits quietly at the top of a homework set or a data report until someone checks it by hand. Take the values in [DATA_SET], separated by commas or spaces however they were given to you, and start by stating how many numbers you found, since a missing comma or an extra space can silently merge two values into one and throw off every measure that follows. If anything in [DATA_SET] isn't actually a number, a stray word or symbol, say so and ask me to fix it before calculating anything. Otherwise, write the full list out again sorted from smallest to largest, because the median and the mode both depend on having that sorted list in front of both of us, not just the mean. If [DATA_SET] turns out to hold only one value, say so plainly and give that same number for all three measures instead of working through unnecessary steps. Calculate the mean first. Write out every number being added, either one at a time or as a running total, then state the full sum and the count of values, and only after that divide the sum by the count to reach the mean. Show that division as its own step instead of jumping to a final number, and if it doesn't divide evenly, carry the result to at least two decimal places and say so. Calculate the median next, using the sorted list you already built. If the count is odd, name the middle position by its index in that list and state which value sits there. If the count is even, name both middle positions, show the two values you found there added together, and show that sum divided by two to reach the median. A median with no position attached to it can't be checked, so never skip that part. Calculate the mode next by building a frequency count for every distinct value in the data set, one line per value stating how many times it appears, not a bare claim about which one repeats most. If every value appears exactly once, say plainly that there is no mode instead of picking one at random. If one value appears more often than the rest, name it as the mode along with its count. If two or more values tie for the highest frequency above one, list every tied value and call the set bimodal for two or multimodal for more than two, and if every distinct value in the set shares the exact same frequency, say the data set has no meaningful mode rather than listing all of them as tied. With all three numbers in front of us, explain in a line or two what each one says about this particular data set. Whether the mean is being pulled away from the middle by one unusually large or small value, whether the median stayed close to the mean or moved away from it because of that pull, and whether the mode points to a value that shows up more than chance would suggest. Mean reacts to every value including outliers, median mostly shrugs them off, and mode only matters once something actually repeats. If I set [INCLUDE_RANGE?], also calculate the range from the minimum and maximum you already identified in the sorted list, show that subtraction as its own step, and note that range describes how spread out the data is but gets distorted by a single extreme value just as easily as the mean does. Set [SHOW_WORK:select:show every step,just the three answers with a quick verification] to control how much narration wraps around the arithmetic. In show every step mode, walk through every stage above in full, stating the reasoning at each one. In just the three answers with a quick verification mode, keep the sorted list, the sum and count behind the mean, the position or positions behind the median, and the frequency count behind the mode, since none of those four ever get skipped in either setting, but drop the surrounding explanation and close instead with a fast independent recheck, like re-adding the sum a second way or reconfirming the median's position against the count, and state whether that recheck matches the first pass. Whichever setting I picked, end by telling me to add up the sorted numbers myself and divide by the count you stated, since checking one arithmetic step by hand takes less time than redoing the whole answer if a digit slipped somewhere in the middle.
Use this prompt anywhere
10,000+ expert prompts for ChatGPT, Claude, Gemini, and wherever you use AI.
Get Early AccessA data set of ten numbers turns into three different answers depending on whether you calculate the mean, the median, or the mode, and mixing up which one you actually need, or dropping a number while adding up the sum, is the easiest way to hand in a stats homework set or a report with the wrong central tendency baked in.
This tool takes your [DATA_SET] and works through all three measures with the arithmetic shown at every stage: the sorted list, the running sum and the count behind the mean, the exact position behind the median, and a full frequency count behind the mode instead of a guess at which number repeats most. It also explains what each measure is actually telling you about the data, since a mean pulled toward one outlier and a median that barely moved is itself a finding worth noticing.
Run it in the Dock Editor to check a stats assignment or a results section before you turn it in, or paste it into ChatGPT, Claude, or Gemini directly. If the data set came from a multi-step calculation in the first place, work through the raw numbers with the order of operations solver before you calculate the mean, median, and mode on the result.
Paste your numbers into [DATA_SET], separated by commas or spaces, into ChatGPT, Claude, Gemini, or the Dock Editor.
Set [SHOW_WORK] to show every step for the full narrated breakdown, or just the three answers with a quick verification for a condensed version that still shows the sum, the sorted positions, and the frequency count behind each measure.
Before anything else, the output states how many values it found and lists them sorted. Confirm that count matches what you typed, since one missing comma can quietly merge two numbers into one.
The sum and count sit behind the mean, the exact sorted position sits behind the median, and a full frequency table sits behind the mode, not just three bare numbers. Add [INCLUDE_RANGE] if you also want the spread between the highest and lowest value.
Add up the sorted numbers yourself and divide by the count the output gave you. Checking one step by hand takes less time than redoing the whole answer if a number got mistyped.
Check a homework set that asks for mean, median, and mode before turning it in, catching a dropped number before a grade does.
Get the central tendency of a small data set worked out with the arithmetic visible, instead of trusting a spreadsheet formula you can't see inside of.
Use the digit-by-digit breakdown as a model answer when a student's mean, median, or mode doesn't match the answer key.
Confirm the central tendency reported in a results section actually matches the raw numbers before the report goes out.
Discover more prompts that could help with your workflow.
Explain the central limit theorem, evaluate whether it applies to a study's sample size and independence, or connect it to a named statistical concept.
Explain the difference between descriptive and inferential statistics with a shared example, check whether a claim is descriptive or inferential, or classify a technique.
Explain or verify a p-value interpretation for a given analysis, checked against a significance threshold and the most common misreading, separating statistical from practical significance.
10,000+ expert-curated prompts for ChatGPT, Claude, Gemini, and wherever you use AI. Our extension helps any prompt deliver better results.