Practice exam 0
Block 1 - Diagnostic analytics and causality
2Consider the following statements:
- An abstract concept (construct) must always be directly observable.
- A model is a simplified representation of reality.
- The categories of a nominal variable have no natural order.
Which statements are correct?
3Consider the following statements about measurement levels:
- A nominal variable sorts observations into categories, without numerical meaning.
- An ordinal variable has an order, but the distances between the categories have no meaning.
- Both continuous and discrete variables are quantitative.
Which statements are correct?
4The delivery time of a wholesaler is normally distributed with a mean of 5 days and a standard deviation of 1.5 days. Approximately, what is the probability that a delivery takes longer than 8 days?
Block 2 - Descriptive statistics, sampling and correlation
5A hospital chain wants to measure patient satisfaction. The researchers first divide all patients by department (cardiology, orthopedics, oncology, and so on) and then draw a random sample within each department. Which sampling method is this?
6A company analyses the relationship between customers' income and the number of luxury products they buy. The scatter plot shows an increasing but non-linear pattern: customers with a higher income buy more luxury products, but the increase levels off at higher incomes. Which correlation measure fits best?
7Consider the following statements:
- The partial correlation measures the association between X and Y after controlling for another variable Z.
- A spurious correlation can arise when X and Y are both influenced by a third variable.
- If two variables have a correlation of r = 0.70, controlling for a confounder cannot reduce that correlation.
Which statements are correct?
8An advisory team wants to estimate the average stress level of the employees of a multinational. The team surveys employees who volunteer during a workshop on vitality. The measured stress levels are very low, and management concludes that “stress across the whole company is very low”. What is the main problem?
Block 3 - Hypothesis testing
9Which interpretation of a p-value of 0.01 is correct?
10A marketing team tests H0: the new campaign does not increase sales. Based on the test, H0 is rejected and the campaign is rolled out nationwide. In reality the campaign has no effect. Which error was made?
11An HR team evaluates a training programme using productivity scores of the same 20 employees, measured before and after the training. The team runs the test below. Which conclusion is correct at α = 0.05?
> t.test(na, voor, paired = TRUE)
Paired t-test
data: na and voor
t = 1.95, df = 19, p-value = 0.0661
alternative hypothesis: true mean difference is not equal to 0
95 percent confidence interval:
-0.13 3.73
sample estimates:
mean difference
1.80
12A retailer investigates whether average customer satisfaction differs between three stores. The analyst runs an analysis of variance (ANOVA) on the scores of 90 customers. Which conclusion is correct at α = 0.05?
> summary(aov(tevredenheid ~ winkel, data = enquete))
Df Sum Sq Mean Sq F value Pr(>F)
winkel 2 24.60 12.300 5.32 0.00661 **
Residuals 87 201.15 2.312
13A web shop wants to know whether the number of orders is evenly distributed over the seven days of the week (each day has a probability of 1/7). Which test fits best?
14Consider the following statements:
- A Likert item is a single statement with ordered response categories (from “strongly disagree” to “strongly agree”).
- A Likert scale consists of multiple Likert items that together measure the same construct; these items are combined into a composite score.
- A Likert scale is always nominal, because the response categories have a label.
Which statements are correct?
Block 4 - Data cleaning and management
15A dataset contains the variable temperature, with values that are sometimes recorded as text (“18C”) and sometimes as a number (18). The analyst converts all values to numeric without checking the result. Later it turns out that all values that were recorded as “18C” have become missing values (NA). What went wrong?
16Consider the following statements:
- Outliers must be investigated to establish whether they are errors or valid, rare observations.
- Removing outliers always improves the performance of a model.
- A transformation, such as a log transformation, can reduce the influence of extreme values.
Which statements are correct?
Block 5 - Linear regression
17A company estimates the following regression model:
Verkopen = β0 + β1 Prijs + β2 Advertentie + ε
Which statement about the error term ε is correct?
18Which statement about ordinary least squares (OLS) is correct?
19A retail chain models the monthly sales of 120 branches (Omzet, in €1,000) as a function of advertising spend (Advertentie, in €1,000), store floor area (Oppervlakte, in m²) and the number of competitors nearby (Concurrenten). Which interpretation of the coefficient of Concurrenten is correct?
Call:
lm(formula = Omzet ~ Advertentie + Oppervlakte + Concurrenten, data = winkels)
Residuals:
Min 1Q Median 3Q Max
-35.62 -9.41 0.57 9.88 38.15
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 42.500 8.300 5.12 1.22e-06 ***
Advertentie 3.200 0.650 4.92 2.85e-06 ***
Oppervlakte 0.085 0.021 4.05 9.37e-05 ***
Concurrenten -4.100 1.250 -3.28 0.00137 **
---
Signif. codes: 0 ’***’ 0.001 ’**’ 0.01 ’*’ 0.05 ’.’ 0.1 ’ ’ 1
Residual standard error: 14.21 on 116 degrees of freedom
Multiple R-squared: 0.4712, Adjusted R-squared: 0.4575
F-statistic: 34.45 on 3 and 116 DF, p-value: 5.35e-16
20Look at the output of the store model in the previous question (Multiple R-squared 0.4712, Adjusted R-squared 0.4575, F-statistic p-value 5.35e-16). Which statement about the goodness of fit is correct?
Residual standard error: 14.21 on 116 degrees of freedom Multiple R-squared: 0.4712, Adjusted R-squared: 0.4575 F-statistic: 34.45 on 3 and 116 DF, p-value: 5.35e-16
21The board of the retail chain (see the regression output of the previous questions: Advertentie 3.200, p = 2.85e-06; Oppervlakte 0.085, p = 9.37e-05) wants to know which of the two predictors Advertentie and Oppervlakte has the strongest association with sales. What is the best approach?
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 42.500 8.300 5.12 1.22e-06 ***
Advertentie 3.200 0.650 4.92 2.85e-06 ***
Oppervlakte 0.085 0.021 4.05 9.37e-05 ***
Concurrenten -4.100 1.250 -3.28 0.00137 **
22A financial analyst estimates the model
Rendement = β0 + β1 Risico + β2 Land + ε.
The variable Bedrijfsgrootte is not in the model, but is related to both Rendement and Risico (and not to Land). Which statement describes the problem best?
23An economist uses data from 1,500 respondents to estimate the model Geluk = β0 + β1 Leeftijd + β2 Leeftijd² + ε, with happiness measured on a scale from 0 to 10. The lecturer asks: “According to this model, does happiness vary systematically with age?” Which answer is correct?
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 5.20000 0.30000 17.33 < 2e-16 ***
Leeftijd 0.05000 0.01200 4.17 3.22e-05 ***
I(Leeftijd^2) -0.00050 0.00013 -3.85 0.000123 ***
Block 6 - Logistic regression, overfitting and validation
24A government agency models the probability that residents participate in a recycling programme (Recycle = 1 for participation). Inkomen is measured in €1,000 per year, Stedelijk indicates whether someone lives in a city (Nee is the reference category), Bewustzijn is a score for environmental awareness and Opleiding is the number of years of education. Which interpretation is correct?
glm(formula = Recycle ~ Inkomen + Stedelijk + Bewustzijn + Opleiding,
family = binomial(link = "logit"), data = inwoners)
Coefficients:
Estimate Std. Error z value Pr(>|z|)
(Intercept) -3.000 0.900 -3.33 0.00087 ***
Inkomen 0.015 0.006 2.50 0.01242 *
StedelijkJa 0.800 0.250 3.20 0.00137 **
Bewustzijn 1.500 0.300 5.00 5.73e-07 ***
Opleiding 0.100 0.050 2.00 0.04550 *
25A researcher says: “A logit coefficient of 0.5 means that the probability of purchase increases by 0.5 percentage points.” Why is this incorrect?
26Three models for predicting loan default are compared on the area under the ROC curve (AUC), computed on the same test set: OLS: AUC = 0.68; probit: AUC = 0.74; logit: AUC = 0.76. Which conclusion is correct?
27In a logistic regression the coefficients are estimated with maximum likelihood estimation (MLE). Under certain conditions these estimators are consistent, asymptotically normally distributed and efficient. What do these properties mean?
28Why are special models such as logit or probit needed for a binary dependent variable?
29Why do we split the data into a training set and a test set in a logistic regression?
30A web shop sends an expensive discount coupon to customers who, according to a classification model, are likely to cancel. Management asks: “Of all customers the model flags as a canceller, what share really cancels?” Which measure answers this question?
Block 7 - Open questions on R output
7.1Tasks (maximum 200 words in total): 1. Interpret the coefficients of Koophuis and Leeftijd in business terms, including their statistical significance at α = 0.05. 2. Calculate the accuracy and the sensitivity of the model. 3. Management considers the model good because the accuracy is high. Explain why that judgement is misleading.
An energy supplier offers 800 customers a heat pump and models whether a customer accepts the offer (Accepteert = 1 for yes, 0 for no). The predictors are Inkomen (annual income in €1,000), Koophuis (Nee/Ja; Nee is the reference category) and Leeftijd (in years).
With a threshold of 0.5, the following confusion matrix results:
| | Observed = 1 | Observed = 0 |
|---|---|---|
| Predicted = 1 | 30 | 20 |
| Predicted = 0 | 50 | 700 |
Source: official practice exam BM21MIM-P (Practice exam 0), used with the lecturer's permission.
Call:
glm(formula = Accepteert ~ Inkomen + Koophuis + Leeftijd,
family = binomial(link = "logit"), data = klanten)
Coefficients:
Estimate Std. Error z value Pr(>|z|)
(Intercept) -3.8150 0.6420 -5.94 2.81e-09 ***
Inkomen 0.0124 0.0051 2.43 0.015 *
KoophuisJa 1.0986 0.2875 3.82 0.00013 ***
Leeftijd -0.0182 0.0094 -1.94 0.0528 .
---
Signif. codes: 0 ’***’ 0.001 ’**’ 0.01 ’*’ 0.05 ’.’ 0.1 ’ ’ 1
Null deviance: 520.61 on 799 degrees of freedom
Residual deviance: 478.33 on 796 degrees of freedom
AIC: 486.33
Answer builder
7.2Write a short reflection on your findings from the additional assignment with the Divvy data (shared bikes in Chicago). Address the following points (maximum 250 words in total): 1. How you interpreted the regression coefficients and what they mean. 2. How you interpreted the p-values and what they say about statistical significance. 3. How you assess the model fit and what it says about the predictive performance of the model. 4. What concerns there are about the sample (e.g. bias, representativeness), and how internal and external validity affect the credibility and generalisability of your conclusions.
In this question you reflect on your own model from the additional assignment with the Divvy data (shared bikes in Chicago). There is no fixed outcome: the answer depends on the model you estimated yourself, and the marking scheme assesses whether your reasoning is correct.
Source: official practice exam BM21MIM-P (Practice exam 0), used with the lecturer's permission.
Answer builder
7.3Tasks (maximum 150 words in total): 1. Name the role of network contacts and of company type (startup or established company) in the causal relationship scheme. 2. Formulate one testable hypothesis about the effect of flexible workspaces on innovation, and give the corresponding null hypothesis. 3. Explain why it is important to formulate the hypotheses before data collection.
A chain of coworking spaces wants to investigate whether the use of flexible workspaces increases the innovation capacity of affiliated companies. Management believes that flexible workspaces lead to more network contacts with other companies, and that these contacts in turn stimulate innovation. Management also expects this effect to be stronger for startups than for established companies.
Source: official practice exam BM21MIM-P (Practice exam 0), used with the lecturer's permission.