Chapter 1: Data and decisionsOpen chapter
Categorical versus quantitative
| Categorical | Quantitative | |
|---|---|---|
| Values | names of categories | numbers with units |
| Arithmetic | meaningless | meaningful (mean, differences) |
| Charts | bar chart, pie chart | histogram, box plot |
| Summaries | counts, percentages | mean, median, SD, IQR |
Cross-section versus time series
| Cross-section | Time series | |
|---|---|---|
| Cases | many units | one unit at many moments |
| Time | one moment | equally spaced moments |
| Typical display | bar chart or histogram | time series plot |
Chapter 2: Displaying and describing categorical dataOpen chapter
Total, row and column percentages
| Total % | Row % | Column % | |
|---|---|---|---|
| Base | grand total | row total | column total |
| Adds to 100% over | the whole table | each row | each column |
| Question it answers | of everyone... | of those in this row... | of those in this column... |
Bar chart versus pie chart versus histogram
| Bar chart | Pie chart | Histogram | |
|---|---|---|---|
| Variable | categorical | categorical (parts of a whole) | quantitative |
| Gaps between bars | yes | not applicable | no |
| Good for comparing groups | yes | poor | one variable at a time |
Chapter 3: Displaying and describing quantitative dataOpen chapter
Mean versus median
| Mean | Median | |
|---|---|---|
| Definition | sum / n, the balance point | middle of the sorted values |
| Outliers | pulled toward them | resistant |
| Skewed right | larger | smaller |
| Pair it with | standard deviation | IQR |
Measures of spread
| Range | IQR | Standard deviation | |
|---|---|---|---|
| Formula | max − min | Q3 − Q1 | √(Σ(x − x̄)2/(n − 1)) |
| Resistant | no | yes | no |
| Uses | two values | the middle half | every value |
Chapter 4: Correlation and the line of best fitOpen chapter
Correlation versus slope
| Correlation r | Slope b1 | |
|---|---|---|
| Unit | none | units of y per unit of x |
| Range | −1 to 1 | any number |
| Swap x and y | unchanged | changes |
| Link | b1 = r sy/sx | same sign as r |
Observed, predicted and residual
| Symbol | Meaning | |
|---|---|---|
| Observed | y | the actual value |
| Predicted | ŷ = b0 + b1 x | the value on the line |
| Residual | e = y − ŷ | what the line misses |
Chapter 5: Randomness and probabilityOpen chapter
Disjoint versus independent
| Disjoint | Independent | |
|---|---|---|
| Meaning | cannot happen together | one does not change the probability of the other |
| P(A and B) | 0 | P(A) × P(B) |
| P(A or B) | P(A) + P(B) | P(A) + P(B) − P(A)P(B) |
| Both at once? | never (if probabilities > 0) | possible |
Joint, marginal and conditional
| Joint | Marginal | Conditional | |
|---|---|---|---|
| Notation | P(A and B) | P(A) | P(B | A) |
| From a table | cell / grand total | total / grand total | cell / row or column total |
Chapter 6: Random variables and probability modelsOpen chapter
X + X versus X1 + X2
| 2X (one outcome doubled) | X1 + X2 (independent) | |
|---|---|---|
| Mean | 2μ | 2μ |
| Variance | 4σ2 | 2σ2 |
| SD | 2σ | √2 σ |
Data versus random variables
| Data (chapter 3) | Random variable | |
|---|---|---|
| Centre | x̄ = Σx/n | μ = ΣxP(x) |
| Spread | s with n − 1 | σ with probabilities as weights |
| Describes | observed values | a model of what can happen |
Chapter 7: The normal distributionOpen chapter
Chebyshev versus the 68-95-99.7 rule
| Chebyshev | 68-95-99.7 | |
|---|---|---|
| Valid for | every distribution | roughly normal distributions |
| Beyond 2 SDs | at most 25% | about 5% |
| Beyond 3 SDs | at most 11.1% | about 0.3% |
Binomial versus normal model
| Binomial | Normal | |
|---|---|---|
| Variable | discrete count | continuous |
| Parameters | n and p | μ and σ |
| TI-84 | binompdf, binomcdf | normalcdf, invNorm |
| Link | mean np, SD √(np(1 − p)) | usable if np and n(1 − p) ≥ 10 |
Chapter 8: Surveys, sampling and experimentsOpen chapter
Stratified versus cluster sampling
| Stratified | Cluster | |
|---|---|---|
| Groups are | different from each other, alike inside | alike each other, mixed inside |
| Sample from | every group | a few whole groups |
| Main reason | precision and representation | cost and practicality |
Observational study versus experiment
| Observational study | Randomized experiment | |
|---|---|---|
| Researcher | observes | assigns treatments at random |
| Shows | association | causation |
| Main risk | confounding variables | unrealistic setting |
Chapter 9: Sampling distribution and confidence interval for a proportionOpen chapter
SD(p̂) versus SE(p̂)
| SD(p̂) | SE(p̂) | |
|---|---|---|
| Formula | √(p(1 − p)/n) | √(p̂(1 − p̂)/n) |
| Uses | the true p (known in theory) | the sample estimate p̂ |
| Used for | describing the sampling distribution | building a confidence interval |
Confidence level and width
| Level | z* | Interval |
|---|---|---|
| 90% | 1.645 | narrowest |
| 95% | 1.96 (about 2) | wider |
| 99% | 2.576 | wider still |
| 99.7% | 3 | widest |
Chapter 10: Sampling distribution and confidence interval for a meanOpen chapter
Interval for a proportion versus for a mean
| Proportion | Mean | |
|---|---|---|
| Estimate | p̂ = x/n | ȳ |
| Standard error | √(p̂(1 − p̂)/n) | s/√n |
| 95% interval | p̂ ± 2 SE | ȳ ± 2 SE |
| Large enough when | at least 10 successes and 10 failures | n large (about 30 or more) |
| TI-84 | 1-PropZInt | ZInterval |
Spread of values versus spread of means
| Individual values | Sample means | |
|---|---|---|
| SD | σ | σ/√n |
| Shape | whatever the population has | close to normal for large n |
| Changes with n | no | shrinks with √n |