Error clinic
Exam training

Error clinic

Common exam mistakes, with why they cost points and how to do it right. (68 mistakes)

HarwinMistakes are welcome here. This is where they become points.

Consultation

Five patients with a mistake. Pick the right treatment for each.

All mistakes

Reference per module, with diagnosis and treatment.

Tap to check

Diagnostic analytics and causality12 mistakes

MistakeLikely

The 95% confidence interval is [34.1; 39.7], so there is a 95% chance that the true mean lies in it.

Why it goes wrong. The 95% belongs to the method, not to this one interval: it either contains the true mean or it does not.

How to do it right

If you draw samples often, about 95% of the intervals contain the true mean.

MistakeLikely

95% of all customers spend an amount within the confidence interval.

Why it goes wrong. The interval is about the mean, not about the spread of the single observations.

How to do it right

The interval describes uncertainty about the mean; the data themselves are much more widely spread.

Mistake

The standard error is the same as the standard deviation of the data.

Why it goes wrong. The sd describes the spread of the data, the SE that of the sample mean: s / sqrt(n).

How to do it right

SE = s / sqrt(n), so smaller than s as soon as n is larger than 1.

Mistake

With twice as many observations the standard error halves.

Why it goes wrong. The SE depends on the square root of n, so you need four times as many observations.

How to do it right

To halve the SE you need n x 4.

MistakeSure

Z = 2 means that 95% of the values lie above it.

Why it goes wrong. Z = 2 means two standard deviations above the mean: about 2.5% lies above it (right tail).

How to do it right

At Z = 2 about 97.5% lies below and 2.5% above.

MistakeSure

pnorm(x) gives the probability to the right of x.

Why it goes wrong. pnorm gives the left tail by default; for the right tail you calculate 1 - pnorm(x).

How to do it right

Right tail = 1 - pnorm(x).

MistakeSure

A moderator lies in the path between cause and effect and explains the effect.

Why it goes wrong. That is a mediator. A moderator determines how strong the effect of X on Y is.

How to do it right

Mediator: X to M to Y. Moderator: Z points at the arrow from X to Y.

MistakeSure

A confounder is an extra step in the causal path.

Why it goes wrong. A confounder stands outside the path: it influences both X and Y and can create a spurious relationship.

How to do it right

Confounder: Z causes X and Z causes Y.

MistakeSure

The correlation between costs and debts is 0.42, so costs cause debts.

Why it goes wrong. Association is not causality: reverse causality or a confounder explains it as well.

How to do it right

Costs and debts are related; whether there is a cause requires an experiment.

MistakeSure

A survey shows that more social media lowers satisfaction.

Why it goes wrong. A survey only measures association; causal wording does not fit this design.

How to do it right

Whoever spends more time on social media is less satisfied (associative).

MistakeSure

I look at the data first and devise the hypotheses afterwards.

Why it goes wrong. That is data dredging and gives confirmation bias: you find relationships by chance.

How to do it right

Hypotheses come before the data and determine which data you collect.

MistakeLikely

If the mean is larger than the median, the distribution is left-skewed.

Why it goes wrong. A high mean relative to the median points to a tail to the right: right-skewed.

How to do it right

Mean > median: right-skewed. Mean < median: left-skewed.

Descriptive statistics, sampling and correlation10 mistakes

MistakeSure

With 2.3 million answers the poll cannot be skewed.

Why it goes wrong. A large n reduces the chance error, but not a systematic deviation caused by the design.

How to do it right

The design determines the quality: who can end up in the sample? With selection bias a larger n does not help.

MistakeLikely

The 95% confidence interval is [44.1; 51.9], so 95% of the orders lie in it.

Why it goes wrong. The interval is about the mean, not about the single observations, which spread far more.

How to do it right

The interval describes the uncertainty about the mean; the 95% belongs to the method.

Mistake

r = 0 means that there is no relationship between x and y.

