Chapter 3: Data Description

Measures of Central Tendency

Parameters vs Statistics

Parameters: taken from the entire population

Statistics: taken from a sample

Mean

Mean: Arithmetic average

Notations:

Formula:

\[\mu =\frac {\Sigma X} {n}\]

where

Mean for Weighted Data

Calculation:

Formula:

\[\frac {\Sigma (X \cdot w)} {\Sigma w}\]

where

Mean for Grouped Data

Calculation: To find $\Sigma X$, sum the midpoints of each class, weighted by the class frequency

Formula:

\[\frac {\Sigma (f \cdot X_m)} {n}\]

where

Median

Median (MD): Value in the middle of the data set.

Median of grouped data

  1. Find the group with the median value
  2. Find the ratio of how many values into the group the median is ($\frac {value \space index}{class \space frequency}$)
  3. Apply the ratio to the class width; add to class lower boundary

Example:

Mode

Mode: most often occurring value

Midrange

Midrange (MR): average of min and max

Outliers

Outliers: Extremely high or low values

Distribution Shapes


Measures of Variation

Range

Range (R): Distance between the highest and lowest values

Formula:

\[X_{max}-X_{min}\]

Variance, Standard Deviation

Deviation: A value’s deviation is its distance from the mean

Population Variance $(\sigma ^2)$:

\[{ \frac{\Sigma(X-\mu)^2}{n} }\]

where:

Population Standard Deviation $(\sigma)$:

\[\sqrt { \frac{\Sigma(X-\mu)^2}{n} }\]

Sampled Data Standard Deviation $(s)$ and Variance $(s^2)$:

\[\sqrt { \frac{\Sigma(X-\overline{X})^2}{n-1} }\]

where:

There is a shortcut formula which does not require a precalculated mean:

\[\sqrt{ \frac{n(\Sigma X^2)-(\Sigma X)^2}{n(n-1)} }\]

Grouped Data Standard Deviation: Class midpoint’s deviation, weighted by class frequency

Shortcut formula:

\[\sqrt{ \frac{n(\Sigma f \cdot X_{m}^2)-(\Sigma f \cdot X_m)^2}{n(n-1)} }\]

Coefficient of Variation

Coefficient of Variation: Standard for variance measurement; ratio of standard deviation to mean

Distribution Rules

Range rule of thumb: The standard deviation is roughly a quarter of the range

Formula:

\[s \approx \frac {range}{4}\]

Chebyshev’s Theorem: finds percentage of values within $x$ standard deviations from the mean; applicable to all distribution shapes:

Theorem: Within $k$ standard deviations from the mean will be at least $(1- \frac{1}{k^2})\%$ of the values, where $k$ is greater than 1.

Empirical Rule: finds percentage of values within $x$ standard deviations from the mean in a normal / bell-shaped distribution:


Measures of Position

Z Score

Z score: Value’s standard-deviation units from the mean

Calculation: Distance from the mean divided by the standard deviation

Formula:

\[\frac{X-\overline{X}}{S};\frac{X-\mu}{\sigma}\]

Percentiles

Percentiles divide data into 100 groups

1% of data is below $P_1$, 20% below $P_{20}$ etc.

Calculation: To find the percentile of $X$ within a dataset with $n$ values, divide $X$’s cumulative frequency by $n$

Formula:

\[(\frac{X_{CF}}{n}\cdot100)\%\]

Tweaked Formula: To obtain a more representative view, we use a tweaked formula:

Calculation: The number of values less than $X$ plus 0.5, over $n$

Formula:

\[\frac { n _{ \< x} + 0.5 } {n} \cdot 100 \%\] \[X_{\lceil \frac{n\cdot P}{100} \rceil}\] \[\text{average}({X_{ \frac{n \cdot P}{100} }, \space X_{ \frac{n \cdot P}{100} +1}})\]

Quartiles

Quartiles divide data into 4 groups:

For a more direct quartile formula:

Interquartile Range

Interquartile range (IQR): $Q3-Q1$

Procedure to identify outliers: $Q1-(IRQ \cdot 1.5)$ or $Q3+(IRQ \cdot 1.5)$

Decile

Decile divides data into 10 groups; $D_1=P_{10}$…


Exploratory Data Analysis

Five number summary: Includes

Boxplot: Graph of five number summary: Vertical line at median; box extending to Q1 and Q3; horizontal line in middle of box to min and max.

Example: