Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Statistics LibreTexts

3.3: Order of Operations

( \newcommand{\kernel}{\mathrm{null}\,}\)

Learning Outcomes

  1. Use the order of operations to correctly perform multi-step arithmetic
  2. Apply the order of operations to statistics related complex questions.

When we are given multiple arithmetic operations within a calculation, there is a, established order that we must do them in based on how the expression is written. Understanding these rules is especially important when using a calculator, since calculators are programmed to strictly follow the order of operations. This comes up in every topic in statistics, so knowing the order of operations is an essential skill for all successful statistics students to have.

PEMDAS

The order of operations are as follows:

  1. Parentheses
  2. Exponents
  3. Multiplication and Division
  4. Addition and Subtraction

When there is a tie, the rule is to go from left to right.

Notice that Multiplication and division are listed together as item 3. If you see multiplication and division in the same expression the rule is to go from left to right. Similarly, if you see addition and subtraction in the same expression the rule is to from go left to right. The same goes for two of the same arithmetic operators.

Example 3.3.1

Evaluate: 206÷3+(2×32)

Solution

We start with what is inside the parentheses: 2+32. Since exponents comes before addition, we find 32=9 first. We now have

206÷3+(2×9)

We continue inside the parentheses and perform the multiplication: 2×9=18.

This gives

206÷3+18

Since division comes before addition and subtraction, we next calculate 6÷3=2 to get

202+18

Since subtraction and addition are tied, we go from left to right. We calculate: 202=18 to get

18+18=36

The key to arriving at the correct answer is to go slow and write down each step in the arithmetic.

Hidden Parentheses

You may think that since you always have a calculator or computer at hand, that you don't need to worry about order of operations. Unfortunately, the way that expressions are written is not the same as the way that they are entered into a computer or calculator. In particular, exponents need to be treated with care as do fractions bars.

Example 3.3.3

Evaluate 2.162

Solution

First, note that we use the symbol "^" to tell a computer or calculator to exponentiate. If you were to enter 2.1^6-2 into a computer, it would give you the answer of 83.766121 which is not correct, since the computer will first expontiate and then subtract. Since the subtraction is within the exponent, it must be performed first. To tell a calculator or computer to perform the subtraction first, we use parentheses:

2.1^(6 - 2) = 19.4481

Example 3.3.4: z-scores

The "z-score" is defined by:

z=xμσ

Find the z-score rounded to one decimal place if:

x=2.323,μ=1.297,σ=0.241

Solution

Once again, if we put these numbers into the z-score formula and use a computer or calculator by entering 3.3231.297÷0.241 we will get -0.259 which is the wrong answer. Instead, we need to know that the fraction bar separates the numerator and the denominator, so the subtraction must be done first. We compute

2.3231.2970.241=(2.3231.297)÷0.241=4.25726141

Now round to one decimal place to get 4.3. Notice that if you rounded before you did the arithmetic, you would get exactly 5 which is very different. 4.3 is more accurate.

Exercise

Suppose the equation of the regression line for the number of pairs of socks a person owns, y, based on the number of pairs of shoes, x, the person owns is

ˆy=6+2x

Use this regression line to predict the number of pairs of socks a person owns for a person who owns 4 pairs of shoes.


This page titled 3.3: Order of Operations is shared under a CC BY license and was authored, remixed, and/or curated by Larry Green.

  • Was this article helpful?

Support Center

How can we help?