Comprehensive Notes on Statistics and Data Analysis

Introduction to Statistics & The "Smelling Parkinson's" Investigation

  • Definition of Statistics

    • Statistics is defined as the science and art of collecting, analyzing, and drawing conclusions from data.

  • Class Activity: Smelling Parkinson's

    • Objective: Collect data to determine whether individuals can correctly identify Parkinson's disease by smell, and define a statistic both verbally and in writing.

    • Activity Procedure:

    • Step 1 (Preparation): Obtain 1212 cards labeled "Parkinson's" and "No Parkinson's". Shuffle the cards thoroughly before beginning.

    • Step 2 (The Blind Guess): One partner guesses the condition without looking at the card. The other partner secretly records the number of correct guesses.

    • Step 3 (Switch & Repeat): Switch roles between partners and repeat the guessing procedure twice each, ensuring the cards are reshuffled prior to every trial.

    • Step 4 (Class Data Collection): Plot the total number of correct guesses on the class number line for collective comparison.

    • Discussion & Inference:

    • Data Identification: Evaluated how many individuals correctly identified 1111 or more shirts.

    • Inference Question: Evaluated whether an individual (such as Joy) who achieves a high success rate is simply a lucky guesser or possesses a genuine biological ability to smell Parkinson's disease.

The Statistical Problem-Solving Process

  • Four-Step Statistical Problem-Solving Process

    • Step 1: Formulate Questions

    • Clarify the overarching research problem.

    • Formulate one or more valid statistical investigative questions.

    • Step 2: Collect Data

    • Design and implement a detailed plan to collect appropriate, representative data.

    • Step 3: Analyze Data

    • Select and execute appropriate graphical and numerical methods to analyze the collected data.

    • Step 4: Interpret Results

    • Draw formal conclusions based on the data analysis, ensuring a direct answer to the original investigative question(s).

  • Valid Statistical Investigative Questions

    • A valid statistical investigative question must be centered on a characteristic or topic where the underlying data varies.

    • Example Study (Out to Lunch):

    • Scenario: Two friends evaluate whether ordering inside or using the drive-thru is faster during a short lunch period. Each day, they flip a coin to randomly choose inside or drive-thru, recording the exact time elapsed from parking lot entry to receiving food. Over several weeks, analysis shows ordering inside took an average of 2 minutes 34 seconds2\text{ minutes } 34\text{ seconds} less than the drive-thru.

    • Investigative Question: "During all possible lunch visits to this restaurant, is the average time to receive food when ordering inside different than the average time to receive food when ordering at the drive-thru?"

Fundamental Statistical Nomenclature

  • Core Definitions

    • Population: The entire group of items or individuals about which information is desired.

    • Parameter: A fixed numerical value that describes a specific characteristic of an entire population.

    • Sample: A subset of items or individuals selected from a population from which data is actively collected.

    • Statistic: A numerical value calculated from a sample that describes a specific characteristic of that sample.

    • Census: An investigation or survey that collects data from every single item or individual in the total population.

  • Identification Scenarios

    • Scenario 1 (Quality Control):

    • Context: A quality control manager selects 1010 computer monitors from 5050 monitors produced during a specific hour to inspect for construction and performance defects.

    • Population: All 5050 computer monitors produced in the factory during that specific hour.

    • Sample: The 1010 computer monitors selected and inspected by the manager.

    • Scenario 2 (Political Polling):

    • Context: Prior to an election, a news organization surveys 10001000 registered voters to predict the proportion who prefer Candidate A for president.

    • Population: All registered voters.

    • Sample: The 10001000 registered voters surveyed by the news organization.

