Déclic StatsEconometrics · chapitres 1 à 3
0 %
Révisions & outils

Examen blanc (chapitres 1 à 3)

Un sujet complet de 1 h 30, noté sur 20, construit comme à l'IESEG, avec des énoncés en anglais, des sorties SPSS fournies et aucun calcul à la main. Le corrigé et le barème détaillé sont cachés sous chaque question.

Consignes (à lire avant de commencer)
  • Durée : 1 h 30. Mets un minuteur et réponds sur papier, sans tes notes ni le site.
  • Les énoncés sont en anglais, comme le jour de l'examen. Rédige en anglais les conclusions et les définitions : c'est ce qui sera demandé.
  • Sauf mention contraire, le seuil est α = 5 %. Aucune lecture de table statistique, aucun calcul à la main : tout est dans les sorties SPSS.
  • N'ouvre les corrigés qu'à la fin. Chaque corrigé dit ce qui rapporte les points : corrige-toi honnêtement, puis regarde le tableau « Après l'examen blanc » en bas de page.
PartieThèmePointsTemps conseillé
1Data and descriptive statistics415 min
2Confidence interval315 min
3Hypothesis testing: course questions420 min
4Reading SPSS outputs (three cases)630 min
5Choosing the right test310 min
Total201 h 30

IESEG · Econometrics · Mock exam (chapters 1 to 3)

Duration: 1h30. No documents allowed. Unless stated otherwise, use a 5% level of significance. Answer in full sentences: every word counts.

Datasets. StudentSurvey: 111 students of a business school (gender, class, major, GPA, expected salary, satisfaction, spending, number of text messages per day…). BankMarketing: 979 clients of a Portuguese bank contacted by phone during a marketing campaign (age, marital status, credit default, balance, loans, duration of the last call, number of calls, subscription to a term deposit).

Part 1 · Data and descriptive statistics (4 points)

Question 1.1

2 points

For each of the following variables of StudentSurvey, give its type: binary, nominal, ordinal, discrete quantitative or continuous quantitative.

VariableDescription
GenderFemale / Male
ClassFreshman, Sophomore, Junior, Senior
MajorAccounting, Economics/Finance, Management, Marketing, IS, Other, Undecided
GPAGrade point average, from 0 to 4 (e.g. 3.25)
SatisfactionSatisfaction with the school, from 1 (very dissatisfied) to 7 (very satisfied)
Text MessagesNumber of text messages sent per day
SpendingAmount spent per semester, in $
ComputerLaptop, Desktop or Tablet
Voir le corrigé et le barème
VariableType attenduPourquoi
GenderbinaryQualitative à deux modalités (« nominal » seul est accepté).
ClassordinalCatégories qui se classent : Freshman < Sophomore < Junior < Senior.
MajornominalCatégories sans ordre logique.
GPAcontinuous quantitativeN'importe quelle valeur entre 0 et 4 ; la moyenne a un sens.
SatisfactionordinalÉchelle de Likert. Le cours accepte de la traiter comme quantitative à partir de 7 niveaux : « quantitative » est accepté s'il est justifié.
Text Messagesdiscrete quantitativeUn nombre entier de SMS.
Spendingcontinuous quantitativeUn montant (échelle de rapport : 0 $ = rien).
ComputernominalTrois catégories sans ordre.

Barème : 0,25 point par variable. Aucun point pour « quantitative » sans préciser, ni pour un type donné sans justification lorsqu'il est discutable (Satisfaction).

Question 1.2

2 points

The variable Text Messages (number of text messages sent per day) was analysed with Analyze › Descriptive Statistics › Explore. From the Percentiles table, Q1 = 60 and Q3 = 350.

Sortie SPSS · Output Viewer

Descriptives

StatisticStd. Error
Text MessagesMean224.4419.478
95% Confidence Interval for MeanLower Bound185.84
Upper Bound263.04
5% Trimmed Mean208.76
Median150.00
Variance42110.867
Std. Deviation205.209
Minimum0
Maximum800
Range800
Interquartile Range290
Skewness1.014.229
Kurtosis.169.455
  1. Compare the mean and the median. What does it tell you about the shape of the distribution? (0.5)
  2. Which measure of central tendency would you report to describe a typical student? Why? (0.5)
  3. Using the 1.5 × IQR rule, compute the upper limit above which a value is a potential outlier. Is the maximum a potential outlier? (0.5)
  4. Explain in one sentence what the standard deviation (205.209) measures. (0.5)
