Skip to main content
Statistics LibreTexts

21.3.7: Using Summation Notation

  • Page ID
    36298
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

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

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

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

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    Learning Outcomes

    1. Evaluate an expression that includes summation notation.
    2. Apply summation notation to calculate statistics.

    This notation is called summation notation and appears as:

    \[\sum_{i=1}^{n}a_i \nonumber \]

    In this notation, the \(a_i\) is an expression that contains the index \(i\) and you plug in 1 and then 2 and then 3 all the way to the last number \(n\) and then add up all of the results.

    Example \(\PageIndex{1}\)

    Calculate

    \[\sum_{i=1}^{4}3i\nonumber \]

    Solution

    First notice that i = 1, then 2, then 3 and finally 4. We are supposed to multiply each of these by 3 and add them up:

    \[ \begin{align*} \sum_{i=1}^{4}3i &= 3\left(1\right)+3\left(2\right)+3\left(3\right)+3\left(4\right) \\[4pt] &=3+6+9+12\:=\:30 \end{align*}\nonumber \]

    Example \(\PageIndex{2}\)

    The formula for the sample mean, sometimes called the average, is

    \[\bar x\:=\:\frac{\sum_{i-1}^nx_i}{n}\nonumber \]

    A survey was conducted asking 8 older adults how many sexual partners they have had in their lifetime. Their answers were {4,12,1,3,4,9,24,7}. Use the formula to find the sample mean.

    Solution

    Notice that the numerator of the formula just tells us to add the numbers up. Computing the numerator first gives:

    \[\sum_{i=1}^8x_i=4+12+1+3+4+9+24+7\:=64\nonumber \]

    Now that we have the numerator calculated, the formula tells us to divide by n, which is just 8. We have:

    \[\bar x\:=\frac{\:64}{8}=8\nonumber \]

    Thus, the sample mean number of sexual partners this group had in their lifetimes is 8.

    Example \(\PageIndex{3}\)

    The next most important statistic is the standard deviation. The formula for the sample standard deviation is:

    \[s=\sqrt{\frac{\sum_{i=1}^n\left(x_i-\bar x\right)^2}{n-1}}\nonumber \]

    Let's consider the data in the previous example. Find the standard deviation.

    Solution

    The formula is quite complicated, but if tackle it one piece at a time using the order of operations properly, we can succeed in finding the sample standard deviation for the data. Notice that there are parentheses, so based on the order of operations, we must do the subtraction within the parentheses first. Since this is all part of the sum, we have eight different subtractions to do. From our calculations in the previous example, the sample mean was \(\bar x = 8\). We compute the 8 subtractions:

    \[4-\:8\:=\:-4,\:\:12-8=4,\:1-8=-7,\:3-8=-5,\:\nonumber \]

    \[\:4-8=-4,\:9-8=1,\:24-8=16,\:7-8=-1\nonumber \]

    The next arithmetic to do is to square each of the differences to get:

    \[\left(-4\right)^2=16,\:\:\left(4\right)^2=16,\left(-7\right)^2=49,\:\left(-5\right)^2=25,\:\nonumber \]

    \[\left(-4\right)^2=16,\:1^2=1,\:16^2=256,\:(-1)^2=1\nonumber \]

    Now we have all the entries in the summation, so we add them all up:

    \[16+16+49+25+16+1+256+1=380\nonumber \]

    Now we can write

    \[s=\sqrt{\frac{380}{8-1}}=\sqrt{\frac{380}{7}}\nonumber \]

    We can put this into the calculator or computer to get:

    \[s=\sqrt{\frac{380}{7}}=\:7.3679\nonumber \]

    Exercise: expected value

    The expected value, EV, is defined by the formula

    \[EV=\sum_{i=1}^nx_i\:P\left(x_i\right)\nonumber \]

    Where \(x_i\) are the possible outcomes and \(P\left(x_i\right)\) are the probabilities of the outcomes occurring. Suppose the table below shows the number of eggs in a bald eagle clutch and the probabilities of that number occurring.

    Probability Distribution Table with Outcomes, x, and probabilities, P(x)
    x 1 2 3 4
    P(x) 0.2 0.4 0.3 0.1

    Find the expected value.

    Ex 1: Find a Sum Written in Summation / Sigma Notation

    Summation Notation and Expected Value


    This page titled 21.3.7: Using Summation Notation is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by Larry Green.

    • Was this article helpful?