ME1 EC2 mock exam — 4 hours with R beside you, from the normal to confidence intervals, four versions and a mark out of 50 (and why exercise 1 is worth double)

The EC2 of Statistical Methods I is the second half of the subject in a single afternoon: 4 hours with your laptop, 4 linked exercises and 50 points, from the normal distribution to confidence intervals, with RStudio open and an .R file you upload to the campus at the end. This mock exam reproduces it: the same 20, 10, 10 and 10 points plus a 5-point extra bonus, the R environment on the right with your version’s data already loaded, boxes that mark themselves to two decimals and criteria to mark your own proofs. When you hand in you see your mark out of 50, whether it is enough to pass by coursework, the part-by-part breakdown and the solution to each part with its R code and the real output.

There are four original versions: A, B and C follow the 2025-26 EC2 (the same kinds of exercise with other contexts and other data) and D swaps some parts for syllabus content that did not come up that year. No statement is real: the data were generated with a script, the answers come from running the solution code once in R, and it has been checked that no value matches the real exam.

Take the mock exam

Choose the version and how you want to do it. When you start, the exam fills the window: the statement on the left and R on the right (on a phone, two tabs). The clock counts the 4 hours of the real exam.

The mock exam needs JavaScript. Below you will find what the exam is like and what each exercise covers.

If you choose On paper, click «Download the exam (PDF)»: it comes with the cover page, the empty marks table and the boxes of each part, without solutions. R stays beside you for whatever needs it, as in the classroom. It is the best way to train for the real exam, because in EC2 the working is most of the mark.

version D rotates content: exercise 1 compares the CLT with and without the continuity correction and uses a joint density on a triangular support whose variables are not independent; exercise 2 estimates an exponential whose MLE is biased and has to be corrected; exercise 3 compares two independent samples with different variances (Welch) and works out a sample size; and exercise 4 builds intervals for a Poisson, the asymptotic one and the exact one. The bonus swaps the chi-square for an F.

What ME1’s EC2 is like

It takes place in the classroom, on your own laptop (RStudio installed and the battery at 100 %) inside the exam’s secure browser. It lasts 4 hours and is worth 50 points, the other half of the subject mark. There are 4 exercises, each with its own context and several linked parts: one usually needs the result of the previous one. There are calculations and proofs by hand and parts with R, and every result is given with two decimals. The extra bonus adds up to 5 points on top.

ExerciseWhat is askedTopicsPoints
1A sum of many variables with the CLT, and a joint density: the constant, the marginals, the joint mgf, the covariance and the change to U=X+YU = X + Y, V=X−YV = X – Y with its marginals6 and 720
2A density with a parameter: method of moments and maximum likelihood estimators, with data and with optim; the distribution of the MLE through the mgf, and that it is unbiased, consistent and efficient9 and 1010
3Intervals with R for a normal (known and unknown σ, the variance), the variance ratio of two samples and the mean difference of paired data, with the proof of the t8 and 1110
4A pivot: the distribution of a sum with the mgf, the change to a chi-square, the exact and the asymptotic interval, and both with data8 and 1110
BonusThe difference of two proportions (estimate and interval) and a quantile of a sum of chi-squares8, 9 and 11+5
How the EC2 points are splitBars by exercise, each part as wide as its points: 1 is worth 20 (a 5-point CLT and a 15-point joint density in seven parts), 2 is worth 10 (estimation: moments, maximum likelihood and properties), 3 is worth 10 (intervals with R and a proof of the t) and 4 is worth 10 (a pivot with the chi-square). The bonus adds 5 on top in three parts.EC2: 50 points in 4 exercises + a 5-point extra bonusExercise 120 points1.aR · 51.bp21.cpaper · 31.dp21.ep11.fpaper · 31.gp21.hp2Exercise 210 points2.ad22.bR12.cR12.dd22.ed22.fd12.gd1Exercise 310 points3.aR23.bR13.cR23.dR23.ed23.fR1Exercise 410 points4.ad24.bd24.cd24.dd24.eR2Bonus+5B.1R1B.2R2B.3p2Topics 5-7 · normal, joint, CLTTopic 8 · samplingTopics 9-10 · estimationTopic 11 · intervalsR = with R · p = paper · d = proof (purple border)
Exercise 1 is worth twice as much as the others and is almost all on paper; the proofs are concentrated in exercises 2 and 4.

