3.2: Order of Operations
Learning Outcomes
- Use the order of operations to correctly perform multi-step arithmetic
- 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:
- Parentheses
- Exponents
- Multiplication and Division
- 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.2.1
Evaluate:
Solution
We start with what is inside the parentheses: . Since exponents comes before addition, we find first. We now have
We continue inside the parentheses and perform the multiplication: .
This gives
Since division comes before addition and subtraction, we next calculate to get
Since subtraction and addition are tied, we go from left to right. We calculate: to get
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.2.2
Evaluate
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.2.3: z-scores
The “z-score” is defined by:
Find the z-score rounded to one decimal place if:
Solution
Once again, if we put these numbers into the z-score formula and use a computer or calculator by entering 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
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
VIDEO RESOURCES
SECTION WRAP-UP