Appendix F: Glossary

Every term below is defined the way this book uses it, with a pointer to the chapter where it is introduced. Definitions are deliberately short — for the full treatment, follow the link.

A

Adjusted R² — A version of R² penalized for the number of predictors; it rises only when a new predictor improves the model more than chance would. Use it when comparing models with different numbers of predictors. See 24  Multiple Regression.

Alpha level (α) — The significance threshold chosen before testing (conventionally .05): the probability of a Type I error you are willing to accept. See 5  Sampling Distributions and the Logic of Inference.

Alternative hypothesis (H₁) — The claim that there is an effect, difference, or association in the population. Rejecting the null is evidence for this. See 5  Sampling Distributions and the Logic of Inference.

ANCOVA (analysis of covariance) — Comparing groups while adjusting for a continuous covariate, assuming the covariate’s slope is the same in every group: lm(y ~ group + covariate, data = data). See 23  Categorical and Dichotomous Predictors.

APA style — The American Psychological Association’s reporting conventions for statistics: what to report (test statistic, df, p, effect size, CI), how to format it, and rules like omitting the leading zero for statistics that cannot exceed 1. See 26  APA Reporting.

B

Bonferroni correction — A multiple-comparison correction that divides α by the number of tests, controlling the family-wise false-positive rate at the cost of power. See 17  One-Way ANOVA.

Boxplot — A plot showing the median, the interquartile range (the box), whiskers, and outlying points. Often more informative than a bar plot of means. See 8  Plotting with ggplot2.

C

Categorical variable — A variable whose values are categories (groups, labels) rather than quantities; nominal or ordinal in the NOIR scheme. See 2  Levels of Measurement and Choosing the Right Test.

Central Limit Theorem (CLT) — As sample size increases, the sampling distribution of the mean approaches a normal distribution almost regardless of the shape of the raw data, provided the data have a finite mean and variance. The foundation of most tests’ robustness. See 5  Sampling Distributions and the Logic of Inference.

Chi-square (χ²) distribution — The reference distribution for tests based on squared standardized counts; its shape depends on degrees of freedom. See 4  Z, t, and F: The Distributions Behind Every Test.

Chi-square tests — Tests for categorical data. The test of independence asks whether two categorical variables are associated; the goodness-of-fit test asks whether observed frequencies match hypothesized proportions. See 21  Chi-Square Tests.

Cohen’s d — The standardized mean difference: the difference between two means in standard-deviation units. Benchmarks of 0.2/0.5/0.8 are rough conventions, not universal standards — even at d = 0.8 the groups overlap substantially. See 27  Effect Sizes.

Cohen’s w — The effect size for a chi-square goodness-of-fit test: \(w = \sqrt{\chi^2/N}\), computed as sqrt(result$statistic / sum(observed)). Reported regardless of significance. See 21  Chi-Square Tests.

Confidence interval (CI) — A range of plausible values for a population parameter. “95%” describes the procedure: across repeated samples, 95% of intervals built this way would contain the true value. Interpret its width and contents substantively, not just whether it includes zero. See 5  Sampling Distributions and the Logic of Inference.

Confound (third variable, lurking variable) — A variable related to both your predictor and your outcome that can produce or distort their association. The reason correlation alone cannot establish causation. See 20  Correlation and 28  Simpson’s Paradox.

Console — The R window where commands run and output appears. Work from a saved script instead, so your analysis is recorded and rerunnable. See 6  Getting Started with R in Posit Cloud.

Contingency table — A table of counts cross-classifying two categorical variables; the input to a chi-square test of independence. See 21  Chi-Square Tests.

Continuous variable — A variable measured on a numeric scale (interval or ratio) that can take many values. See 2  Levels of Measurement and Choosing the Right Test.

Convenience sample — A sample chosen because its members are easy to reach, not drawn at random from the population; generalize from it with caution. See 1  Why This Course Exists.