Observational Units and Variable Classification

  • Basic Definitions

    • Observational Unit: An individual entity or item described in a data set or statistical study.

    • Variable: Any specific characteristic or property that can take different values across different observational units.

  • Types of Variables

    • Categorical Variable: Takes values that are non-numerical labels or category designations, placing each observational unit into a distinct group.

    • Quantitative Variable: Takes numerical values that represent measurable quantities (counts or measurements).

    • Exception Warning: Not all numerical values represent quantitative variables; numbers that serve as labels or codes are categorical.

    • Non-Measurement Numerical Examples: Time of day, women's clothing sizes, zip codes, area codes, jersey numbers.

    • Sub-classifications of Quantitative Variables:

    • Discrete Quantitative Variable: Takes a countable set of possible values with distinct gaps between them on a number line.

    • Continuous Quantitative Variable: Takes any possible value within a continuous interval on a number line.

  • Classification Practice Examples

    • Favorite movie: Categorical

    • Run time for a movie: Continuous Quantitative

    • Number of shoes in a closet: Discrete Quantitative

    • Weight of a newborn baby: Continuous Quantitative

    • Temperature of an oven: Continuous Quantitative

    • Brand of shoe worn: Categorical

    • Number of cans of soup in a pantry: Discrete Quantitative

    • Current grade level: Categorical

Displaying & Summarizing Categorical Data

  • Fundamental Terms

    • Distribution: Describes what values a variable takes and how frequently it takes each of those values.

    • TAILS Standard Checklist for Graphs:

    • T: Title (clear description of data)

    • A: Axis (correct orientation and labels)

    • I: Increments (consistent step spacing)

    • L: Label (units specified)

    • S: Scale (appropriate range starting from zero where applicable)

  • Tables for Categorical Data

    • Frequency Table: Displays the absolute count (number) of observational units belonging to each variable category.

    • Relative Frequency Table: Displays the proportion or percentage of observational units belonging to each variable category.

  • Graphical Displays for One Categorical Variable

    • Bar Chart:

    • A graph for a single categorical variable where each category is represented by an individual bar.

    • Bar height indicates either category frequency or relative frequency.

    • Bars must not touch each other, emphasizing the discrete nature of categories.

    

Bar Chart Example
  • Pie Chart:

    • A circular graph for a single categorical variable where each category is displayed as a segment or "slice" of the whole pie.

    • The central angle and area of each slice are strictly proportional to the category frequency or relative frequency.

    

Pie Chart Example
  • Class Data Sets & Worked Examples

    • Shoe Brands in Class (n=26n = 26 total):

    • Birks/Slides: Frequency = 99, Relative Frequency = 926≈34.6%\frac{9}{26} \approx 34.6\%

    • Adidas: Frequency = 55, Relative Frequency = 526≈19.2%\frac{5}{26} \approx 19.2\%

    • New Balance (NB): Frequency = 44, Relative Frequency = 426≈15.4%\frac{4}{26} \approx 15.4\%

    • Nike: Frequency = 33, Relative Frequency = 326≈11.5%\frac{3}{26} \approx 11.5\%

    • Converse: Frequency = 33, Relative Frequency = 326≈11.5%\frac{3}{26} \approx 11.5\%

    • Under Armour (UA): Frequency = 11, Relative Frequency = 126≈3.8%\frac{1}{26} \approx 3.8\%

    • Steve Madden (SM): Frequency = 11, Relative Frequency = 126≈3.8%\frac{1}{26} \approx 3.8\%

    • Birth Month by Season (n=28n = 28 total):

    • Fall (September: 22, October: 44, November: 22): Frequency = 88, Relative Frequency = 828≈28.6%\frac{8}{28} \approx 28.6\%

    • Winter (December: 33, January: 22, February: 33): Frequency = 88, Relative Frequency = 828≈28.6%\frac{8}{28} \approx 28.6\%

    • Spring (March: 44, April: 22, May: 11): Frequency = 77, Relative Frequency = 728=25.0%\frac{7}{28} = 25.0\%

    • Summer (June: 00, July: 22, August: 33): Frequency = 55, Relative Frequency = 528≈17.8%\frac{5}{28} \approx 17.8\%

    • Favorite Elective in an Elementary School:

    • Data counts: Art = 66, Music = 99, Physical Education = 00, World Language = 44, Technology = 44.

    

Favorite Elective Bar Chart

Comparing Categorical Distributions & Misleading Visualizations

  • Comparing Distributions

    • Side-by-Side Bar Chart:

    • A visual representation comparing a single categorical variable across two or more distinct groups.

    • Displays separate adjacent bars for each group within every category level.

    • Heights represent frequency or relative frequency to enable direct visual comparison.

    