Why it goes wrong. Pearson only measures linear association: y = x^2 can give r = 0 while y depends completely on x.

How to do it right

r = 0 means no linear relationship. Always look at the scatter plot.

MistakeSure

Ice cream sales and drownings correlate, so ice cream causes drownings.

Why it goes wrong. A confounder (warm weather) raises both: spurious correlation. Reverse causality or chance are also possible.

How to do it right

Control for the third variable (partial correlation) and look at the design before you conclude causally.

MistakeSure

p = 0.2156, so the correlation is zero and the variables are independent.

Why it goes wrong. Not significant means: insufficient evidence for a relationship, not evidence of no relationship.

How to do it right

Not rejecting H0 is not confirming H0; also look at the interval (here -0.05 to 0.22).

MistakeSure

p < 0.001, so the correlation is strong.

Why it goes wrong. Significance is about certainty, the size of r about strength; with a large n even r = 0.1 becomes significant.

How to do it right

Report r (strength) and p (certainty) separately: r = 0.3 with p < 0.001 is certain but weak.

MistakeLikely

The covariance is 995012, so the relationship is enormously strong.

Why it goes wrong. The covariance depends on the units and can take any value; the correlation is normalised.

How to do it right

Divide the covariance by the two spreads and read the correlation r between -1 and 1.

MistakeLikely

With n = 500 my data are normally distributed.

Why it goes wrong. The central limit theorem is about the distribution of the sample mean, not about the data itself.

How to do it right

The mean is approximately normally distributed with sd = sigma / sqrt(n); the data remain skewed if the population is skewed.

MistakeSure

I remove an outlier if it makes the p-value worse.

Why it goes wrong. Removing it because the result then looks better is data dredging; only a substantive reason counts (measurement error).

How to do it right

Report the analysis with and without and explain why the value may be an error.

MistakeSure

Internal validity means you can generalise the outcome to all people.

Why it goes wrong. That is external validity. Internal validity is about the reliability for the source population itself.

How to do it right

Internal: is it right here? External: does it hold elsewhere (target population, other times)?

Hypothesis testing12 mistakes

MistakeSure

Reading the p-value as the probability that H0 is true.

Why it goes wrong. The p-value is a probability about the data given H0, not about H0 itself. p = 0.03 does not mean H0 has a 3% chance.

How to do it right

Say: the probability of a result as extreme or more extreme, assuming H0 is true.

MistakeSure

Concluding "H0 is proven" with a large p-value.

Why it goes wrong. A p-value above alpha only means you have insufficient evidence to reject H0. You cannot prove H0.

How to do it right

Write: "H0 is maintained" or "we do not reject H0", and tie that to the case.

MistakeSure

Reversing the decision direction: rejecting H0 when p is greater than alpha.

Why it goes wrong. The rule is p <= alpha: reject; p > alpha: maintain. Reversing it gives exactly the wrong conclusion.

How to do it right

Always check: small p, so reject. State the rule out loud before you conclude.

MistakeSure

Swapping Type I and Type II error.

Why it goes wrong. Type I is rejecting H0 while H0 is true (false alarm, probability alpha). Type II is maintaining H0 while H0 is false (probability beta).

How to do it right

Tie it to a situation: in a trial, convicting an innocent person is Type I, acquitting a guilty one is Type II.

MistakeSure

Thinking that a lower alpha is always better.

Why it goes wrong. A lower alpha reduces Type I but raises Type II and lowers power. It is a trade-off.

How to do it right

Mention both sides; only a larger sample lowers both probabilities.

MistakeSure

Equating significant with important or large.

Why it goes wrong. Statistically significant only says that p <= alpha. With a large n even a small effect is significant.

How to do it right

Also look at the size of the effect and at the context before you draw a business conclusion.

MistakeSure

Using a two-sample t-test on linked before and after measurements.

Why it goes wrong. With linked data the two groups are not independent. The paired t-test works with difference scores and is more appropriate and more powerful.