Cook’s distance — A per-observation measure of influence: how much the regression coefficients would change if that observation were removed. Rules of thumb: D > 1 almost certainly influential; D > 4/n worth investigating. Related: leverage (an unusual predictor value, with the potential for influence); an influential case is one that actually changes the model. See 25  Diagnostic Plots and Influential Cases.

Cramér’s V — The effect size for chi-square tests of independence, reported regardless of significance. For a 2 × 2 table it equals the phi coefficient. Computed from the uncorrected χ², which is why assocstats output can differ from a Yates-corrected test statistic. See 21  Chi-Square Tests.

D

Data frame — R’s table structure for datasets: rows are observations, columns are variables. See 7  Preparing Data in R.

Degrees of freedom (df) — The number of values free to vary once certain totals are fixed (e.g., if three numbers must average 10, only two are free: df = 2). Determines the exact shape of the t, F, and χ² distributions. See 5  Sampling Distributions and the Logic of Inference.

Descriptive statistics — Numbers that summarize the data you have (means, SDs, counts, plots), as opposed to inferential statistics, which generalize beyond them. See 3  Describing Data.

Dichotomous variable — A categorical variable with exactly two levels (e.g., smoker/non-smoker). Can be used directly as a predictor in regression. See 23  Categorical and Dichotomous Predictors.

Difference scores — Each pair’s post-minus-pre (or condition A minus condition B) value. The paired t-test is a one-sample t-test on these. See 16  Paired-Samples t-Test.

Dummy coding — Representing a k-level categorical predictor as k − 1 indicator variables. Each coefficient compares one level to the reference level only — not to all other levels. See 23  Categorical and Dichotomous Predictors.

E

Ecological fallacy — Inferring individual-level relationships from group-level data. See 28  Simpson’s Paradox.

Effect size — A measure of how large an effect is (e.g., Cohen’s d, η², r, R², Cramér’s V), as opposed to how unlikely it is under the null (p). Reported regardless of statistical significance, per APA 7. See 27  Effect Sizes.

Eta-squared (η²) family — Proportion-of-variance effect sizes for ANOVA. η² = SSeffect/SStotal; partial η² (η_p²) = SSeffect/(SSeffect + SSresidual), the convention in multi-factor designs; generalized η² (η_G²) is preferred for repeated-measures designs. Conventions: .01 small, .06 medium, .14 large. See 17  One-Way ANOVA and 18  Two-Way ANOVA.

Expected frequencies — The counts the null hypothesis predicts: N times the hypothesized proportions in a goodness-of-fit test, or the cell counts a contingency table would show if the two variables were independent. They are the baseline a chi-square test compares against. Cells should generally have expected counts of at least 5. See 21  Chi-Square Tests.

F

F distribution — The reference distribution for ratios of variance-like quantities; used by ANOVA and the overall regression test. Shaped by two df values, and not symmetric. See 4  Z, t, and F: The Distributions Behind Every Test.

Factor (R) — R’s data type for categorical variables. Grouping variables almost always need to be converted to factors before modeling. See 7  Preparing Data in R.

G

Geometric mean — The back-transformed mean of logged values, exp(mean(log(x))). It is not the arithmetic mean; label it as such when you report a log-scale analysis. See 12  Data Transformations.

Greenhouse-Geisser correction — An adjustment for possible sphericity violations in repeated-measures and mixed ANOVA; it scales the df down so the p-value is not too small. afex applies it by default to within-subject factors with three or more levels, whether or not Mauchly’s test is significant; report the corrected df. See 19  Repeated-Measures and Mixed ANOVA.

H

HARKing — Hypothesizing After the Results are Known: presenting a post-hoc explanation as if it had been predicted in advance. Pre-registration is the antidote. See 29  Open Science and the Replication Crisis.

Histogram — A plot of a single variable’s distribution: values binned on the x-axis, counts on the y-axis. The first thing to look at for shape, skew, and outliers. See 8  Plotting with ggplot2.