Car Type and Origin Comparison

    

Coffee Shop Frequency by City
  • Scaling Caution: Always inspect vertical axis ranges and units carefully when comparing distributions across separate visual displays.

    • Misleading Components in Graphical Displays

  • Vertical axis scale does not start at zero (00), artificially inflating relative group differences.

  • Inconsistent or non-uniform tick marks and interval increments along the vertical axis.

  • Area/pictogram distortion where visual representation scale does not align with actual numerical values.

  • Percentages in pie charts or whole-part displays fail to sum to 100%100\%.

    • Examples of Misleading Graphs

  • Truncated Axis Bar Graph: A vertical axis starting at 6060 instead of 00 makes a minor difference between 7575 and 7878 visually appear three times larger.

    

Truncated Axis Bar Graph
  • Top Tax Rate Graphic: Visualizing a tax increase from 35%35\% to 39.6%39.6\% using a truncated baseline starting at 34%34\%, making a 4.6%4.6\% rise look like a 400%400\% expansion.

    

Fox News Bush Tax Cuts Graphic
  • Court Agreement Poll Graphic: Truncating the vertical axis from 50%50\% to 64%64\% inflates a 62%62\% vs 54%54\% split into a massive visual gap.

    

Court Agreement Graphic
  • 2012 GOP Primary Support Graphic: A pie chart displaying Palin 70%70\%, Huckabee 63%63\%, and Romney 60%60\%, which incorrectly sums to 193%193\%.

    

2012 Presidential Run Pie Chart

Graphical Displays for Quantitative Data

  • Dotplots

    • Definition: A plot that displays each individual quantitative data value as a dot directly above its location on a continuous number line.

    • Construction Method:

    1. Draw a horizontal line and label it with the variable name and unit of measurement.

    2. Establish an appropriate scale using equal spacing based on the data minimum and maximum.

    3. Place stacked dots of identical size vertically above each value corresponding to its frequency.

    • Sibling Count Example (n=27n = 27):

    • Data values: 2,5,0,2,3,1,3,1,1,2,2,1,2,4,2,0,1,1,4,0,1,2,3,1,3,3,32, 5, 0, 2, 3, 1, 3, 1, 1, 2, 2, 1, 2, 4, 2, 0, 1, 1, 4, 0, 1, 2, 3, 1, 3, 3, 3

  • Stem-and-Leaf Plots

    • Definition: A graph for quantitative data that separates each individual data point into a stem (all leading digits) and a leaf (the final rightmost digit).

    • Construction Method:

    1. List stems in a vertical column from smallest to largest, separated by a vertical dividing line.

    2. Write leaves horizontally to the right of their stem in strictly increasing numerical order.

    3. Include an explicit key explaining stem-leaf meaning (e.g., 1∣7=17 birds1|7 = 17\text{ birds} or 3∣5=35 minutes3|5 = 35\text{ minutes}).

  • Histograms

    • Definition: A graph for a quantitative variable that groups adjacent data values into equal-width class intervals on the horizontal axis, using bars to represent interval frequency or relative frequency.

    • Construction Method:

    1. Choose equal-width intervals (at least 55 intervals are recommended).

    2. Construct a frequency table listing all intervals and observed counts.

    3. Draw, label, and scale axes accurately.

    4. Draw contiguous vertical bars with no gaps between bars (unless an interval has a frequency of 00).

Describing Shapes of Quantitative Distributions

  • Symmetry and Skewness

    • Roughly Symmetric: The right and left halves of the distribution are approximate mirror images of each other.

    

Roughly Symmetric Distribution
  • Skewed to the Left (Negative Skew): The left side (lower-value tail) extends much farther out than the right side.

    

Skewed Left Distribution
  • Skewed to the Right (Positive Skew): The right side (higher-value tail) extends much farther out than the left side.

    

Skewed Right Distribution
  • Modality and Uniformity

    • Approximately Uniform: Frequencies across all possible intervals or categories are roughly equal.

    

Approximately Uniform Distribution
  • Unimodal: Distribution containing a single distinct major peak.

    

Unimodal Distribution
  • Bimodal: Distribution containing two distinct major peaks.

    