Voir le corrigé et le barème
  1. La moyenne (224,44) est nettement supérieure à la médiane (150) : la distribution est asymétrique à droite (skewness positive, 1,014). Quelques étudiants qui envoient énormément de SMS tirent la moyenne vers le haut. 0,25 pour la comparaison, 0,25 pour « right-skewed ».
  2. La médiane : elle résiste aux valeurs extrêmes, alors que la moyenne y est sensible. 0,25 + 0,25 pour la justification.
  3. Limite haute = Q3 + 1,5 × IQR = 350 + 1,5 × 290 = 785. Le maximum (800) est au-dessus : c'est une valeur aberrante potentielle (SPSS la dessinerait comme un point isolé sur la boîte à moustaches). 0,25 pour 785, 0,25 pour la conclusion.
  4. L'écart-type mesure la dispersion : la distance « typique » entre les valeurs et la moyenne, dans l'unité de la variable (des SMS par jour). 0,5 si l'idée d'écart à la moyenne est présente.

The mean (224.44) is much larger than the median (150), so the distribution is right-skewed: a few students send a very large number of messages. The median is a better measure of a typical student because it is not sensitive to extreme values.

Part 2 · Confidence interval (3 points)

Questions 2.1 to 2.4

3 points

Use the same output (Question 1.2): the 95% confidence interval for the mean number of text messages is [185.84 ; 263.04].

  1. (2.1) Interpret this interval in one sentence, as expected in the course. (1)
  2. (2.2) Two classmates wrote: (A) “95% of the students send between 186 and 263 text messages per day.” (B) “There is a 95% probability that the population mean is between 185.84 and 263.04.” Explain what is wrong in each sentence. (1)
  3. (2.3) The variable is not normally distributed (Shapiro-Wilk p < .001). Can we still use this confidence interval? Justify. (0.5)
  4. (2.4) Without any computation, would a 99% confidence interval be wider or narrower? Why? (0.5)
Voir le corrigé et le barème

2.1

We are 95% confident that the mean number of text messages sent per day by the students of the population is between 185.84 and 263.04.