Homogeneity of variance — The assumption that groups have similar variances; relevant to Student’s t and ANOVA. Welch’s t does not require it. See 15  Independent-Samples t-Test.

Homoscedasticity — Constant residual spread across the range of fitted values in regression. Its violation (a funnel shape in the Scale-Location plot) is heteroscedasticity. See 25  Diagnostic Plots and Influential Cases.

I

Independence of observations — The assumption that one observation tells you nothing about another. Violated by repeated measurements of the same person — which is what paired and repeated-measures designs exist to handle. See 5  Sampling Distributions and the Logic of Inference.

Independent-samples t-test — Compares the means of two separate groups of different people. This book’s default is the Welch variant. See 15  Independent-Samples t-Test.

Inferential statistics — Methods that use sample data to draw conclusions about a population, by comparing observed results to what chance alone would produce. See 5  Sampling Distributions and the Logic of Inference.

Interaction — When the effect of one factor depends on the level of another (non-parallel lines on an interaction plot). If significant, interpret main effects with caution and consider simple effects. See 18  Two-Way ANOVA.

Intercept (β₀) — The predicted value of Y when all predictors equal 0. Only substantively interpretable when 0 is a meaningful predictor value. See 22  Simple Linear Regression.

Interquartile range (IQR) — The range of the middle 50% of the data (75th minus 25th percentile); the box in a boxplot. A spread measure robust to outliers. See 3  Describing Data.

Interval scale — Numeric measurement with equal spacing between values but no true zero (e.g., temperature in °C). Supports means and SDs but not ratios. See 2  Levels of Measurement and Choosing the Right Test.

K

Kendall’s W — The effect size for the Friedman test: how consistently subjects rank the conditions, from 0 to 1. Computed with rstatix::friedman_effsize(); reported regardless of significance. See 13  Non-parametric Alternatives.

Kruskal-Wallis test — The rank-based alternative to one-way ANOVA for three or more independent groups. See 13  Non-parametric Alternatives.

Kurtosis — A measure of tail weight. e1071::kurtosis() reports excess kurtosis (normal ≈ 0; ±1 is the acceptable range used in this book); raw kurtosis has normal = 3 (equivalent range 2–4). Always know which your function reports. See 11  Checking Normality in R.

L

Levene’s test — A test of homogeneity of variance across groups. See 17  One-Way ANOVA.

Likert item — An ordered rating scale (e.g., 1 = strongly disagree to 5 = strongly agree). Sits on the boundary between ordinal and interval measurement; treating Likert data as interval is common but is a judgment call. See 2  Levels of Measurement and Choosing the Right Test.

Listwise deletion — Dropping every row that has a missing value in any of the columns you supply, as na.omit() does. Supply only the analysis columns, or you lose rows to irrelevant missing values. See 7  Preparing Data in R.

Log transformation — Compresses large values to pull in a right-skewed tail. Conclusions then apply on the transformed scale, and zero/negative values need handling first. See 12  Data Transformations.

Long format — Data arranged with one row per observation (so each participant occupies multiple rows in repeated-measures data). Most modeling functions and ggplot2 want long format. See 9  Reshaping Data: Wide vs. Long.

M

Main effect — The overall effect of one factor averaged across the levels of the other factor(s) in a factorial design. See 18  Two-Way ANOVA.

Mann-Whitney U (Wilcoxon rank-sum) — The rank-based alternative to the independent-samples t-test. R’s wilcox.test() labels the statistic W; for the two-sample test this is the U that APA write-ups report — same number, different name. See 13  Non-parametric Alternatives.

Mean — The arithmetic average; the center of mass of a distribution. Sensitive to outliers and skew. See 3  Describing Data.

Median — The middle value; the 50th percentile. Robust to outliers, and the location measure reported with non-parametric tests. See 3  Describing Data.

Mixed ANOVA — An ANOVA with at least one between-subjects factor and at least one within-subjects factor. See 19  Repeated-Measures and Mixed ANOVA.