Bimodal Distribution
  • Examples of Distribution Shapes

    • Birds at a Watering Hole (Stemplot): Skewed right with stems 11 through 66.

    

Birds Stemplot
  • Books Read Last Summer (Dotplot): Unimodal, heavily skewed to the right.

    

Books Read Dotplot
  • Social Media Checking (Back-to-Back Stemplot): Compares men and women across stems 00 through 66.

    

Social Media Back-to-Back Stemplot

Describing Quantitative Distributions: The S.U.C.C.S. Framework

  • The S.U.C.C.S. Acronym

    • Shape: Describe symmetry, skewness, modality, or uniformity.

    • Unusual Points: Identify gaps, clusters, or potential outliers.

    • Center: State the mean or median.

    • Context: Explicitly incorporate the variable name and units of measurement.

    • Spread: Report measures of variability such as Range, Standard Deviation, or Interquartile Range (IQRIQR).

Numerical Measures of Center

  • Mean

    • Definition: The arithmetic average of all individual values in a data set.

    • Formula:     xˉ=∑i=1nxin=x1+x2+⋯+xnn\bar{x} = \frac{\sum_{i=1}^n x_i}{n} = \frac{x_1 + x_2 + \dots + x_n}{n}

    • Symbols:

    • Sample Mean (Statistic): xˉ\bar{x} (pronounced "x-bar")

    • Population Mean (Parameter): μ\mu (Greek letter mu, pronounced "mew")

    • Properties: Highly non-resistant; pulled strongly in the direction of extreme values or skewness.

  • Median

    • Definition: The exact physical midpoint of an ordered distribution such that half the observations are smaller and half are larger.

    • Calculation:

    1. Arrange data values in order from smallest to largest.

    2. If sample size nn is odd, the median MM is the single middle value.

    3. If sample size nn is even, the median MM is the average of the two middle values.

    • Properties: Resistant to extreme values and outliers.

  • Mode

    • Definition: The specific observation value occurring with the highest frequency.

    • Caution: Distributions can possess no mode, one mode, or multiple modes; it is not guaranteed to fall near the center.

  • Worked Examples: Calculating Center & Impact of Extreme Values

    • Dataset 1 (n=6n = 6): 17,48,52,82,100,15817, 48, 52, 82, 100, 158

    • Sum = 457457

    • Sample Mean xˉ=4576≈76.167\bar{x} = \frac{457}{6} \approx 76.167

    • Sample Median M=52+822=67M = \frac{52 + 82}{2} = 67

    • Dataset 2 (Adding Extreme Outlier 308308, n=7n = 7): 17,48,52,82,100,158,30817, 48, 52, 82, 100, 158, 308

    • Sum = 765765

    • Sample Mean xˉ=7657≈109.29\bar{x} = \frac{765}{7} \approx 109.29 (increases by +33.12+33.12)

    • Sample Median M=82M = 82 (increases by +15+15)

    • Conclusion: The mean shifts dramatically when an outlier is added, demonstrating its non-resistant nature, whereas the median shifts moderately.

  • Resistance Definition

    • A statistical measure is defined as resistant if extreme values or outliers have minimal influence on its calculated value.

  • Impact of Skewness on Center

    • Skewed Left: Mean<Median<Mode\text{Mean} < \text{Median} < \text{Mode}

    • Symmetric: Mean≈Median≈Mode\text{Mean} \approx \text{Median} \approx \text{Mode}

    • Skewed Right: Mode<Median<Mean\text{Mode} < \text{Median} < \text{Mean}

  

Impact of Skewness on Measures of Center