How to do it right

Ask: do the measurements belong to the same persons? Then use a paired t-test.

MistakeSure

Choosing a z-test while the population standard deviation is unknown.

Why it goes wrong. With an unknown sigma you estimate it from the sample; this adds uncertainty and calls for the t distribution.

How to do it right

Unknown sigma, so a t-test. The z-test belongs to a known sigma or to a proportion.

MistakeSure

Stating which groups differ after a significant ANOVA.

Why it goes wrong. ANOVA only tests whether at least one group mean differs. Which groups it is follows from additional tests.

How to do it right

Say: at least one group differs; for the exact difference a follow-up test is needed.

MistakeSure

Running three separate t-tests with three groups and not adjusting alpha.

Why it goes wrong. More tests means more chance of a Type I error. ANOVA tests everything at once at alpha.

How to do it right

Use ANOVA for three or more groups.

MistakeSure

Using a chi-square test on means of a numeric variable.

Why it goes wrong. The chi-square test compares frequencies of categorical variables, not means.

How to do it right

Two categorical variables, so chi-square. A mean per group, so t-test or ANOVA.

MistakeLikely

Not flipping reverse coded items before Cronbach's alpha.

Why it goes wrong. Negatively coded items correlate negatively with the rest; alpha becomes low or even negative and the scale seems unreliable.

How to do it right

First flip the reverse coded items (with 5 points: 6 minus the score) and then compute alpha.

Data cleaning and management12 mistakes

MistakeSure

Computing the mean without na.rm = TRUE while there are NAs.

Why it goes wrong. mean() then gives NA; you get no number and the analysis stops or is empty.

How to do it right

Use mean(x, na.rm = TRUE) and report how many NAs you left out.

MistakeSure

Leaving an error code such as -999 as a real value.

Why it goes wrong. The mean and the spread are strongly distorted; a July mean of -2.4 degrees is then nonsense.

How to do it right

First set error codes to NA and then continue; check with summary().

MistakeLikely

Always filling missing values with the mean.

Why it goes wrong. The mean stays the same but the spread becomes artificially smaller, and with systematically missing data the picture is wrong.

How to do it right

Choose deliberately: deletion with few NAs, otherwise imputation, and record the choice.

MistakeLikely

Removing rows with NAs without looking at why they are missing.

Why it goes wrong. If the values are missing systematically, a biased sample remains (bias) and you lose power.

How to do it right

First investigate the cause and compare the removed rows with the remaining ones.

MistakeSure

Leaving "Male", "male" and "M" as three categories.

Why it goes wrong. R counts them as different levels; tables and group means are split over duplicate groups.

How to do it right

Standardize with tolower() and recode M to male, and count again.

Mistake

Treating a column containing "n/a" as numeric.

Why it goes wrong. The column is character; as.numeric() turns it into NA with a warning and computing does not work without that step.

How to do it right

Check the types with str() and convert the column deliberately after cleaning the text.

MistakeSure

Removing every outlier immediately.

Why it goes wrong. An outlier can be a rare but valid case; removing without investigation discards information and can cause bias.

How to do it right

Investigate whether it is an error; remove only impossible values (age 328) and record the threshold.

MistakeSure

Applying log() to a column with zeros and not checking.

Why it goes wrong. log(0) is -Inf; those values ruin means and models without your noticing.

How to do it right

Check for NA and Inf after every transformation, or use log(x + 1) and document that.

Mistake

Merging on a key with different data types or duplicates.

Why it goes wrong. Int against character causes problems and duplicates in the key multiply rows.

How to do it right

Check types, remove duplicates and look at the number of rows after the merge.

Mistake

Assuming merge() keeps all rows.

Why it goes wrong. By default only rows with a match remain; non-matches silently disappear.

How to do it right

Use all.x or all to choose what you want to do with non-matches, and check the result.

Mistake

Mixing up normalization and standardization.