Look at the chart: exercise 1 is worth twice as much as any other and is almost all on paper, and the proofs (purple border) are concentrated in 2 and 4. Exercise 3 is the most «R» one: if your script has t.test, var.test and the variance interval, those are 8 almost certain points.

What you can bring: two sheets and your .R

You walk into EC2 with two things of your own:

  1. A handwritten cheat sheet of two sheets, both sides (in EC1 it was one). Results are allowed (mgfs of the models, sampling distributions, interval formulas, the Fisher information), but not proofs. The cheat sheet at the end of this article is a good base for yours.
  2. A single .R file you upload to the campus before a deadline, with your code from classes and labs. The «For your script» section of each topic’s exercises has that topic’s code already commented.

And at the end, you upload the .R with the code for each exercise. Without it, that exercise is not marked, even if the results are right. In the mock exam, the script on the right plays that role: you can download it when you hand in.

Trusting that you will «work out» the interval formula on the day. In exercise 3 there is no time to derive anything: have t.test(x, conf.level = …), t.test(x, y, paired = TRUE), var.test(x, y) and the two lines of the σ² interval with qchisq in your script, and on your cheat sheet, which pivot goes with each case.

How it is marked

Each part is a cell of the marks table (1.a, 1.b… 4.e and the three bonus parts). There are two kinds:

  • Parts with a result. You write it in its boxes and it is marked automatically, with a 0.01 tolerance (comma or point both work). If there are several boxes, each is worth its share. The paper parts of exercise 1 ask for a check value: the formula is general, with λ\lambda, and the box is filled in with a specific λ\lambda given in the statement. That checks your formula is right without having to type it.
  • Proofs. There is no number to check, so when you hand in you get the criteria with their points (for example, «writes the log-likelihood», «differentiates and sets to 0», «checks it is a maximum») and you tick the ones you did. That is how the lecturer marks: step by step.

The parts that need working in the exam have the «I worked it out on paper» box. Unticked they score 0 even if the result is right, with a note of what you would have had: in the real exam, a number with no working does not score. The ones done only with R do not have it, because their «working» is the code in the .R.

The mark is out of 50, with the bonus on top, and the mock exam tells you which zone you are in with the rules of the 2026/27 course guide: with 25 or more the EC is passed and kept for the final and the resit; with over 20 it counts towards passing by coursework if EC1 and EC2 add up to 50; with 20 or less this part goes to the final. As EC2 is the second test, what you need depends on what you got in EC1:

What you need in EC2 given your EC1A chart with the EC1 mark across and the minimum EC2 mark up. Up to 20 in EC1, red zone: you cannot pass by coursework. From there the coral line goes down: you need 50 minus your EC1, and from 30 in EC1 on, just over 20 in EC2 is enough.What you need in EC2 given your EC100101020202525303040405050EC1 ≤ 20:that part goes to the finalpassed by coursework25 → 2530 or more → 20.01 is enoughYour EC1 markMinimum in EC2
Passed by coursework: EC1 + EC2 ≥ 50 and each over 20 (2026/27 course guide). Not counting the extra from the quizzes and the bonuses.

With 30 or more in EC1, in EC2 just over 20 is enough; with 25, you need another 25. The subject mark is (EC1 + EC2) / 10, plus the extra from the virtual classroom quizzes and the bonuses, and the ME1 calculator works it out with your real marks.

The four versions

