Statistics formulas are recipes. Each one tells you which numbers to combine and in what order. This page is about the order: how to substitute numbers into a formula and evaluate it exactly as written, including sums and square roots.
Order of operations
Every reader of a formula must get the same answer, so there is an agreed order:
- Anything grouped: brackets, the top and bottom of a fraction bar, everything under a square root.
- Powers and roots.
- Multiplication and division, left to right.
- Addition and subtraction, left to right.
So , not 30. And a fraction bar works like brackets: in the whole top is added before dividing, giving . On a calculator you must type those brackets yourself: (2 + 4 + 9)/3. Typing 2 + 4 + 9/3 divides only the 9 and gives 9.
Squares need care with negative numbers. : a square is never negative. On many calculators, -3^2 gives , because the square is done before the minus sign. Type (-3)^2.
Square roots
The square root is the nonnegative number whose square is . because . Notice that the square root of a number between 0 and 1 is larger than the number.
A square root covers everything under its bar. , but . On a calculator, put the whole quantity in the root’s brackets: sqrt(26/2).
The summation sign
The summation sign, the Greek capital letter , stands for "add up". For values , , :
- .
- : subtract 6 from each value, then add: .
- : subtract, square each result, then add: .
The order matters: in the squaring happens to each term before the adding.
A formula from start to finish
Evaluate in order. Find .
Brackets: , , .
Powers: , , .
The top of the fraction: . The bottom: .
Divide: .
Square root last: .
On a calculator in one line: sqrt(((2-5)^2 + (4-5)^2 + (9-5)^2)/(3-1)).
Notice what the distances do without squares: . Distances from the average always add to 0, because the values above and below balance. Squaring makes every distance count as positive, which is why the formula squares before adding. You will meet this exact formula, and the reason for the on the bottom, in the next topic.
Show your work as the exam asks
On the AP® Statistics exam, a calculation earns full credit when it shows three things: the formula, the numbers put into it, and the result. Write , not just 1.5. If a number is wrong, a grader can then see that your method was right.