Why it goes wrong. Normalization scales to 0 to 1; standardization gives z-scores with mean 0 and no fixed range.

How to do it right

Normalization = range [0, 1]; standardization = unbounded, via (x - mu) / sigma.

Mistake

Comparing totals per year without checking the number of observations.

Why it goes wrong. An incomplete year has fewer hours and thus a lower total, even without a real difference.

How to do it right

First count the observations per year and compare means instead of totals.

Linear regression11 mistakes

MistakeLikely

Saying that multicollinearity makes the coefficients biased.

Why it goes wrong. Multicollinearity does not make the estimate skewed; the estimate stays unbiased. The standard errors do grow, so the coefficients are imprecise and often not significant.

How to do it right

Write: larger standard errors, wide confidence intervals, unstable coefficients. Bias is the signature of omitted variable bias, not of multicollinearity.

MistakeSure

Choosing the category with the largest mean as the reference group (baseline).

Why it goes wrong. The reference group is a choice of the researcher or of R (the first category alphabetically). The mean does not decide it, and the intercept is the mean of the reference group, ceteris paribus.

How to do it right

Read the reference group from the dummies that are missing in the summary. The intercept belongs to that group; every dummy coefficient is the difference with that group.

MistakeSure

Reading the assumption "Linearity" as the variables themselves having to be normal or linearly measured.

Why it goes wrong. Linearity is about the relationship: y is linear in the coefficients. With a quadratic term or a log transformation the model remains linear in the parameters.

How to do it right

Write: the expected y is a linear combination of the coefficients; model non-linear effects with transformations or a quadratic term.

MistakeSure

Interpreting a coefficient without ceteris paribus in a multiple regression.

Why it goes wrong. In a model with several predictors a coefficient is the effect holding the other predictors constant. Without that addition the interpretation is wrong and you lose points.

How to do it right

Always say: "on average ... higher per extra unit of x, ceteris paribus" and name the units of y and x.

MistakeSure

Reading the p-value as the probability that the null hypothesis is true.

Why it goes wrong. The p-value is the probability of an estimate this extreme if H0 is true. It is not a probability of H0 itself and not a measure of the size of the effect.

How to do it right

Phrase it: "if the population coefficient is zero, an estimate like this is expected in p% of samples". Judge size separately.

MistakeSure

Reading a high R-squared as proof that the model is causal or correct.

Why it goes wrong. R-squared only measures how much variation the model explains in this sample. It says nothing about causality, bias or generalisability.

How to do it right

Say: "the model explains X% of the variation in y" and discuss sample, bias and validity separately.

MistakeLikely

Comparing models on R-squared while they have a different number of predictors.

Why it goes wrong. R-squared rises or stays equal with every extra predictor, even a useless one. The larger model then always wins.

How to do it right

Compare with adjusted R-squared or with a partial F-test for nested models.

MistakeLikely

Reading the main coefficient b1 as the average effect of x1 when there is an interaction term.

Why it goes wrong. With an interaction term b1 is the effect of x1 when x2 is zero. The effect at other values of x2 is b1 + b3 x2.

How to do it right

Compute the effect for the value of x2 in the question: b1 + b3 x2, and call that the slope for that group.

MistakeSure

Reading a log model as "per unit" instead of "per percent".

Why it goes wrong. In log(y) = b0 + b1 x, b1 is roughly a relative change: 100 x b1 percent per unit of x. In log-log b1 is an elasticity: percent per percent.

How to do it right

First determine which side has the log, then phrase the unit: unit, percent per unit, or percent per percent.

MistakeSure

Confusing omitted variable bias with multicollinearity because both are about "association".

Why it goes wrong. With omitted variable bias a variable that relates to x and y is missing: the estimate is biased. With multicollinearity all predictors are present but strongly correlated: the estimate is unbiased but imprecise.

How to do it right

Ask yourself: is something missing (omitted variable bias) or is there too much overlap (multicollinearity)?