Numerical Measures of Spread (Variability)

  • Range

    • Definition: The total distance between the maximum and minimum values in a distribution.

    • Formula:     Range=Maximum−Minimum\text{Range} = \text{Maximum} - \text{Minimum}

    • Caution: Expressed as a single calculated number, never as an interval (A−BA - B). It is completely non-resistant.

  • Standard Deviation

    • Definition: A measure of the typical distance of data values in a distribution from their sample mean.

    • Symbols:

    • Sample Standard Deviation (Statistic): ss

    • Population Standard Deviation (Parameter): σ\sigma (Greek letter sigma)

    • Step-by-Step Calculation Formula:

    1. Compute sample mean xˉ\bar{x}.

    2. Calculate individual deviations: deviation=xi−xˉ\text{deviation} = x_i - \bar{x}.

    3. Square each deviation and sum them: ∑i=1n(xi−xˉ)2\sum_{i=1}^n (x_i - \bar{x})^2.

    4. Divide by n−1n - 1 (sample variance) and take the square root:        s=∑i=1n(xi−xˉ)2n−1s = \sqrt{\frac{\sum_{i=1}^n (x_i - \bar{x})^2}{n - 1}}

    • Properties of Standard Deviation:

    • Always non-negative (s≥0s \ge 0); s=0s = 0 only when every observation takes the exact same value.

    • Larger spread around the mean produces larger values of ss.

    • Highly non-resistant to outliers.

    • Measures variation relative to the mean; should only be paired with the mean as a measure of center.

  • Worked Example: Standard Deviation Calculation

    • Data Sample: Number of close friends for 66 high school students: 1,2,2,3,3,61, 2, 2, 3, 3, 6

    • Step 1 (Mean): xˉ=1+2+2+3+3+66=176≈2.833\bar{x} = \frac{1 + 2 + 2 + 3 + 3 + 6}{6} = \frac{17}{6} \approx 2.833

    • Step 2 (Deviations):     (1−2.833)=−1.833(1 - 2.833) = -1.833     (2−2.833)=−0.833(2 - 2.833) = -0.833     (2−2.833)=−0.833(2 - 2.833) = -0.833     (3−2.833)=+0.167(3 - 2.833) = +0.167     (3−2.833)=+0.167(3 - 2.833) = +0.167     (6−2.833)=+3.167(6 - 2.833) = +3.167

    • Step 3 (Squared Deviations & Sum):     (−1.833)2+(−0.833)2+(−0.833)2+(0.167)2+(0.167)2+(3.167)2≈14.833(-1.833)^2 + (-0.833)^2 + (-0.833)^2 + (0.167)^2 + (0.167)^2 + (3.167)^2 \approx 14.833

    • Step 4 (Final Value):     s=14.8336−1=2.9667≈1.722s = \sqrt{\frac{14.833}{6 - 1}} = \sqrt{2.9667} \approx 1.722

    • Interpretation: The number of close friends these students have typically varies from the mean by about 1.7221.722 close friends.

  • Comparing Standard Deviations

    • Data A: 11,12,13,16,16,17,18,2111, 12, 13, 16, 16, 17, 18, 21 →\rightarrow xˉ=15.5\bar{x} = 15.5, s=3.338s = 3.338

    • Data B: 14,15,15,15,16,16,16,1714, 15, 15, 15, 16, 16, 16, 17 →\rightarrow xˉ=15.5\bar{x} = 15.5, s=0.9258s = 0.9258

    • Data C: 11,11,11,12,19,20,20,2011, 11, 11, 12, 19, 20, 20, 20 →\rightarrow xˉ=15.5\bar{x} = 15.5, s=4.57s = 4.57

  

Comparing Standard Deviations
  • Interquartile Range (IQRIQR)

    • Definition: The distance between the first quartile (Q1Q_1) and third quartile (Q3Q_3) of an ordered distribution.

    • Formula:     IQR=Q3−Q1IQR = Q_3 - Q_1

    • Quartile Definitions:

    • First Quartile (Q1Q_1): The median of all data values located strictly to the left of the overall median.

    • Third Quartile (Q3Q_3): The median of all data values located strictly to the right of the overall median.

    • Properties: Resistant measure of variability; summarizes the spread of the middle 50%50\% of data.

    • Interpretation Standard: "The range of the middle half of the [context] is [IQRIQR value] [units]."

  • Selection Rule for Center & Spread Measures

    • Symmetric Distributions: Report Mean and Standard Deviation.

    • Skewed Distributions / Presence of Outliers: Report Median and Interquartile Range (IQRIQR) due to their resistance.

