Skills Beta

Formulas, Order of Operations and Square Roots

3 min read · freeNot practiced

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:

  1. Anything grouped: brackets, the top and bottom of a fraction bar, everything under a square root.
  2. Powers and roots.
  3. Multiplication and division, left to right.
  4. Addition and subtraction, left to right.

So 6+4×3=6+12=186 + 4 \times 3 = 6 + 12 = 18, not 30. And a fraction bar works like brackets: in 2+4+93\frac{2 + 4 + 9}{3} the whole top is added before dividing, giving 153=5\frac{15}{3} = 5. 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. (−3)2=(−3)(−3)=9(-3)^2 = (-3)(-3) = 9: a square is never negative. On many calculators, -3^2 gives −9-9, because the square is done before the minus sign. Type (-3)^2.

Square roots

The square root a\sqrt{a} is the nonnegative number whose square is aa. 0.25=0.5\sqrt{0.25} = 0.5 because 0.5×0.5=0.250.5 \times 0.5 = 0.25. 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. 262=13≈3.61\sqrt{\frac{26}{2}} = \sqrt{13} \approx 3.61, but 262≈2.55\frac{\sqrt{26}}{2} \approx 2.55. 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 ∑\sum, stands for "add up". For values x1=3x_1 = 3, x2=5x_2 = 5, x3=10x_3 = 10:

  • ∑xi=3+5+10=18\sum x_i = 3 + 5 + 10 = 18.
  • ∑(xi−6)\sum (x_i - 6): subtract 6 from each value, then add: (−3)+(−1)+4=0(-3) + (-1) + 4 = 0.
  • ∑(xi−6)2\sum (x_i - 6)^2: subtract, square each result, then add: 9+1+16=269 + 1 + 16 = 26.

The order matters: in ∑(xi−6)2\sum (x_i - 6)^2 the squaring happens to each term before the adding.

A formula from start to finish

Three values, 2, 4 and 9, as dots on a number line from 0 to 10. A plum line marks their average, (2 + 4 + 9) / 3 = 5. Arrows from the average to each value show the distances 2 − 5 = −3, 4 − 5 = −1 and 9 − 5 = 4.
Figure 1. The values 2, 4 and 9, their average 5, and the distance of each value from the average. LevlPrep original diagram.

Evaluate in order. Find (2−5)2+(4−5)2+(9−5)23−1\sqrt{\frac{(2 - 5)^2 + (4 - 5)^2 + (9 - 5)^2}{3 - 1}}.

Brackets: 2−5=−32 - 5 = -3, 4−5=−14 - 5 = -1, 9−5=49 - 5 = 4.

Powers: (−3)2=9(-3)^2 = 9, (−1)2=1(-1)^2 = 1, 42=164^2 = 16.

The top of the fraction: 9+1+16=269 + 1 + 16 = 26. The bottom: 3−1=23 - 1 = 2.

Divide: 262=13\frac{26}{2} = 13.

Square root last: 13≈3.61\sqrt{13} \approx 3.61.

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: −3−1+4=0-3 - 1 + 4 = 0. 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 3−13 - 1 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 62−508=128=1.5\frac{62 - 50}{8} = \frac{12}{8} = 1.5, not just 1.5. If a number is wrong, a grader can then see that your method was right.

Spot a mistake on this page?