Barème : 0,25 pour « 95% confident », 0,5 pour « population mean » (c'est la moyenne de la population qu'on encadre, pas celle de l'échantillon, qui vaut 224,44), 0,25 pour les bornes avec l'unité.

2.2

  • (A) confond l'intervalle de la moyenne avec l'étendue des données. Les étudiants envoient entre 0 et 800 SMS par jour ; l'intervalle ne parle que de la moyenne. Le cours insiste : 95 % de confiance ne veut pas dire que 95 % des données sont dans l'intervalle. (0,5)
  • (B) La moyenne de la population est fixe : elle est dans l'intervalle ou elle n'y est pas. C'est l'intervalle qui change d'un échantillon à l'autre. Le 95 % porte sur la méthode : sur 100 intervalles construits ainsi, environ 95 contiennent µ. On dit donc « we are 95% confident ». (0,5)

2.3 Oui : n = 111 > 50. Grâce au théorème central limite, la moyenne de l'échantillon suit à peu près une loi normale même si la variable ne l'est pas. La règle du cours ne demande la normalité que si n < 50. (0,25 pour « yes », 0,25 pour n > 50 / CLT.)

2.4 Plus large. Pour être plus confiant, il faut une fourchette plus large (la valeur de Student utilisée passe d'environ 1,98 à environ 2,62). Pour info, l'IC à 99 % vaut [173,39 ; 275,50]. (0,25 + 0,25.)

Part 3 · Hypothesis testing: course questions (4 points)

Questions 3.1 to 3.5

4 points
  1. (3.1) Define the p-value in your own words. (1)
  2. (3.2) A pharmaceutical laboratory tests H0: “the new drug has no effect” against H1: “the new drug has an effect”. Describe the Type I error in this context. What is its probability called, and when is it chosen? (1)
  3. (3.3) Why do we say “we fail to reject H0” and never “we accept H0”? (0.5)
  4. (3.4) (a) Why do we use Student's t distribution instead of the normal distribution when we test a mean? (b) How many degrees of freedom does a one-sample t-test on 111 students have? Give a (possibly imperfect) definition of the degrees of freedom. (1)
  5. (3.5) Last year, customers spent €46 on average. The manager believes that they spend more this year. Write H0 and H1, and say whether the test is one-tailed or two-tailed. (0.5)
Voir le corrigé et le barème

3.1

The p-value is the probability, if H0 is true, of obtaining a sample result at least as extreme as the one we observed. The smaller it is, the less our data are compatible with H0: if it is smaller than α, we reject H0.

0,5 pour « if H0 is true », 0,5 pour « at least as extreme as the observed value ». Zéro pour « the probability that H0 is true » (le contresens classique).

3.2

A Type I error means rejecting H0 while it is true: here, concluding that the drug has an effect while it actually has none (a false positive). Its probability is α, the level of significance, chosen by the analyst before running the test (often 5%).

0,5 pour l'erreur décrite dans le contexte du médicament, 0,25 pour α / level of significance, 0,25 pour « chosen before the test ».

3.3 Parce qu'on travaille sur un échantillon : ne pas rejeter H0 veut seulement dire qu'on n'a pas assez de preuves contre elle. H0 peut quand même être fausse (comme un accusé acquitté faute de preuves n'est pas prouvé innocent).

We only have a sample: failing to reject H0 means that there is not enough evidence against it, not that H0 is proven true.

3.4 (a) Parce que l'écart-type de la population σ est inconnu : on l'estime par l'écart-type de l'échantillon s, ce qui ajoute de l'incertitude. La loi de Student, plus étalée, en tient compte ; quand n grandit, elle ressemble de plus en plus à la loi normale. (0,5) (b) df = n − 1 = 110. Les degrés de liberté sont le nombre de valeurs qui peuvent varier « librement » une fois la moyenne connue (la dernière est imposée par la moyenne) ; ou encore la quantité d'information disponible au-delà du minimum nécessaire pour estimer l'inconnue. (0,25 + 0,25)

3.5 H0 : µ ≤ 46 ; H1 : µ > 46. Test unilatéral à droite (one-tailed, right-tailed). 0,25 pour les hypothèses (le ≤ dans H0), 0,25 pour « one-tailed ».

Part 4 · Reading SPSS outputs (6 points)

Case A · Age and credit default

2.5 points

The bank wonders whether the clients who have already defaulted on a credit (Default = yes) have the same mean age as the other clients. Here are the outputs.

Sortie SPSS · Output Viewer

Group Statistics

DefaultNMeanStd. DeviationStd. Error Mean
Ageyes2537.127.3841.477
no95440.249.393.304

Tests of Normality

DefaultKolmogorov-SmirnovaShapiro-Wilk
StatisticdfSig.StatisticdfSig.
Ageno.094954<.001.966954<.001
yes.11625.200*.95425.307

*. This is a lower bound of the true significance.
a. Lilliefors Significance Correction

Independent Samples Test

Levene's Test for Equality of Variancest-test for Equality of Means
FSig.tdfSignificanceMean DifferenceStd. Error Difference95% Confidence Interval of the Difference
One-Sided pTwo-Sided pLowerUpper
AgeEqual variances assumed2.213.137-1.647977.050.100-3.1201.894-6.837.597
Equal variances not assumed-2.06926.077.024.049-3.1201.508-6.219-.021
  1. Write H0 and H1. (0.5)
  2. Are the assumptions of the test met? Use the outputs to justify. (0.75)
  3. Which line of the Independent Samples Test do you read? Why? (0.5)
  4. Make a decision and write a conclusion. (0.75)
Voir le corrigé et le barème
  1. H0 : µyes = µno ; H1 : µyes ≠ µno (bilatéral : « the same mean age? »). 0,25 + 0,25.
  2. Deux groupes indépendants → test t pour échantillons indépendants. Groupe « no » : n = 954 > 50, la taille suffit (peu importe que Shapiro y rejette la normalité). Groupe « yes » : seulement 25 clients, moins de 30 : il faut que l'âge y soit normal. Shapiro-Wilk : Sig. = 0,307 > 0,05 → on ne rejette pas la normalité. Les conditions sont donc remplies. 0,25 pour chaque groupe correctement traité, 0,25 pour la lecture de Shapiro (0,307).
  3. Levene : Sig. = 0,137 > 0,05 → on ne rejette pas l'égalité des variances → première ligne, « Equal variances assumed ». 0,25 + 0,25.
  4. Two-Sided p = 0,100 > 0,05 → fail to reject H0. 0,25 pour la bonne p-value et la décision, 0,5 pour la phrase.

Levene's test p-value (0.137) is larger than 0.05, so we assume equal variances and read the first line. The two-sided p-value (0.100) is larger than 0.05, so we fail to reject H0. There is not enough statistical evidence, at a 5% level of significance, to say that the mean age of clients who defaulted is different from the mean age of the other clients.

Le piège de ce cas

La ligne du bas (Welch) donne p = 0,049 < 0,05 : en la lisant, on rejetterait H0 à tort. Ici, le choix de la ligne change la décision : c'est exactement ce que le correcteur vérifie. Autre piège : la colonne One-Sided p (0,050) ne sert pas, le test est bilatéral. Une copie qui lit la mauvaise ligne ou la mauvaise colonne perd les points de c) et d).

Case B · Gender and employment status

2 points

Is the employment status of the students (Full-Time, Part-Time, Unemployed) related to their gender? (StudentSurvey)

Sortie SPSS · Output Viewer

Gender * Employment Crosstabulation

EmploymentTotal
Full-TimePart-TimeUnemployed
GenderFemaleCount6381155
Expected Count8.937.28.955.0
% within Gender10.9%69.1%20.0%100.0%
MaleCount1237756
Expected Count9.137.89.156.0
% within Gender21.4%66.1%12.5%100.0%
TotalCount187518111
Expected Count18.075.018.0111.0
% within Gender16.2%67.6%16.2%100.0%

Chi-Square Tests

ValuedfAsymptotic Significance (2-sided)
Pearson Chi-Square2.893a2.235
Likelihood Ratio2.9392.230
Linear-by-Linear Association2.7531.097
N of Valid Cases111

a. 0 cells (0.0%) have expected count less than 5. The minimum expected count is 8.92.

  1. Write H0 and H1. (0.5)
  2. Is the test valid? Justify. (0.5)
  3. Make a decision and write a conclusion. (0.75)
  4. A journalist writes: “Male students are twice as likely to work full-time as female students (21.4% vs 10.9%).” Comment. (0.25)
Voir le corrigé et le barème
  1. H0 : Gender et Employment sont indépendantes ; H1 : elles sont dépendantes (liées). 0,25 + 0,25.
  2. Oui : la règle du cours (au moins 5 dans chaque case du tableau attendu) est respectée. Note a. : 0 case sous 5, minimum attendu 8,92. 0,25 pour la règle, 0,25 pour la lecture de la note.
  3. Ligne Pearson Chi-Square : Asymptotic Significance (2-sided) = 0,235 > 0,05 → fail to reject H0. 0,25 pour la bonne ligne et la décision, 0,5 pour la phrase.
  4. C'est vrai dans l'échantillon, mais l'écart n'est pas statistiquement significatif : on ne peut pas le généraliser à la population des étudiants. (0,25)

All expected counts are at least 5, so the chi-square test is valid. The p-value (0.235) is larger than 0.05, so we fail to reject H0. There is not enough statistical evidence, at a 5% level of significance, to say that gender and employment status are dependent.

Case C · Graduate school intentions

1.5 points

A business newspaper claims that 30% of business school students intend to go to graduate school. A new variable GradYes was created from Grad Intention (Yes = intends to go to graduate school; Other = No or Undecided). The first student of the file answered Yes, so SPSS uses “Yes” as Group 1. (StudentSurvey)

Sortie SPSS · Output Viewer

Binomial Test

CategoryNObserved Prop.Test Prop.Asymp. Sig. (1-tailed)
GradYesGroup 1Yes42.38.30.045a
Group 2Other69.62
Total1111.00

a. Based on Z Approximation.

  1. Name the test and write H0 and H1. (0.5)
  2. Make a decision and write a conclusion. (1)
Voir le corrigé et le barème
  1. Binomial test (un échantillon, une proportion à deux issues comparée à une cible). H0 : p = 0,30 ; H1 : p ≠ 0,30, où p est la proportion d'étudiants qui veulent poursuivre en master. 0,25 pour le test, 0,25 pour les hypothèses.
  2. SPSS donne une p-value unilatérale (« Asymp. Sig. (1-tailed) », calculée par approximation normale, note a.) : pour notre test bilatéral, on la double : 2 × 0,045 = 0,089 > 0,05 → fail to reject H0. 0,5 pour le doublement (zéro sur la question si on décide avec 0,045), 0,25 pour la décision, 0,25 pour la phrase.

SPSS gives a one-tailed p-value (0.045). As the test is two-tailed, we double it: 0.089. This is larger than 0.05, so we fail to reject H0. There is not enough statistical evidence, at a 5% level of significance, to say that the proportion of students who intend to go to graduate school is different from 30%.

Le piège de ce cas

Avec 0,045, on rejetterait H0 à tort : ici, oublier le × 2 change la décision. Vérification : l'IC à 95 % de la proportion de « Yes » (42 / 111 = 37,8 %) vaut [0,288 ; 0,469] et contient bien 0,30. Le résultat est « peu significatif » (entre 5 et 10 %).

Part 5 · Choosing the right test (3 points)

Question 5

3 points

For each situation, name the most appropriate test and write H0. (0.5 point each)

  1. The bank wants to know whether the mean balance is different for clients with and without a housing loan.
  2. A retailer records the weekly sales of the same 60 shops the week before and the week after a TV campaign. Did the sales change?
  3. Is there a relationship between the age of the clients and the duration of the call?
  4. Is the proportion of students who use a laptop the same in the four classes (Freshman, Sophomore, Junior, Senior)?
  5. The bank claims that 5% of the clients contacted subscribe to a term deposit. Is it true?
  6. An analyst only has data on 20 clients and wants to run a t-test on their balance. What must he check first, and with which test?
Voir le corrigé et le barème
TestH0Justification clé
a.Independent-Samples T-Testµloan = µno loanDeux groupes indépendants, une moyenne. Lire Levene d'abord.
b.Paired-Samples T-Testµbefore = µafter (différence moyenne = 0)Les mêmes magasins mesurés deux fois : appariés. n = 60 > 50.
c.Pearson (ou Spearman si le lien n'est pas linéaire / valeurs aberrantes)ρ = 0Un échantillon, deux variables quantitatives.
d.Chi-Square Test (comparaison de proportions = indépendance)La proportion de laptops est la même dans les 4 classes (Class et Laptop indépendantes)Vérifier les effectifs attendus ≥ 5, sinon Fisher.
e.Binomial Testp = 0,05Une proportion comparée à une cible ; doubler la p-value de SPSS.
f.Shapiro-Wilk (+ histogramme, QQ-plot)La variable Balance suit une loi normalen = 20 < 50 : le test t n'est permis que si les données sont normales.

Barème : 0,25 pour le test, 0,25 pour H0 (ou la justification clé). En b), « independent t-test » vaut 0 : c'est le piège de l'appariement. En d), « binomial » vaut 0 : il y a quatre groupes à comparer.

