Intro to Chapters 1, 2, & 3
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.
How do we pick the sample? (Goal: Reduce Bias)
Names in a hat. Every possible group has equal chance.
Every $k^{th}$ person. (Start random, then jump by $k$).
Select random GROUPS -> Take EVERYONE in them.
Take SOME from EVERY group.
Compare treatments to a baseline (Placebo/Control group) to isolate effects.
Randomly assign subjects to groups to even out external factors.
Use enough subjects so the result isn't a fluke.
Categorical / Labels
Numerical / Counts
For Categories
Gaps? YES.
For Numbers (Ranges)
Gaps? NO (Bars touch).
Tail points Left
Mean < Median
Bell Curve
Mean ≈ Median
Tail points Right
Mean > Median
Question: Which one is "Typical"?
| Measure | Definition | Resistance |
|---|---|---|
| Mean ($\bar{x}$) | Average (Sum / n) | Low (Pulled by outliers) |
| Median | Exact Middle | High (Ignores outliers) |
| Mode | Most Frequent | High |
Average distance from the Mean.
Formula divides by n-1.
68% of data falls within 1 SD
Min • Q1 • Median • Q3 • Max
IQR = Q3 - Q1 (The Box Width). Middle 50%.
Outliers = Beyond $1.5 \times IQR$.
R Function sd() = SAMPLE ($n-1$).
If homework asks for POPULATION ($N$),
you MUST calculate it manually!
sqrt(mean((x - mean(x))^2))See you in RStudio.