Skip to main content

Desmos for SAT Statistics: Mean, Median, Standard Deviation

Lists, mean, median, standard deviation, tables

By JasonPublished 7 min read

To find the mean, median or standard deviation in Desmos, type the data as a list in square brackets, such as L = [5, 9, 6, 14, 8, 6, 15], then type mean(L), median(L) or stdev(L) on the next line. Desmos shows the answer under the line as soon as you finish typing.

This guide covers the statistics jobs that come up on the SAT: the mean and median of a list, standard deviation, mode and range, frequency tables, outliers, and box plots and dot plots. Every example has a button that opens it in our free SAT Desmos practice calculator, and every function here also works on the version of Desmos built for College Board tests.

Enter the data as a list

A list is a set of numbers inside square brackets, separated by commas. Give the list a name so you can reuse it:

  1. On the first line, type L = [5, 9, 6, 14, 8, 6, 15].
  2. On the next line, type mean(L). Desmos shows 9.
  3. On the next line, type median(L). Desmos shows 8.

Check by hand: the seven numbers add to 63, and 63÷7=9. In order, the list is 5,6,6,8,9,14,15, and the middle number is 8.

You do not have to sort the data first. median puts the numbers in order for you, and when the list has an even number of values it averages the two middle ones.

One line for everything

Type stats(L) to see the count, mean, median and both standard deviations of the list at once.

Practice question · Desmos Skills

Show the Detailed Explanation

Type the five speeds as a list, L = [25.321, 25.305, 25.340, 25.298, 25.314], then type median(L). Desmos shows 25.314. Choice B.

Standard deviation: stdev and stdevp

Desmos has two standard deviation functions, and they give different numbers.

Type thisWhat it computesResult for L
stdev(L)Sample standard deviation: the square root of the sum of squared distances from the mean, divided by n−1, where n is the number of values4
stdevp(L)Population standard deviation: the same, but divided by nabout 3.703

Desmos's own advice is to use the sample version when the data is part of a larger group and the population version when the data is the whole group.

The SAT questions on standard deviation that we see usually ask you to compare spread, not to calculate a standard deviation: which of two data sets is more spread out. You can answer that by looking. Standard deviation measures how far the values sit from the mean, so the set whose values are farther from its mean has the larger standard deviation.

Take two sets that both have a mean of 12:

  • Set A: 10,11,12,13,14
  • Set B: 4,8,12,16,20

Every value in set A is within 2 of the mean. Set B has values 8 away. Set B has the larger standard deviation, and no calculation is needed.

Desmos is the check, not the method:

stdev(A) is about 1.58 and stdev(B) is about 6.32. With stdevp the numbers are about 1.41 and 5.66. Set B is larger either way.

Which one to use for a comparison

When two sets have the same number of values, stdev and stdevp always put them in the same order, so use either one. Use the same function for both sets. If the sets have different sizes, the two functions can rank them differently, so use the one that fits the data: stdevp when the list is the whole group, stdev when it is a sample.

For the reasoning behind these comparisons, see median, standard deviation, mode and range topic training.

Mode and range

Desmos has no mode function. Typing mode(L) gives an error. The practical way is to sort the list and look for the value that repeats most. If several values tie for the most repeats, they are all modes, and if every value appears once there is no mode:

  • Type sort(L). Desmos shows [5,6,6,8,9,14,15]. The only repeated value is 6, so the mode is 6.

There is no range function either, but the range is the largest value minus the smallest:

  • Type max(L) - min(L). Desmos shows 10, which is 15−5.

If the data comes in a frequency table, the mode needs no calculator. It is the value with the highest count.

Mean and median from a frequency table

A frequency table lists each value once, with the number of times it appears. This table shows the number of pets owned by 20 students:

Number of pets01234
Number of students37541

Typing all 20 values would be slow. Use two lists and the repeat function, which copies each value as many times as its count:

  1. Type the values: V = [0, 1, 2, 3, 4].
  2. Type the counts: F = [3, 7, 5, 4, 1].
  3. Type D = repeat(V, F). Desmos builds the full list of 20 values.
  4. Type mean(D) and median(D). Desmos shows 1.65 and 1.5.

Check the mean by hand: multiply each value by its count and add, 0(3)+1(7)+2(5)+3(4)+4(1)=33, then divide by the 20 students to get 1.65. In Desmos that is total(V*F)/total(F), typed with the division key so it becomes a fraction.

Check the median by counting. With 20 values, the middle is between the 10th and 11th. The first 3 values are 0, and the next 7 are 1, which takes you to the 10th value. So the 10th value is 1 and the 11th is 2, and the median is 1.5.

Common mistake

Do not type mean(V) for a frequency table. That averages the five row labels and gives 2, as if every value appeared once. The counts have to be included.

There is more practice in frequency tables topic training and averages topic training.

What an outlier changes

In the SAT questions we teach, a common task changes one value, or adds or removes one, and asks which measure is affected more. In Desmos, edit the list and watch the results underneath update.

Start with L = [5, 9, 6, 14, 8, 6, 15] and change the 15 to 50:

MeasureOriginal listWith 50 in place of 15
Mean914
Median88
Range1045
stdev4about 16.16

The mean, range and standard deviation all jump. The median does not move, because 50 is still just the largest value and the middle value is still 8.

Here, replacing 15 with 50 raised the mean, the range and the standard deviation and left the median unchanged. That is the usual pattern: an extreme value moves the mean, range and standard deviation much more than the median. For any other change, check which values moved and where they sit in the sorted list. Use Desmos when the question wants actual numbers.

Practice question · Desmos Skills

Show the Detailed Explanation

Type A = [100, 100, 100, 100] and B = [0, 0, 100, 100, 100, 100, 200, 200]. Then type mean(A), median(A), mean(B) and median(B). All four show 100. Choice C.

Practice question · Desmos Skills

Show the Detailed Explanation

The question does not say which integers, so choose any six consecutive even integers. Type L = [2, 4, 6, 8, 10, 12], then mean(L) - median(L). Desmos shows 0, because the mean and the median are both 7. The answer is 0.

Box plots and dot plots

Desmos can draw both from a list. Type dotplot(L) or boxplot(L):

For the original list, the box plot runs from 5 to 15, with the box from 6 to 14 and the median line at 8.

In the SAT questions we teach, the plot is usually given to you, so the more useful direction is the other one. Read a dot plot into a values list and a counts list, then use repeat as in the frequency table section to get the mean or median. A box plot shows only five numbers (the smallest value, the first quartile, the median, the third quartile and the largest value), so you cannot get a mean from it. See box plots topic training for how to read one.

Key takeaways

  • Type the data as a named list: L = [5, 9, 6, 14, 8, 6, 15].
  • mean(L) and median(L) give the mean and median. stats(L) shows several measures at once.
  • stdev(L) is the sample standard deviation and stdevp(L) is the population one. For comparing two sets, look at how far the values sit from the mean and use Desmos to check.
  • There is no mode function. Use sort(L) and look for repeats. The range is max(L) - min(L).
  • For a frequency table, type the values and counts as two lists and use repeat(V, F).
  • An extreme value usually moves the mean, range and standard deviation much more than the median. Check the specific change before you decide.

Where to go next

Tutor? Use Resolve Prep with your students