Glossary
116 key terms
No terms found.
A
- accuracyM6
(TP + TN)/n: share classified correctly; misleading with imbalanced classes.
- adjusted R-squaredM5
R-squared corrected for the number of predictors: 1 - (1 - R2)(n - 1)/(n - k - 1); falls when a predictor adds little.
Sure topic:Adjusted R-squared
See also:R-squared
- AICM6
Akaike information criterion 2k - 2 ln(L); lower is better, and it penalises extra parameters.
- all.xM4
Argument of merge(): keep all rows of the left table, even without a match (NA in the missing columns).
See also:merge
- ANOVAM3
Analysis of Variance: tests whether the means of three or more groups are equal, using the F statistic.
Sure topic:Analysis of variance (ANOVA) and F-test
See also:partial F-test
- AUCM6
Area under the ROC curve; 0.5 is guessing, 1 is perfect separation.
B
- bias-variance trade-offM6
More flexible model: less bias, more variance; the test error is U-shaped.
Sure topic:Bias-variance trade-off
- binary dependent variableM6
Dependent variable with two outcomes (0 or 1), such as acceptance or churn.
- binningM4
Grouping a numeric variable into classes (age to child, adult, senior), in R with cut().
C
- causal relationship schemeM1
Drawing with variables and arrows for expected relationships.
Sure topic:Causal relationship scheme
- central limit theoremM1
Sample means are approximately normally distributed.
- ceteris paribusM5
Holding all other predictors in the model constant; this is how you read a coefficient in a multiple regression.
Sure topic:Interpreting regression coefficients (ceteris paribus, units)
See also:odds ratio
- chi-squareM3
Chi-square test on frequencies: goodness of fit or independence of two categorical variables.
Sure topic:Chi-square test: goodness of fit and independence
See also:goodness of fit
- cluster samplingM2
First randomly choose clusters and collect data inside them.
- composite scoreM3
The final score of a Likert scale: the mean or sum of the (reverse coded) items.
Sure topic:Likert item versus Likert scale (composite score)
See also:Likert scale
- confidence intervalM1
Range around a sample mean; with repeated sampling a given percentage of such intervals contains the true mean.
See also:prediction interval
- confidence intervalM3
Interval around an estimate; in a two-sided test it excludes the H0 value exactly when p is below alpha.
See also:two-sidedprediction interval
- confidence intervalM5
The interval b +/- roughly 2 x SE; if it contains zero, the coefficient is not significant at 5%.
See also:prediction interval
- confounderM1
Third variable that influences both X and Y and can create a spurious relationship.
- confusion matrixM6
Cross-table of predicted and actual class with TN, FP, FN and TP.
Sure topic:Confusion matrix, computing accuracy and sensitivity
See also:sensitivity
- covarianceM2
Average (signed) rectangle area around the centre of gravity; depends on the units.
Sure topic:Computing covariance and correlation
- critical valueM3
The boundary of the rejection region. If the test statistic lies beyond it, you reject H0.
Sure topic:Critical value versus p-value (qt, pt, qnorm, pnorm)
See also:rejection regionp-value
- Cronbach's alphaM3
Measure of internal consistency, usually between 0 and 1; above 0.7 counts as acceptable.
Sure topic:Cronbach's alpha (scale reliability)
- cross-validationM6
Split the data into k parts; each part is the test set once. Average test score.
See also:test set
D
- data cleaningM4
Detecting and correcting errors and inconsistencies so that the data are accurate, consistent, complete and reliable.
Sure topic:Data cleaning and missing values (NA)
- data dredgingM1
Searching the data until you find chance relationships, without hypotheses in advance.
- data inconsistenciesM4
Variations in format, spelling or representation: date format, "Male"/"male"/"M", data types, units.
- data wranglingM4
Reshaping data with filter, select, mutate, group_by and summarise into an analysis-ready form.
- devianceM6
-2 ln L; the null deviance belongs to the intercept-only model, the residual deviance to the fitted model.
See also:log-likelihoodresidualintercept
- dummy variableM5
A variable that is 1 for a category and 0 for the rest; the coefficient is the difference with the reference category.
Sure topic:Dummy variables and reference category
See also:reference category
E
- elasticityM5
Percentage change in y for a 1 percent change in x; the coefficient in a log-log model.
See also:log transformation
- error termM5
The disturbance in the population model: everything that affects y but is not in the model, including chance.
Sure topic:Error term and OLS assumptions
- external validityM1
Degree to which you can generalise to other groups or times.
- extrapolationM5
Predicting outside the range of the x values in the data; unreliable.
F
- F-testM5
Tests H0: all slope coefficients are zero at the same time; F = (R2/k)/((1 - R2)/(n - k - 1)).
Sure topic:Overall F-test of a regression model
See also:slope
G
- goodness of fitM3
Chi-square test of whether observed counts fit an expected distribution.
Sure topic:Chi-square test: goodness of fit and independence
See also:chi-square
- group_byM4
dplyr function that splits rows into groups; together with summarise() it returns one row per group.
See also:data wranglingsummarise
I
- interaction termM5
The product x1 * x2 in the model; the effect of x1 then depends on the value of x2.
Sure topic:Interaction term (moderation in a regression)
See also:moderation
- interceptM5
The predicted y when all x variables are zero, or the predicted y for the reference category.
See also:reference categorydeviance
- internal validityM1
Reliability of the answer for the source population itself.
See also:source population
- interval estimatorM2
Estimator that gives an interval that contains the parameter with a certain probability.
L
- Likert scaleM3
Measurement instrument with several items (statements), a rating scale and an instruction, to measure an abstract concept.
Sure topic:Likert item versus Likert scale (composite score)
See also:composite score
- log transformationM5
Taking the logarithm of y and/or x; coefficients are then read as percentage effects or elasticity.
See also:elasticity
- log-likelihoodM6
The logarithm of the likelihood; on the formula sheet. The deviance is -2 times the log-likelihood.
See also:deviance
- log-oddsM6
The logarithm of the odds, ln(p/(1 - p)); the linear predictor z of a logit model.
- logistic regressionM6
Regression model for a binary outcome (0/1); models the log-odds of the outcome as a linear function of the predictors.
Sure topic:Logistic regression (logit model)
- logitM6
The link function ln(p/(1 - p)); logit and probit are the usual models for a binary outcome.
- long formatM4
Long format: each observation is a row, with one column for the variable and one for the value.
M
- maximum likelihoodM6
Estimation method that picks the parameters under which the observed data are most likely (MLE); iterative for glm.
- McFadden pseudo-R²M6
1 - ln L(model)/ln L(null); improvement over the null model, not the share of explained variance.
- mediationM5
x affects y through an intermediate variable m; with full mediation the direct effect becomes zero once m is in the model.
- mediatorM1
Variable in the causal path between X and Y that explains the indirect effect.
Sure topic:Mediator and moderator
See also:moderator
- mergeM4
Combining datasets: rbind() stacks rows, merge() joins columns on a key (primary key).
Sure topic:Merging datasets (merge, primary key)
See also:primary keyall.x
- moderationM5
A variable changes the strength of the effect of x on y; you model that with an interaction term.
Sure topic:Interaction term (moderation in a regression)
See also:interaction term
- moderatorM1
Variable that determines the strength of the effect of X on Y (interaction effect).
Sure topic:Mediator and moderator
See also:mediator
- multicollinearityM5
Strong association between predictors; makes the standard errors larger, the estimate stays unbiased.
Sure topic:Multicollinearity
See also:standard errorunbiasedstandard error
- mutateM4
dplyr function to create a new column or change an existing one.
See also:data wrangling
N
O
- oddsM6
Ratio p/(1 - p); at p = 0.20 the odds are 0.25.
- odds ratioM6
exp(b): the factor by which the odds change per one-unit increase of the predictor, ceteris paribus; 1 means no effect.
Sure topic:Odds and odds ratio (e^b)
See also:oddsceteris paribus
- omitted variable biasM5
Distortion of a coefficient because a variable is missing that is related to both y and an included x.
Sure topic:Omitted variable bias
- one-sample t-testM3
Compares the mean of one sample with an assumed value mu0; the population standard deviation is unknown.
- one-sidedM3
One-sided test: H1 points one way (greater than or smaller than); the rejection region sits in one tail.
See also:rejection region
- ordinary least squaresM5
Estimation method (OLS) that chooses the coefficients for which the sum of squared residuals (SSR) is as small as possible.
Sure topic:Ordinary least squares (OLS)
See also:residual
- outliersM4
Observations that differ strongly from the rest: error, rare event or true variation. Investigate them first.
Sure topic:Outliers: investigate, do not blindly remove
- overfittingM6
Model fits the noise in the training data and therefore predicts new data worse.
Sure topic:Overfitting and generalization
P
- p-valueM3
The probability of a result at least as extreme as the observed one, if H0 is true. It is not the probability that H0 is true.
Sure topic:Critical value versus p-value (qt, pt, qnorm, pnorm)
See also:critical value
- p-valueM5
The probability of an estimate this extreme if the null hypothesis is true; below 0.05 means significant at 5%.
- paired t-testM3
Tests the mean difference between linked measurements (before/after, same person or day).
- partial correlationM2
Correlation between X and Y after the effect of a third variable has been removed.
Sure topic:Partial correlation
- partial F-testM5
Tests with anova(small, large) whether a group of extra predictors together significantly improves the nested model.
Sure topic:Partial F-test (anova on two models)
See also:ANOVA
- point estimatorM2
Estimator that gives one number, such as the sample mean.
- powerM3
The probability that you correctly reject H0 when H0 is false: 1 minus beta.
- precisionM6
TP/(TP + FP): of everything the model calls positive, the share that really is positive.
- prediction intervalM5
Interval for one new observation of y; wider than the confidence interval, because it also contains the spread of an individual y.
- primary keyM4
The variable (e.g. customer_id) used to match rows in two datasets. The types must match.
Sure topic:Merging datasets (merge, primary key)
See also:merge
- probitM6
Alternative to logit using the normal distribution as link; same signs and nearly the same probabilities, different scale.
Q
- quadratic termM5
The square x^2 in the model; the effect of x is not constant and the line bends, with turning point -b1/(2 b2).
Sure topic:Non-linear effects (quadratic term)
R
- R-squaredM5
The share of the variation in y that the model explains: SSE/SST = 1 - SSR/SST.
Sure topic:Adjusted R-squared
See also:adjusted R-squared
- reference categoryM5
The category without a dummy; the intercept belongs to this group and every dummy coefficient is the difference with it.
Sure topic:Dummy variables and reference category
See also:interceptdummy variable
- rejection regionM3
The set of test statistic values for which you reject H0; its probability under H0 is alpha.
See also:critical valueone-sidedtwo-sided
- representativityM2
The characteristics of the sample resemble those of the population.
- residualM5
The difference between the observed y and the y predicted by the model for one observation.
See also:ordinary least squaresdeviance
- response biasM2
Answers are systematically not in line with what people would really do.
- reverse causalityM1
Y also influences X.
Sure topic:Reverse causality
- reverse codingM3
Flipping negatively worded items (on 1-5: new = 6 - old) so that all items point the same way.
- ROC-curveM6
Sensitivity against 1 - specificity over all thresholds.
See also:sensitivityspecificitythreshold
S
- sampling errorM2
Difference between a sample statistic and the population value.
- selection biasM2
The design systematically over- or under-represents some groups.
Sure topic:Selection bias and sample representativeness
- sensitivityM6
TP/(TP + FN): share of the actual positives that is found (true positive rate).
Sure topic:Confusion matrix, computing accuracy and sensitivity
See also:confusion matrixROC-curve
- simple random samplingM2
Every element has the same probability of ending up in the sample.
- slopeM5
The change in y on average for a one-unit increase in x.
See also:F-test
- source populationM2
The group you really draw a sample from.
See also:internal validity
- specificityM6
TN/(TN + FP): share of the actual negatives that is recognised as negative.
- spurious correlationM2
Fake relationship: association without a real causal link.
Sure topic:Spurious correlation and confounder
- standard errorM1
Spread of the sample mean, s / sqrt(n).
See also:t-valuemulticollinearity
- standard errorM5
The standard deviation of an estimate; a measure of how precisely the coefficient is estimated.
See also:t-valuemulticollinearity
- standardized coefficientM5
Coefficient in standard deviations of x and y; suited to compare the relative strength of predictors.
Sure topic:Comparing standardized coefficients
- stratified samplingM2
First divide the population into strata, then draw a sample from each stratum.
- summariseM4
dplyr function that reduces a dataset to one or more summary numbers, per group after group_by().
See also:data wranglinggroup_by
- systematic samplingM2
Choose every element with a fixed step size from an ordered list.
T
- t-valueM5
The coefficient divided by its standard error: t = (b - beta0)/SE(b); under H0: beta = 0 that is b/SE.
See also:standard errorstandard error
- target populationM2
The group you want to say something about.
- test setM6
Part of the data the model has not seen; shows generalisation.
- thresholdM6
Cut-off τ for the predicted probability above which you predict 'positive'; 0.5 is a convention.
Sure topic:Classification threshold (cut-off)
See also:ROC-curve
- training setM6
Part of the data on which the model is estimated.
Sure topic:Training set and test set (in-sample versus out-of-sample)
See also:test set
- two-sample t-testM3
Compares the means of two independent groups. By default R runs the Welch variant.
- two-sidedM3
Two-sided test: H1 only says "different from" (not equal to); the rejection region sits in both tails.
See also:rejection regionconfidence interval
- Type I errorM3
Rejecting H0 when H0 is true (false positive). Its probability is alpha.
- Type II errorM3
Failing to reject H0 when H0 is false (false negative). Its probability is beta.
Sure topic:Type I and Type II error
U
- unbiasedM5
On average over samples the estimate equals the population value.
See also:multicollinearity
V
- VIFM5
Variance inflation factor: 1/(1 - R2_j), with R2_j from the regression of x_j on the other predictors; above roughly 5 to 10 it is a problem.
W
- wide formatM4
Wide format: each variable or time point is its own column, one row per unit.
Z
- Z-scoreM1
Number of standard deviations a value lies from the mean.
- z-testM3
Like the t-test, but for when the population standard deviation is known, and for proportions.
Sure topic:z-test and proportion test