Mode — The most frequent value (or peak of a distribution); the only location measure available for nominal data. See 3  Describing Data.

Multicollinearity — Strong correlation among predictors, which makes it hard to assign unique credit: coefficients become unstable, standard errors inflate, and the overall F can be significant with no significant individual predictor. Checked with VIF. See 24  Multiple Regression.

N

Nominal scale — Categories with no inherent order (e.g., species, condition labels). Counts and modes only. See 2  Levels of Measurement and Choosing the Right Test.

Non-parametric test — A rank-based test that does not assume normality (e.g., Mann-Whitney, Wilcoxon signed-rank, Kruskal-Wallis). Report medians rather than means alongside these tests. See 13  Non-parametric Alternatives.

Normal distribution — The symmetric bell curve described by its mean and SD; the reference shape underlying Z, t, F, and χ² inference. See 4  Z, t, and F: The Distributions Behind Every Test.

Normality assumption — The requirement that the right quantity be approximately normal — the sampling distribution or the residuals, not necessarily the raw data. Predictors never need to be normal. See 10  Normality: The Conceptual Background.

Null hypothesis (H₀) — The assumption of no effect, no difference, or no association that every hypothesis test starts from and tries to discredit. See 5  Sampling Distributions and the Logic of Inference.

O

One-sample t-test — Compares one sample mean to a fixed benchmark value. See 14  One-Sample t-Test.

One-way ANOVA — Compares the means of three or more independent groups with a single F-test; a significant F says at least one group differs, not which — hence post-hoc tests. See 17  One-Way ANOVA.

Ordinal scale — Ordered categories without equal spacing (e.g., class rank, disagree/neutral/agree). Medians and ranks are meaningful; means are a stretch. See 2  Levels of Measurement and Choosing the Right Test.

Outlier — An observation far from the rest of the data. Investigate before acting: fix it if it is an error, justify any exclusion if it is legitimate but extreme. See 3  Describing Data.

P

p-hacking — Trying analyses, exclusions, or outcome measures until something crosses p < .05, then reporting only that. A core driver of replication failure. See 29  Open Science and the Replication Crisis.

p-value — The probability of observing a test statistic at least as extreme as yours if the null hypothesis were true. It is not the probability the null is true, not the effect size, and not practical importance. See 5  Sampling Distributions and the Logic of Inference.

Paired-samples t-test — Compares two measurements of the same people (or matched pairs) by testing whether the mean difference score departs from zero. See 16  Paired-Samples t-Test.

Partial slope — A coefficient in multiple regression: the expected change in Y per one-unit change in that predictor holding the other predictors constant. See 24  Multiple Regression.

Pearson’s r — The correlation coefficient for linear association between two continuous variables, from −1 to +1. Says nothing about causation. See 20  Correlation.

Per-analysis exclusion — Dropping a case only when a variable used in that analysis is missing; model functions such as lm() do this automatically. Report the resulting n. See 7  Preparing Data in R.

Phi coefficient — The effect size for a 2 × 2 contingency table; identical to Cramér’s V in that case. See 21  Chi-Square Tests.

Population — The entire group you want conclusions about. You almost never measure it; you sample from it. See 1  Why This Course Exists.

Post-hoc tests — Pairwise follow-up comparisons run after a significant omnibus test, with a correction for multiple comparisons (e.g., Tukey HSD). See 17  One-Way ANOVA.

Practical significance — Whether an effect is large enough to matter in the real world. Distinct from statistical significance: with a big sample, a trivial effect can have a tiny p. See 1  Why This Course Exists and 27  Effect Sizes.

Pre-registration — A time-stamped record of hypotheses and analysis plans made before seeing the data, which distinguishes confirmation from exploration. See Pre-registration.

Publication bias — Significant or large results are more likely to be published than null or small ones, so published effect sizes tend to overestimate the truth. See 29  Open Science and the Replication Crisis.

Q