Après l'examen blanc

Additionne tes points partie par partie. Là où tu as perdu plus de la moitié des points, reprends la leçon correspondante avant de refaire le sujet dans une semaine.

PartieSi tu as perdu des points
1 · Descriptive statisticsTypes de variables, moyenne, médiane, écart-type, histogramme et boîte à moustaches
2 · Confidence intervalThéorème central limite, IC d'une moyenne
3 · Course questionsH0, H1 : la logique, erreurs et risque α, la p-value
4 · SPSS outputsComparer deux moyennes, khi-deux et Fisher, test binomial, normalité
5 · Choosing a testChoisir le bon test et l'arbre de la fiche mémo

Les points qu'on perd le plus souvent

  • Écrire « accept H0 » ou « H0 is true » : toujours fail to reject H0.
  • Lire la mauvaise ligne du test t (oublier Levene) ou la mauvaise colonne (One-Sided au lieu de Two-Sided).
  • Oublier de multiplier par 2 la p-value du test binomial.
  • Ne pas justifier la validité du khi-deux (note a., effectifs attendus).
  • Une conclusion sans contexte : il faut toujours reprendre les mots de la question (âge, clients, SMS…).

Pour t'entraîner encore : les exercices du chapitre 3 et la fiche mémo.

Déclic Stats — supports de révision pour le cours Econometrics (IESEG). Les explications sont rédigées en français ; le vocabulaire d'examen est donné en anglais.