VersionExercise 1Exercise 2Exercise 3Exercise 4
AThe class video (CLT) and the phone alerts, exponentials with rates 2 and λThe lab server start-up (X3X^3 exponential)The battery of 32 laptops before and after an updateThe VPN that drops: exponential
BBlank tests (CLT, «at least») and two power banks with rates λ and 2λThe battery when I get home (−ln⁡X-\ln X exponential)Heart rate before and after 6 weeks at the gymDownloading the notes: gamma with shape 2
CThe server RAM (CLT) and the project group, two equal exponentialsThe bus delay (ln⁡(1+X)\ln(1 + X) exponential)Build time with the new compilerThe GPS error: X2X^2 exponential
DPoisson incidents with and without correction; the first and second cafeteria ordersRequests to the IT service: a biased MLEThe morning and afternoon trip: Welch and sample sizeThe app alerts: Poisson, asymptotic and exact

In each version, the bonus compares two proportions with 0/1 data (right answers, photocopiers, buses, a form) and asks for a quantile: of a χ2(14)\chi^2(14), of a χ2(16)\chi^2(16) from above and from below, or of an F(5,10)F(5, 10).

How the mock exam works

Choose version and mode. «On screen» shows the parts with their boxes from the start. «On paper» hides them while you do the exam by hand and lets you download the blank exam.

R is on your right. It is the site’s R environment (R in the browser, with RStudio’s panels): the script ec2-A.R (or your version’s) already has the data for exercises 2, 3, 4 and the bonus in their vectors, and a gap under each exercise. Ctrl + Enter runs the line and Ctrl + Shift + Enter, everything. The first time R takes a few seconds to load; after that it is instant. The divider in the middle can be dragged to give more room to the statement or to R, and on a phone you switch between «Exam» and «R» with the tabs at the top.

To check a double integral with R, two nested integrate calls are enough, the inner one with sapply. If the integral has esxe^{sx} in it (an mgf), do not take it to Inf: you get ∞⋅0\infty \cdot 0 and integrate fails. With a large limit, like 100, it works. The exercise 1 solutions do it that way.

Hand in. The button asks for confirmation if you leave parts out. You see the mark out of 50, the marks table, your zone, the proof criteria to tick and, for each part, the worked solution with its R code and its real output, your mistakes marked and a «Revise this topic» link. With «Download my .R script» you take away what you wrote.

Nothing is stored on any server: if you reload the page, you start from scratch. You can repeat each version as many times as you like, but the second time it no longer measures the same thing.

How to split the 4 hours

With 240 minutes and 50 points you get about 4.5 minutes per point, but here the split is uneven: exercise 1 is long and on paper, exercise 3 is quick if you have the code, and 2 and 4 are standard proofs that, if you have practised them, come out almost from memory. A split that works, leaving half an hour to check:

BlockPointsMinutesWhy
Exercise 12080The CLT is quick with R (mean and variance with integrate); the joint density is seven linked parts: watch the Jacobian and the support
Exercise 21045Moments and likelihood on paper; data and optim with R; the properties follow from the distribution of the MLE
Exercise 31030All with R except the proof of the paired t
Exercise 41040mgf of the sum, change of variable and solving for λ\lambda; both intervals with data, in R
Bonus515The proportions are three lines of R; the quantile, one
Checking and uploading the .R—30Check the two decimals, that the script runs end to end and save it

80 + 45 + 30 + 40 + 15 + 30 = 240 minutes. If a part gets stuck, write down the result you were missing as an assumption («if T∼T \sim gamma(n, λ)…», as exercise 4’s own statement does) and carry on: almost every part can be solved with the previous one given.

What is examined: exercise by exercise

Each exercise matches one or two ME1 topics on the site. Each topic’s exam-style exercises have parts with the same format and their cheat sheet, and its proofs article has the ones that come up.

ExerciseTopicTheoryProofsExercises
—The normal distributionTheoryProofsExercises
1Transformations and joint distributionsTheoryProofsExercises
1Inequalities and limit theoremsTheoryProofsExercises
3, 4 and bonusSampling distributions (χ², t, F)TheoryProofsExercises
2Point estimationTheoryProofsExercises
2Properties of estimatorsTheoryProofsExercises
3 and 4Confidence intervals and sample sizeTheoryProofsExercises