Q-Q plot — Sample quantiles plotted against theoretical normal quantiles. Points hugging the diagonal indicate approximate normality; S-shapes and bowed curves indicate tail or skew problems. Usually more informative than a normality test’s p-value. See 11  Checking Normality in R.

R

R² — The proportion of variance in the outcome explained by the model (in simple regression, the square of r). An effect size; report it regardless of significance. See 22  Simple Linear Regression.

Random assignment — Assigning participants to conditions by chance. The design feature that licenses causal conclusions. See 5  Sampling Distributions and the Logic of Inference.

Random sampling — Drawing participants from the population by chance. The design feature that licenses generalizing beyond your sample. See 5  Sampling Distributions and the Logic of Inference.

Range — Maximum minus minimum; the crudest spread measure, fully determined by the two most extreme points. See 3  Describing Data.

Ratio scale — Numeric measurement with equal spacing and a true zero (e.g., reaction time, count), so ratios are meaningful. See 2  Levels of Measurement and Choosing the Right Test.

Registered report — A publication format in which a journal reviews the question and methods before data collection and commits to publishing regardless of the results. See 29  Open Science and the Replication Crisis.

Repeated-measures ANOVA — ANOVA for designs where the same participants appear in every condition. Do not run plain aov() on such data as if groups were independent; use afex. See 19  Repeated-Measures and Mixed ANOVA.

Replication — Re-running a study with new data to see whether the finding recurs. Distinct from reproducibility. See 29  Open Science and the Replication Crisis.

Reproducibility — Getting the same numbers from the same data and code. A study can be reproducible and still fail to replicate. See 29  Open Science and the Replication Crisis.

Researcher degrees of freedom — The many defensible-looking analytic choices (exclusions, transformations, when to stop collecting) that let noise reach significance if exploited. See 29  Open Science and the Replication Crisis.

Residual — Observed Y minus predicted Y: what the model can’t explain. Regression assumptions are checked on residuals, not raw data. See 22  Simple Linear Regression.

Robustness — A test’s ability to give approximately valid results when its assumptions are violated, typically improving with sample size (via the CLT). See 10  Normality: The Conceptual Background. In open science, robustness also means a finding holds up under different measures, populations, or designs. See 29  Open Science and the Replication Crisis.

Rosenthal’s r — The effect size for Mann-Whitney and Wilcoxon signed-rank tests, computed with rstatix::wilcox_effsize() (paired = TRUE for paired data); reported regardless of significance. Not the same statistic as Pearson’s r. See 13  Non-parametric Alternatives.

S

Sample — The subset of the population you actually measured. See 1  Why This Course Exists.

Sampling distribution — The distribution a statistic would have across thousands of hypothetical samples; a picture of what chance alone produces. The single most important idea in inference. See 5  Sampling Distributions and the Logic of Inference.

Scatterplot — A plot of two continuous variables, one point per observation. Always plot before computing a correlation or fitting a line. See 8  Plotting with ggplot2.

Script — A saved, commented file of R code. Work in scripts, not the console, so every analysis is recorded and rerunnable. See 6  Getting Started with R in Posit Cloud.

Shapiro-Wilk test — A significance test of normality. A non-significant result means no significant evidence against normality, not proof of it; with large samples (n > 50 or so) it is oversensitive — lean on the histogram and Q-Q plot instead. See 11  Checking Normality in R.

Simple effects — The effect of one factor examined separately within each level of the other factor; the standard follow-up to a significant interaction. See 18  Two-Way ANOVA.

Simple linear regression — Modeling a continuous outcome as a straight-line function of one predictor: Y = β₀ + β₁X + ε. See 22  Simple Linear Regression.

Simpson’s paradox — A relationship that holds in aggregated data reverses when the data are split into subgroups, because group membership is a lurking variable. See 28  Simpson’s Paradox.

Skewness — Asymmetry of a distribution: a long right tail is positive (right) skew, a long left tail negative. The book’s (very rough) rule of thumb: |skew| < 0.5 → symmetric — a guideline to use alongside the visual, not a law. See 11  Checking Normality in R.

