Simple Random Sample (SRS)

Every mix equally likely

Systematic Sampling

k=31-in-k Selection

Cluster Sampling

Grp AALLGrp CSelect Group -> Take EVERYONE

Stratified Sampling

Strata 1Strata 2Take SOME from EVERY group

Lecture 1: The Foundations

Nature of Statistics • Organizing Data • Descriptive Measures

Intro to Chapters 1, 2, & 3

Today's Roadmap

1. Nature

  • Population vs Sample
  • Sampling Methods
  • Experimental Design

2. Organize

  • Qual vs Quan
  • Visualizations
  • Distributions

3. Measure

  • Center (Mean/Median)
  • Spread (SD/Range)
  • Position (Boxplots)

The Big Definitions

Population (N)

Sample (n)

Goal: Inference

We use the Sample to make a "best guess" about thePopulation.


Descriptive Stats: Organizing what we have.

Inferential Stats: Guessing what we don't have.


Parameter ($\mu, \sigma$)
Statistic ($\bar{x}, s$)

Sampling Techniques

How do we pick the sample? (Goal: Reduce Bias)

Simple Random

Names in a hat. Every possible group has equal chance.

Systematic

Every $k^{th}$ person. (Start random, then jump by $k$).

Cluster

Select random GROUPS -> Take EVERYONE in them.

All of Some

Stratified

Take SOME from EVERY group.

Some of All

Experimental Design

Control

Compare treatments to a baseline (Placebo/Control group) to isolate effects.

Randomization

Randomly assign subjects to groups to even out external factors.

Replication

Use enough subjects so the result isn't a fluke.

Organizing Data

Qualitative

Categorical / Labels

  • Hair Color, Party, Yes/No
  • Visuals: Bar Chart (Gaps), Pie Chart

Quantitative

Numerical / Counts

  • Discrete: Countable (Gaps, e.g., # of kids)
  • Continuous: Measurements (No gaps, e.g., Height)
  • Visuals: Histogram (Touching), Boxplot

The Histogram vs Bar Chart

Bar Chart

For Categories

Gaps? YES.

Histogram

For Numbers (Ranges)

Gaps? NO (Bars touch).

Distribution Shapes (The Tail Rule)

Skewed Left

Tail points Left

Peak

Mean < Median

Symmetric

Bell Curve

Mean ≈ Median

Skewed Right

Tail points Right

Peak

Mean > Median

Measures of Center

Question: Which one is "Typical"?

MeasureDefinitionResistance
Mean ($\bar{x}$)Average (Sum / n)Low (Pulled by outliers)
MedianExact MiddleHigh (Ignores outliers)
ModeMost FrequentHigh

Measures of Variation (Spread)

Standard Deviation ($s$)

Average distance from the Mean.

Formula divides by n-1.

Distribution Rules

Chebyshev: ANY Shape.
$1 - 1/k^2$ → k=2 means at least 75%
Empirical: BELL Shape Only.
See next slide for interactive visualization.

The Empirical Rule (68-95-99.7)

68% of data falls within 1 SD

Five-Number Summary & Boxplots

Min • Q1 • Median • Q3 • Max

MinQ1 (25%)MedianQ3 (75%)Max

IQR = Q3 - Q1 (The Box Width). Middle 50%.

Outliers = Beyond $1.5 \times IQR$.

CRITICAL WARNING

Population SD ($\sigma$) vs Sample SD ($s$)

R Function sd() = SAMPLE ($n-1$).

If homework asks for POPULATION ($N$),
you MUST calculate it manually!

sqrt(mean((x - mean(x))^2))

Questions?

See you in RStudio.