Skip to main content

Registration is now open for this year's LibreFest! Join us virtually the week of July 13.

Register here
Medicine LibreTexts

3.1: Measures of the Center of the Data

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

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

    \( \newcommand{\dsum}{\displaystyle\sum\limits} \)

    \( \newcommand{\dint}{\displaystyle\int\limits} \)

    \( \newcommand{\dlim}{\displaystyle\lim\limits} \)

    \( \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{\longvect}{\overrightarrow}\)

    \( \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}\)

    The "center" of a data set is also a way of describing location. The two most widely used measures of the "center" of the data are the mean (average) and the median. To calculate the mean weight of 50 people, add the 50 weights together and divide by 50. To find the median weight of the 50 people, order the data and find the number that splits the data into two equal parts. The median is generally a better measure of the center when there are extreme values or outliers because it is not affected by the precise numerical values of the outliers. The mean is the most common measure of the center.

    Note

    The words “mean” and “average” are often used interchangeably. The substitution of one word for the other is common practice. The technical term is “arithmetic mean” and “average” is technically a center location. However, in practice among non-statisticians, “average" is commonly accepted for “arithmetic mean.”

    When each value in the data set is not unique, the mean can be calculated by multiplying each distinct value by its frequency and then dividing the sum by the total number of data values. The letter used to represent the sample mean is an x with a bar over it (pronounced “x bar”): xx" role="presentation" style="position: relative;">.

    The Greek letter μ (pronounced "mew") represents the population mean. One of the requirements for the sample mean to be a good estimate of the population mean is for the sample taken to be truly random.

    To see that both ways of calculating the mean are the same, consider the sample: 1; 1; 1; 2; 2; 3; 4; 4; 4; 4; 4

    \[\begin{array}{c}
    \bar{x}=\dfrac{1+1+1+2+2+3+4+4+4+4+4}{11}=2.7 \\
    \bar{x}=\dfrac{3(1)+2(2)+1(3)+5(4)}{11}=2.7
    \end{array}\]

    In the second calculation, the frequencies are 3, 2, 1, and 5.

    You can quickly find the location of the median by using the expression \(\dfrac{n+1}{2}\).

    The letter \(n\) is the total number of data values in the sample. If \(n\) is an odd number, the median is the middle value of the ordered data (ordered smallest to largest). If \(n\) is an even number, the median is equal to the two middle values added together and divided by two after the data has been ordered. For example, if the total number of data values is 97 , then \(\dfrac{n+1}{2}=\dfrac{97+1}{2}=49\). The median is the \(49^{\text {th }}\) value in the ordered data. If the total number of data values is 100 , then \(\dfrac{n+1}{2}=\dfrac{100+1}{2}=50.5\). The median occurs midway between the \(50^{\text {th }}\) and \(51^{\text {st }}\) values. The location of the median and the value of the median are not the same. The upper case letter \(M\) is often used to represent the median. The next example illustrates the location of the median and the value of the median.

    Exercise \(\PageIndex{1}\)

    A hospital administrator keeps track of the ages (in years) of patients visiting the emergency room over a one-week period (data are sorted from smallest to largest): 3; 4; 8; 8; 10; 11; 12; 13; 14; 15; 15; 16; 16; 17; 17; 18; 21; 22; 22; 24; 24; 25; 26; 26; 27; 27; 29; 29; 31; 32; 33; 33; 34; 34; 35; 37; 40; 44; 44; 47;

    Calculate the mean and the median.

    Answer

    The calculation for the mean is:

    \[\bar{x}=\dfrac{[3+4+(8)(2)+10+11+12+13+14+(15)(2)+(16)(2)+\ldots+35+37+40+(44)(2)+47]}{40}=23.6\]

    To find the median, \(M\), first use the formula for the location. The location is:

    \[\dfrac{n+1}{2}=\dfrac{40+1}{2}=20.5\]

    Starting at the smallest value, the median is located between the \(20^{\text {th }}\) and \(21^{\text {st }}\) values (the two 24 s ):

    \[\begin{array}{l}
    3 ; 4 ; 8 ; 8 ; 10 ; 11 ; 12 ; 13 ; 14 ; 15 ; 15 ; 16 ; 16 ; 17 ; 17 ; 18 ; 21 ; 22 ; 22 ; 24 ; 24 ; 25 ; 26 ; 26 ; 27 ; 27 ; 29 ; 29 ; \\
    31 ; 32 ; 33 ; 33 ; 34 ; 34 ; 35 ; 37 ; 40 ; 44 ; 44 ; 47 ; \\
    M=\dfrac{24+24}{2}=24
    \end{array}\]

    Exercise \(\PageIndex{2}\)

    Suppose that in a study tracking the annual healthcare costs for 50 individuals with a chronic disease, one person incurs an annual cost of $5,000,000 (due to highly specialized, long-term critical care) and the other 49 each incur a much lower, though substantial, annual cost of $30,000.

    Which is the better measure of the "center" of the typical annual healthcare cost: the mean or the median?

    Answer

    \[\begin{array}{l}
    \bar{x}=\dfrac{5,000,000+49(30,000)}{50}=129,400 \\
    M=30,000
    \end{array}\]

    (There are 49 people who incured \(\$ 30,000\) and one person who incured \(\$ 5,000,000\).)
    The median is a better measure of the "center" than the mean because 49 of the values are 30,000 and one is \(5,000,000\). The \(5,000,000\) is an outlier. The 30,000 gives us a better sense of the middle of the data.

    Another measure of the center is the mode. The mode is the most frequent value. There can be more than one mode in a data set as long as those values have the same frequency and that frequency is the highest. A data set with two modes is called bimodal.

    Exercise \(\PageIndex{3}\)

    Body Mass Index (BMI) percentile scores for 20 patients are as follows:

    50; 53; 59; 59; 63; 63; 72; 72; 72; 72; 72; 76; 78; 81; 83; 84; 84; 84; 90; 93

    Find the mode.

    Answer

    The most frequent score is 72, which occurs five times. Mode = 72.

    Example \(\PageIndex{1}\)

    When is the mode the best measure of the "center"? Consider a weight loss program that advertises a mean weight loss of six pounds the first week of the program. The mode might indicate that most people lose two pounds the first week, making the program less appealing.

    NOTE

    The mode can be calculated for qualitative data as well as for quantitative data. For example, in a survey asking individuals to identify their primary health risk factor from a list of options, if the data set of responses is: High Stress, High Stress, High Stress, Sedentary Lifestyle, Sedentary Lifestyle, Poor Diet, Family History, Smoking, High Blood Pressure, the mode is High Stress. This means 'High Stress' is the most frequently reported primary risk factor in this sample, which can guide public health intervention prioritization.

    The Law of Large Numbers and the Mean

    The Law of Large Numbers says that if you take samples of larger and larger size from any population, then the mean \(\bar{x}\) of the sample is very likely to get closer and closer to \(\mu\). This is discussed in more detail later in the text.

    Sampling Distributions and Statistic of a Sampling Distribution

    You can think of a sampling distribution as a relative frequency distribution with a great many samples. (See Sampling and Data for a review of relative frequency). Suppose thirty randomly selected students were asked the number of times they exercised the previous week. The results are in the relative frequency table shown below.

    Table \(\PageIndex{1}\)
    # of exercise sessions Relative Frequency
    0 \(\dfrac{5}{30}\)
    1 \(\dfrac{15}{30}\)
    2 \(\dfrac{6}{30}\)
    3 \(\dfrac{3}{30}\)
    4 \(\dfrac{1}{30}\)

    If you let the number of samples get very large (say, 300 million or more), the relative frequency table becomes a relative frequency distribution.

    A statistic is a number calculated from a sample. Statistic examples include the mean, the median and the mode as well as others. The sample mean \(\bar{x}\) is an example of a statistic which estimates the population mean \(\mu\).

    Calculating the Arithmetic Mean of Grouped Frequency Tables

    When only grouped data is available, you do not know the individual data values (we only know intervals and interval frequencies); therefore, you cannot compute an exact mean for the data set. What we must do is estimate the actual mean by calculating the mean of a frequency table. A frequency table is a data representation in which grouped data is displayed along with the corresponding frequencies. To calculate the mean from a grouped frequency table we can apply the basic definition of mean: mean \(=\dfrac{\text { data sum }}{\text { number of data values }}\) We simply need to modify the definition to fit within the restrictions of a frequency table.

    Since we do not know the individual data values we can instead find the midpoint of each interval. The midpoint is \(\dfrac{\text { lower boundary+upper boundary }}{2}\). We can now modify the mean definition to be

    Mean of Frequency Table \(=\dfrac{\sum f m}{\sum f}\) where \(f=\) the frequency of the interval and \(m=\) the midpoint of the interval.

    Exercise \(\PageIndex{4}\)

    A frequency table displaying percentile intervals of Body Mass Index (BMI) scores in a class of Exercise Physiology students is shown. Find the best estimate of the class mean.

    Table \(PageIndex{1}\)
    BMI Percentile Number of Students
    50–56.5 1
    56.5–62.5 0
    62.5–68.5 4
    68.5–74.5 4
    74.5–80.5 2
    80.5–86.5 3
    86.5–92.5 4
    92.5–98.5 1
    Answer

    Find the midpoints for all intervals

    Table \(PageIndex{2}\)
    BMI Percentile Midpoint
    50–56.5 53.25
    56.5–62.5 59.5
    62.5–68.5 65.5
    68.5–74.5 71.5
    74.5–80.5 77.5
    80.5–86.5 83.5
    86.5–92.5 89.5
    92.5–98.5 95.5

    Calculate the sum of the product of each interval frequency and midpoint. \(\sum f m\)

    \(53.25(1)+59.5(0)+65.5(4)+71.5(4)+77.5(2)+83.5(3)+89.5(4)+95.5(1)=1460.25\)

    \(\mu=\dfrac{\sum f m}{\sum f}=\dfrac{1460.25}{19}=76.86\)


    This page titled 3.1: Measures of the Center of the Data is shared under a CC BY-NC 4.0 license and was authored, remixed, and/or curated by OpenStax.