Outlier Identification Methods & Boxplots

  • Reasons to Identify Outliers

    • Detect data collection, measurement, or recording errors.

    • Highlight rare, notable, or ecologically significant occurrences.

    • Identify points heavily distorting non-resistant summary statistics.

  • Mathematical Tests for Outliers

    • Method 1: 1.5×IQR1.5 \times IQR Rule

    • Calculate IQR=Q3−Q1IQR = Q_3 - Q_1.

    • Lower Boundary Fence: Q1−1.5×IQRQ_1 - 1.5 \times IQR

    • Upper Boundary Fence: Q3+1.5×IQRQ_3 + 1.5 \times IQR

    • Any value falling strictly below the lower fence or strictly above the upper fence is classified as an outlier.

    • Method 2: 2 Standard Deviations2\text{ Standard Deviations} Rule

    • Lower Boundary Fence: xˉ−2s\bar{x} - 2s

    • Upper Boundary Fence: xˉ+2s\bar{x} + 2s

    • Any value falling strictly outside these bounds is classified as an outlier.

  • Outlier Method Comparison Practice (n=16n = 16)

    • Summary Data: Mean = 27.15627.156, SD = 2.3282.328, Min = 20.920.9, Q1=26.55Q_1 = 26.55, Median = 27.1527.15, Q3=27.95Q_3 = 27.95, Max = 31.431.4

    • 1.5×IQR1.5 \times IQR Method:

    • IQR=27.95−26.55=1.40IQR = 27.95 - 26.55 = 1.40

    • Lower Fence: 26.55−1.5(1.40)=24.4526.55 - 1.5(1.40) = 24.45. Since Min (20.920.9) <24.45< 24.45, low outliers exist.

    • Upper Fence: 27.95+1.5(1.40)=30.0527.95 + 1.5(1.40) = 30.05. Since Max (31.431.4) >30.05> 30.05, high outliers exist.

    • 2 SD2\text{ SD} Method:

    • Lower Fence: 27.156−2(2.328)=22.5027.156 - 2(2.328) = 22.50. Since Min (20.920.9) <22.50< 22.50, low outliers exist.

    • Upper Fence: 27.156+2(2.328)=31.81227.156 + 2(2.328) = 31.812. Since Max (31.431.4) <31.812< 31.812, no high outliers exist.

    • Analytical Note: Differences between methods occur because skewness disproportionately pulls the mean and standard deviation relative to quartiles.

  • Boxplots

    • Definition: A visual graph based on the Five-Number Summary (Minimum, Q1Q_1, Median, Q3Q_3, Maximum).

    • Construction Method:

    1. Calculate the Five-Number Summary.

    2. Identify outliers using the 1.5×IQR1.5 \times IQR rule.

    3. Draw and scale an explicit horizontal or vertical axis.

    4. Draw a rectangular box extending from Q1Q_1 to Q3Q_3, inserting a vertical line inside at the Median.

    5. Plot outliers individually as asterisks (∗*) or small circles.

    6. Extend whiskers from the box edges to the minimum and maximum data values that are not outliers.

    • Pros: Quick visual summary of center (MM) and spread (IQRIQR); easily identifies outliers.

    • Cons: Hides details of shape (peaks, gaps, clusters); omits individual data point values.

  

Boxplot Anatomy
  • Worked Example: Unit 1 Quiz Completion Times (n=12n = 12)

    • Data Set: 10,19,20,21,22,22,23,24,24,25,26,2610, 19, 20, 21, 22, 22, 23, 24, 24, 25, 26, 26

    • Five-Number Summary:

    • Minimum: 1010

    • Q1Q_1: 20.520.5

    • Median: 22.522.5

    • Q3Q_3: 2525

    • Maximum: 2626

    • Outlier Calculations:

    • IQR=25−20.5=4.5IQR = 25 - 20.5 = 4.5

    • Lower Fence: 20.5−1.5(4.5)=13.7520.5 - 1.5(4.5) = 13.75

    • Upper Fence: 25+1.5(4.5)=31.7525 + 1.5(4.5) = 31.75

    • Observations: 1010 is an outlier (10<13.7510 < 13.75).

    • Whiskers extend down to 1919 (smallest non-outlier value) and up to 2626.

  

Quiz Completion Times Boxplot