Mistake

Making a prediction far outside the range of the data.

Why it goes wrong. That is extrapolation: the linear relationship need not hold there and the uncertainty is large.

How to do it right

First check the range of x and call a prediction outside the range unreliable.

Logistic regression, overfitting and validation11 mistakes

MistakeSure

Reading the coefficient 1.01 as: the probability rises by 1.01 percentage points.

Why it goes wrong. A logit coefficient is a change in the log-odds, not in the probability in percentage points.

How to do it right

Say: the log-odds rise by 1.01, or the odds become exp(1.01) = 2.75 times as large, holding other variables equal.

MistakeSure

Reading an odds ratio of 2.75 as '2.75 times the chance'.

Why it goes wrong. An odds ratio is a ratio of odds, not of probabilities. They only lie close together if the outcome is rare.

How to do it right

Say: the odds are about 2.75 times as large (ceteris paribus).

MistakeSure

Reading log-odds as a probability, such as log-odds of -1.5 as 'probability -150%'.

Why it goes wrong. Log-odds do not lie between 0 and 1. The probability follows from p = 1/(1 + exp(-z)).

How to do it right

Convert: z = -1.5 gives p = 1/(1 + exp(1.5)) = 0.18.

MistakeSure

High accuracy means a good model, even with imbalanced classes.

Why it goes wrong. A model that always predicts the majority class already gets a high accuracy and finds no positive case at all.

How to do it right

Compare with the baseline and calculate sensitivity and precision.

MistakeSure

Mixing up sensitivity and precision.

Why it goes wrong. Sensitivity starts from the real positives (TP/(TP + FN)), precision from the predicted positives (TP/(TP + FP)).

How to do it right

If you ask what share of the real cases you find, it is sensitivity; what share of the alerts is right, precision.

MistakeLikely

Always setting the threshold at 0.5.

Why it goes wrong. 0.5 is a convention. The right cut-off depends on the cost of a missed case against a false alarm.

How to do it right

Choose the threshold through the costs; a lower threshold gives more sensitivity but less specificity.

MistakeSure

Judging the model on the training data.

Why it goes wrong. The model fits the data it was estimated on best by definition; that says nothing about new data.

How to do it right

Split into a training set and a test set (or use cross-validation) and judge on data the model did not see.

MistakeSure

Seeing a higher test accuracy than training accuracy as proof of overfitting.

Why it goes wrong. Overfitting shows as a clearly lower test performance. A small difference the other way is chance.

How to do it right

Compare train and test: only a clearly worse test points to overfitting.

MistakeLikely

Reading the pseudo-R² as a percentage of explained variance.

Why it goes wrong. McFadden = 1 - ln L(model)/ln L(null) is an improvement in log-likelihood, not explained variance.

How to do it right

Use it as a relative measure next to the AIC and the test performance.

MistakeSure

Seeing a lower AUC on the test set as overfitting, or reading an AUC of 0.71 as 71% classified correctly.

Why it goes wrong. AUC measures ranking over all thresholds, not the share classified correctly.

How to do it right

AUC is the probability that a random positive gets a higher score than a random negative; 0.5 is guessing.

MistakeSure

Reading p = 0.06 as a 6% chance that H0 is true.

Why it goes wrong. The p-value is a probability of the data (or more extreme) given H0, not a probability of H0.

How to do it right

Say: not significant at α = 0.05; no evidence of an effect.

More
Learn
Practice
Play
Overview
Other courses
BM22Strategic Management
Display
Nederlands
Keyboard shortcuts
Everywhere
Search and jump
CtrlthenK
Search
/
This overview
?
Go to Today
GthenV
Go to Modules
GthenM
Go to Flashcards
GthenF
Go to Practice exams
GthenT
Go to Planner
GthenP
Close
Esc
Flashcards
Flip card
Space
Pick an answer
1–4
Next card
Enter
Questions and games
Pick an answer
1–4
Next
Enter