The normal has no exercise of its own, but it is in all of them: the CLT, the intervals and the bonus use it constantly.

Typical mistakes in EC2

  • Forgetting the Jacobian or the support when changing variables. With U=X+YU = X + Y, V=X−YV = X – Y, ∣J∣=1/2|J| = 1/2 and the support becomes ∣v∣≤u|v| \le u; without that, the marginals do not integrate to 1.
  • Integrating the marginal over the rectangle when the support is a triangle. If 0<x<y0 < x < y, for fXf_X the yy goes from xx to ∞\infty.
  • «At least» with the wrong tail in the CLT. P(S≥9)≈1−Φ(…)P(S \ge 9) \approx 1 – \Phi(\ldots), and with a discrete variable, the continuity correction.
  • The MLE of σ2\sigma^2 with var. var divides by n−1n – 1; the MLE divides by nn.
  • The chi-square quantiles in the right place. In the σ2\sigma^2 interval, the high quantile goes in the lower limit.
  • Treating paired data as independent. Before and after on the same individual: t.test(after, before, paired = TRUE), which works with the differences.
  • The pivot’s degrees of freedom. If 2λT∼χ2(2n)2\lambda T \sim \chi^2(2n), qchisq takes 2n2n, not nn; and in the F, the order of the degrees matters.
  • Saying «unbiased» without computing the expectation. Two methods giving the same estimator says nothing about its bias: 1/Xˉ1/\bar X for the exponential has some.
  • optim minimising. To maximise the log-likelihood, control = list(fnscale = -1).
  • The code in the console. What is not in the .R does not exist for the marking.

Cheat sheet: what you can put on your two sheets

The essentials in 30 seconds: the CLT turns a sum of many variables into a normal with mean nμn\mu and variance nσ2n\sigma^2; in a joint density, the constant comes from integrating to 1, the marginals from integrating out the other variable and, if f=fXfYf = f_X f_Y on a rectangle, they are independent; a change of variables brings ∣J∣|J| and a new support; estimators come from equating moments or differentiating the log-likelihood; unbiased is E=θE = \theta, consistent is MSE → 0 and efficient is reaching the Cramér–Rao bound; and an interval is a pivot solved for the parameter.