Slope (β₁) — The expected change in Y for a one-unit increase in X; the number your audience usually cares about. See 22  Simple Linear Regression.

Spearman’s rho — A rank-based correlation; use it when data are ordinal, skewed, or outlier-heavy, or the relationship is monotonic but not linear. See 20  Correlation.

Sphericity — The repeated-measures ANOVA assumption that the variances of the differences between all pairs of conditions are equal. Often violated; corrected by Greenhouse-Geisser. See 19  Repeated-Measures and Mixed ANOVA.

Standard deviation (SD) — The typical distance of observations from the mean; the square root of the variance, in the original units. See 3  Describing Data.

Standard error (SE) — The standard deviation of a sampling distribution: how much an estimate (like a mean) typically varies from sample to sample. Shrinks as n grows. See 5  Sampling Distributions and the Logic of Inference.

Standard normal distribution — The normal distribution with mean 0 and SD 1; the scale that z-scores live on. See 4  Z, t, and F: The Distributions Behind Every Test.

Standardized residuals (chi-square) — Per-cell indices of how far observed counts deviate from expected counts; as a rough rule, |residual| > 2 marks a cell driving a significant χ². See 21  Chi-Square Tests.

Statistical power — The probability of detecting an effect that is really there. Driven by sample size, effect size, and α; low power is why “not significant” can’t be read as “no effect.” See 14  One-Sample t-Test and Appendix E.

Statistical significance — A result extreme enough under the null to fall below α (usually p < .05). A statement about evidence, not about size or importance. See 5  Sampling Distributions and the Logic of Inference.

Student’s t-test — The independent-samples t variant that assumes equal population variances, run with t.test(..., var.equal = TRUE). Welch’s test is this book’s default. See 15  Independent-Samples t-Test.

T

t distribution — The reference distribution for means and slopes when the population SD is estimated from the data. Heavier-tailed than the normal at small n; converges to it as df grow. See 4  Z, t, and F: The Distributions Behind Every Test.

Test statistic — The number a test computes from your data (t, F, χ², r, …), generally a ratio of observed variation to the variation expected by chance. See 5  Sampling Distributions and the Logic of Inference.

Tukey HSD — The standard post-hoc procedure after a significant ANOVA: all pairwise group comparisons with the family-wise error rate controlled. See 17  One-Way ANOVA.

Type I error — Rejecting a true null: a false positive. Its long-run probability is α. See 5  Sampling Distributions and the Logic of Inference.

Type II error — Failing to reject a false null: a miss. Its probability shrinks as power grows. See 5  Sampling Distributions and the Logic of Inference.

V

Variance — The average squared distance from the mean; the SD squared. The raw material of ANOVA and regression (“explained” vs. “unexplained” variance). See 3  Describing Data.

VIF (variance inflation factor) — A per-predictor multicollinearity index; VIF > 10 signals a serious problem. See 24  Multiple Regression.

W

Welch’s t-test — The independent-samples t variant that does not assume equal group variances (visible in its fractional df). R’s default, and this book’s default. See 15  Independent-Samples t-Test.

Wide format — Data arranged with one row per participant and repeated measurements in separate columns. Often how data arrive; usually reshaped to long format for analysis. See 9  Reshaping Data: Wide vs. Long.

Wilcoxon signed-rank test — The rank-based alternative to the paired-samples t-test. See 13  Non-parametric Alternatives.

Y

Yates’ continuity correction — R’s default adjustment for 2 × 2 chi-square tests: 0.5 is subtracted from each |O − E| before squaring, giving a more conservative χ². It can flip a borderline result (e.g., uncorrected χ²(1) = 4.55, p = .033 vs. corrected χ²(1) = 3.26, p = .071). See 21  Chi-Square Tests.

Z

z-score — A standardized score: how many SDs an observation sits from the mean. Allows comparison across different scales. See 4  Z, t, and F: The Distributions Behind Every Test.