I want to…HowIn R
Approximate a sum (CLT)S≈N(nμ, nσ2)S \approx N(n\mu,\ n\sigma^2)pnorm(s, n * mu, sqrt(n * s2))
Continuity correctionP(S≤k)≈Φ(k+0.5−nμnσ)P(S \le k) \approx \Phi\left(\frac{k + 0.5 – n\mu}{\sqrt{n}\sigma}\right)pnorm(k + 0.5, …)
Constant of a joint density∬f=1\iint f = 1two nested integrate (sapply)
Marginals and independencefX=∫f dyf_X = \int f\,dy; independent if f=fXfYf = f_X f_Y on a rectangle—
Joint mgfφ(s,t)=E(esX+tY)\varphi(s, t) = E(e^{sX + tY}); with independence, the productintegrate up to a large value
CovarianceE(XY)−E(X)E(Y)=∂2φ∂s ∂t(0,0)−E(X)E(Y)E(XY) – E(X)E(Y) = \frac{\partial^2\varphi}{\partial s\,\partial t}(0, 0) – E(X)E(Y)—
Change of variablesfU,V(u,v)=fX,Y(x(u,v),y(u,v)) ∣J∣f_{U,V}(u, v) = f_{X,Y}(x(u, v), y(u, v))\,\lvert J\rvert—
Sum of exponentialsequal: gamma(2, λ); different: abb−a(e−au−e−bu)\frac{ab}{b – a}(e^{-au} – e^{-bu})dgamma
Method of momentsE(X)=XˉE(X) = \bar X and solvemean(x)
Maximum likelihoodddθln⁡L=0\frac{d}{d\theta}\ln L = 0 and second derivative <0< 0optim(ini, logL, method = "L-BFGS-B", lower = 1e-6, control = list(fnscale = -1))
Unbiased, consistentE(θ^)=θE(\hat\theta) = \theta; MSE=Var+b2→0MSE = Var + b^2 \to 0simulate with replicate
EfficientI(θ)=−E[∂θ2ln⁡f]I(\theta) = -E[\partial^2_\theta \ln f]; bound 1nI(θ)\frac{1}{nI(\theta)}—
Mean, σ knownxˉ∓z1−α/2 σ/n\bar x \mp z_{1-\alpha/2}\,\sigma/\sqrt nqnorm(1 - a / 2)
Mean, σ unknownxˉ∓tn−1,1−α/2 s/n\bar x \mp t_{n-1,1-\alpha/2}\,s/\sqrt nt.test(x, conf.level = 0.95)
Variance[(n−1)s2χn−1,1−α/22, (n−1)s2χn−1,α/22]\left[\frac{(n-1)s^2}{\chi^2_{n-1,1-\alpha/2}},\ \frac{(n-1)s^2}{\chi^2_{n-1,\alpha/2}}\right]qchisq
Variance ratiopivot F(n1−1,n2−1)F(n_1 – 1, n_2 – 1); does it contain 1?var.test(x, y)
Paired datadˉ∓tn−1 sd/n\bar d \mp t_{n-1}\,s_d/\sqrt nt.test(y, x, paired = TRUE)
Two means, different variancesWelcht.test(x, y, var.equal = FALSE)
Exponential pivot2λ∑Xi∼χ2(2n)2\lambda\sum X_i \sim \chi^2(2n)qchisq(c(a / 2, 1 - a / 2), 2 * n) / (2 * T)
Asymptotic interval of the MLEθ^∓z1−α/2/nI(θ^)\hat\theta \mp z_{1-\alpha/2}/\sqrt{nI(\hat\theta)}—
Two proportions(p^1−p^2)∓zp^1(1−p^1)m+p^2(1−p^2)n(\hat p_1 – \hat p_2) \mp z\sqrt{\frac{\hat p_1(1-\hat p_1)}{m} + \frac{\hat p_2(1-\hat p_2)}{n}}mean(x) - mean(y)
Sample sizen≥(zσ/E)2n \ge (z\sigma/E)^2, rounding upceiling(…)
Sums of squared normalsstandardised, they add up to a χ2\chi^2 with as many degrees as termsqchisq(p, k), qf(p, k1, k2)

What to revise on the site

If a part comes out red, the «Revise this topic» link in its solution takes you to the exercises (or the proofs) of the topic that explains it. Before trying again with another version:

  • The exam-style exercises of topics 6 to 11: they have parts with points, like these, and their «For your script».
  • The proofs of topics 6, 8, 9, 10 and 11: the change of variables, the t, the likelihood, the Cramér–Rao bound and the pivots.
  • The EC1 mock exam, if you still have to resit the first part.
  • The R playground to practice with your own script with nothing to install.
  • The ME1 calculator, to see whether your two ECs are enough to pass by coursework.

Summary

WhatWhat it is like
Length and points4 hours, 50 points (20 + 10 + 10 + 10) and a 5-point extra bonus
MaterialLaptop with RStudio, a two-sheet handwritten cheat sheet and your .R; at the end you upload the exam’s .R
Mock exam markingBoxes to two decimals (0.01 tolerance), check values for the formulas, criteria for the proofs, «I worked it out on paper»
What the mark means25 or more: passed and kept; over 20: counts if you reach 50 with EC1; 20 or less: to the final
VersionsA, B and C as in 2025-26; D with what did not come up

Three ideas for exam day: exercise 1 is worth 20 points, so do not leave it for the end; in any change of variables, Jacobian and support before anything else; and in the intervals, say which pivot you use: that is already half the part, and R does the rest.

Keep goingAll Statistics articles

Did this article help you? Here is how you can support SergioLearns →