ME1 EC1 mock exam — the 4-hour exam with R alongside, four versions, a mark out of 50 and every solution with its code (and why the .R counts too)

The EC1 of Statistical Methods I is not a multiple-choice test, nor just a paper exam: it is 4 hours with your laptop, 4 linked exercises and 50 points, with RStudio open, the data loaded and a .R file you upload to the campus at the end. This mock exam reproduces it: the same 10, 10, 15 and 15 points plus the 2.5-point 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, which zone it puts you in for passing by coursework, the breakdown part by part, the solution of each part with its R code and the real output, and you can download your script.

There are four original versions: A, B and C follow the 2025-26 EC1 (the same kinds of exercise with other contexts and other data) and D swaps some parts for things that did not come up that year. No statement is real: the data were generated with a script, the answers come from running the solutions’ code once in R, and it has been checked that no data 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 shows 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 paper (PDF)»: you get your version’s PDF, ready to print, 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 the working counts too.

version D is a rotation: exercise 1 becomes quartiles, outliers and Bayes with a tree; exercise 2, the Poisson and ordering with factorials; exercise 3, a beta with its mode and a two-component mixture; and exercise 4, a Poisson without the zero. They are EC1 syllabus topics that did not come up in 2025-26.

What the ME1 EC1 is like

It is sat in the classroom, on your own laptop (RStudio installed and the battery at 100 %) inside the exam’s secure browser, with the data files and RStudio open. It lasts 4 hours and is worth 50 points, half of the subject mark. There are 4 exercises, each with its own context and several parts that build on each other: one part often needs the result of the one before. Some are done by hand (calculations and proofs) and others with R, and every result is given with two decimals. There is also a bonus that adds on top.

ExerciseWhat is askedTopicsPoints
1Some data to describe (mean, median, frequency table with cut, grouped median) and two independent events1 and 210
2A discrete model fitted by the method of moments, a probability with it and two counting ones2 and 310
3A density with a constant (moments, distribution function and median with R) and a mixture of three models with total probability and Bayes4 (and 2)15
4A mass function with a parameter: that it is a mass function, its mgf and the mean315
BonusUsing a known mgf to get a moment or an expectation3 and 4+2.5
How the EC1 points are splitBars by exercise: 1 and 2 are worth 10 points in five 2-point parts; 3 is worth 15 (2, 3, 3, 3 and 4) and 4 is worth 15 in three 5-point parts. Each part has its topic colour and whether it is done with R, on paper or is a proof; the bonus adds 2.5 on top.EC1: 50 points in 4 exercises + a 2.5 bonusExercise 110 points1.aR · 21.bR · 21.cpaper · 21.dpaper · 21.eproof · 2Exercise 210 points2.aproof · 22.bR · 22.cR · 22.dpaper · 22.epaper · 2Exercise 315 points3.apaper · 23.bR · 33.cR · 33.dR · 33.eR · 4Exercise 415 points4.aproof · 54.bpaper · 54.cpaper · 5Bonus+2.5 · mgfTopic 1 · DescriptiveTopic 2 · ProbabilityTopic 3 · DiscreteTopic 4 · Continuous
Exercise 4 is all on paper (a mass function with a parameter) and is worth as much as exercise 3. Proofs have a dashed purple border.

Look at the diagram: exercise 4 is all on paper and is worth as much as exercise 3, and almost half the parts of exercises 1 to 3 are done with R. That is why the EC1 rewards two things at once: knowing the standard proofs and moving fast in R.

What you can bring: the cheat sheet and your .R

You go into the EC1 with two things of your own:

  1. A handwritten cheat sheet, one sheet, both sides. Results are allowed (formulas, means, variances, the mgf of the models), 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 the classes and the labs. In the exam you have it open in RStudio. 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 of 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: when you hand in you can download it.

Leaving the code in the console instead of the script. What you type in RStudio’s console is not saved in the .R: write in the script and run with Ctrl + Enter, as in the mock exam.

How it is marked

Each part is a box of the marks table (1.a, 1.b… 4.c and the bonus). 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 the part has two boxes, each is worth half.
  • Proofs. There is no number to check, so when you hand in you get the criteria with their points (for example, «sets up the two equations», «solves for p», «solves for r») and you tick the ones you did. It 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 are worth 0 even if the result is right, with a note of how much you would have: 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.

From the EC1 mark to the subject markA 0 to 50 scale in three zones: up to 20, in red, you cannot pass by coursework; from 20 to 25, in amber, it counts if the two ECs reach 50; from 25, in green, the EC is passed and kept. A 30 marked as an example.What your EC1 mark means20 or lesscannot pass by coursework25 or morepassed: kept for the finalover 20: counts if EC1 + EC2 ≥ 500102025304050your EC1: 30Example: 30 in EC1 → in EC2 20.01 (over 20) is enough to pass by coursework: 30 + 20.01 ≥ 50.Subject mark = (EC1 + EC2) / 10, plus the extra from the quizzes and the bonuses (10 at most).
The rules of the 2026/27 course guide; the mock exam tells you which zone you land in when you hand in.

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 you cannot pass by coursework. The subject mark is (EC1 + EC2) / 10, plus the extra from the virtual classroom quizzes and the bonuses, and the ME1 calculator tells you what you need in EC2 with the mark you get here.

The four versions

VersionExercise 1Exercise 2Exercise 3Exercise 4
AThe library wifi: loading times; P(A ∪ B)Spam per hour (negative binomial); the Spanish deckThe laptop battery and three chargersAttempts until the second eduroam connection
BThe cafeteria queue; «exactly one»The vending machine; broken USB sticksPower-saving mode and three ways to campusFiles in the shared folder (logarithmic)
CThe class group voice notes; P(A ∩ Bᶜ)Failed commits; the project panelThe server memory and three build serversAttempts with the compiler (shifted Poisson)
DMidterm marks: quartiles and outliers; the plagiarism checker (Bayes)Incidents per hour (Poisson); the presentation orderThe lab humidity (beta) and two sensorsVirtual campus notifications (Poisson without the zero)

In each version the bonus uses a different mgf: a gamma, an exponential, a uniform and a binomial.

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 as a PDF.

R is on your right. It is the site’s R environment (R 4.6 in the browser, with RStudio’s panes): the script ec1-A.R (or your version’s) already has the data for exercises 1 and 2 in their vectors and a gap under each exercise. Ctrl + Enter runs the line and Ctrl + Shift + Enter runs everything. The first time R takes a few seconds to load; after that it is instant. The splitter 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.

The exam asks for the rootSolve package to find the median; it does not exist in the browser, so here we use uniroot, which comes with R and does the same for one root. In RStudio you can use either.

Hand in. The button asks for confirmation if you leave parts out. You see your mark out of 50, the marks table, the zone you land in, the proof criteria to tick and, in each part, the worked solution with its R code and real output, your mistakes marked and a «Review this topic» link. With «Download my .R script» you keep 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 parts do not all cost the same: the R ones are quick if you have the code at hand and the proofs in exercise 4 are slow. A split that works, leaving half an hour to check:

BlockPointsMinutesWhy
Exercise 11035mean, median, cut and table are quick; the grouped median, with the formula
Exercise 21040Solve the moments on paper and then everything in R; counting with choose
Exercise 31560Polynomial integrals by hand, checked with integrate; the mixture with pexp, punif and pgamma
Exercise 41560Recognising the series is half the exercise; the mgf comes out of the same series
Bonus2.515Only if you have time left: a derivative of the mgf or evaluating it at 1
Check and upload the .R—30Check the two decimals, that the script runs all the way and save it

35 + 40 + 60 + 60 + 15 + 30 = 240 minutes. If a part gets stuck, write down the value you were missing as an assumption («if p = 0.5…») and move on: many parts can be solved with an assumed value.

What it covers: exercise by exercise

Each exercise matches one or two ME1 topics on the site. The exam-style exercises of each topic have parts in the same format and their cheat sheet.

ExerciseTopicTheoryProofsExercises
1Descriptive statisticsTheoryProofsExercises
1 and 2Probability: counting, conditional and BayesTheoryProofsExercises
2 and 4Discrete random variablesTheoryProofsExercises
3Continuous random variablesTheoryProofsExercises

The normal distribution is not in EC1: it opens EC2.

Typical mistakes in the EC1

  • Giving more or fewer than two decimals. The statement asks for it and it is the first thing that gets checked. round(x, 2) at the end, not in the intermediate steps.
  • Closing the classes wrongly. cut closes on the right: a value equal to a limit goes into the class on the left, (2, 4] and not (4, 6].
  • Picking the wrong median class. It is the first one whose cumulative frequency reaches n/2; if the grouped median falls outside its class, Fi−1F_{i-1} is wrong.
  • Using the mean instead of the rate in R. pexp(t, rate) and pgamma(t, shape, rate) take the rate; an exponential with mean 2 is pexp(t, 0.5).
  • Counting successes where R counts failures. dnbinom counts the failures before the r-th success; if your model counts attempts, subtract.
  • «At least k» with the wrong cumulative. P(X≥3)=1−P(X≤2)P(X \ge 3) = 1 – P(X \le 2), that is, 1 - pnbinom(2, ...), not 1 - pnbinom(3, ...).
  • Proving it is a mass function but forgetting it is not negative. Two things: every term is ≥0\ge 0 and they add up to 1.
  • The mgf without its domain. An mgf without «for t<…t < \ldots» is incomplete: it comes from the series’ convergence condition.
  • The code in the console. Whatever is not in the .R does not exist for marking.

Cheat sheet: what you can bring on your sheet

The essentials in 30 seconds: the mean and the median describe the center and, if they differ, the distribution is skewed; the grouped median is Li+n/2−Fi−1fiaiL_i + \frac{n/2 – F_{i-1}}{f_i}a_i; with A and B independent, P(A∩B)=P(A)P(B)P(A \cap B) = P(A)P(B) and so are their complements; the method of moments matches the mean and the variance to the sample ones; a density integrates to 1 and its median solves F(m)=0.5F(m) = 0.5; total probability and Bayes split by components; and the mgf gives the moments by differentiating at 0.

I want to…HowIn R
Mean, median, quartilesxˉ=1n∑xi\bar x = \frac1n\sum x_i; the median leaves half on each sidemean(x), median(x), quantile(x, c(0.25, 0.75))
Sample variances2=1n−1∑(xi−xˉ)2s^2 = \frac{1}{n-1}\sum (x_i – \bar x)^2var(x), sd(x)
Frequency tableClasses (a, b], absolute and cumulative relativetable(cut(x, breaks)), cumsum(f) / n
Grouped medianMe=Li+n/2−Fi−1fi aiMe = L_i + \frac{n/2 – F_{i-1}}{f_i}\,a_i—
OutliersOutside [Q1−1.5 IQR, Q3+1.5 IQR][Q_1 – 1.5\,IQR,\ Q_3 + 1.5\,IQR]IQR(x), boxplot(x)
UnionP(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) – P(A \cap B)—
IndependenceP(A∩B)=P(A)P(B)P(A \cap B) = P(A)P(B), and with AcA^c, BcB^c—
Total probability and BayesP(B)=∑P(Ak)P(B∣Ak)P(B) = \sum P(A_k)P(B \mid A_k); P(Ak∣B)=P(Ak)P(B∣Ak)P(B)P(A_k \mid B) = \frac{P(A_k)P(B \mid A_k)}{P(B)}—
Counting without order(nk)\binom{n}{k}choose(n, k), factorial(n)
Negative binomial (failures)E=r(1−p)/pE = r(1-p)/p, Var=r(1−p)/p2Var = r(1-p)/p^2dnbinom(x, size = r, prob = p)
Moments with the NBp^=xˉ/s2\hat p = \bar x/s^2, r^=xˉ2/(s2−xˉ)\hat r = \bar x^2/(s^2 – \bar x)—
PoissonE=Var=λE = Var = \lambda, φ(t)=eλ(et−1)\varphi(t) = e^{\lambda(e^t – 1)}dpois, ppois
Density∫f=1\int f = 1, E(X)=∫xfE(X) = \int x f, Var=E(X2)−E(X)2Var = E(X^2) – E(X)^2integrate(f, 0, 1)
Median of a continuous oneF(m)=0.5F(m) = 0.5uniroot(function(x) F(x) - 0.5, c(a, b))
Exponential and gammaE=1/λE = 1/\lambda; gamma(a, b): E=a/bE = a/b, Var=a/b2Var = a/b^2, φ=(bb−t)a\varphi = (\frac{b}{b-t})^apexp(t, rate), pgamma(t, shape, rate)
Uniform (a, b)E=a+b2E = \frac{a+b}{2}, φ(t)=ebt−eatt(b−a)\varphi(t) = \frac{e^{bt} – e^{at}}{t(b-a)}punif(t, a, b)
Moments from the mgfE(X)=φ′(0)E(X) = \varphi'(0), E(X2)=φ′′(0)E(X^2) = \varphi''(0), E(eX)=φ(1)E(e^{X}) = \varphi(1)—
Series for mass functions∑y≥0qy=11−q\sum_{y\ge0} q^y = \frac{1}{1-q}, ∑(y+1)qy=1(1−q)2\sum (y+1)q^y = \frac{1}{(1-q)^2}, ∑λyy!=eλ\sum \frac{\lambda^y}{y!} = e^\lambda, ∑x≥1uxx=−ln⁡(1−u)\sum_{x\ge1}\frac{u^x}{x} = -\ln(1-u)—

What to revise on the site

If a part comes out red, the «Review 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 the four topics: they have parts with points, like these, and their «For your script».
  • The proofs of topics 2, 3 and 4: the independence of complements, the moments of the discrete models, the mgf and the mixture.
  • The R playground to practice with your own script with nothing to install.
  • The ME1 calculator, to know what you need in EC2.

Summary

WhatWhat it is like
Time and points4 hours, 50 points (10 + 10 + 15 + 15) and a 2.5-point bonus
MaterialsLaptop with RStudio, one handwritten cheat sheet and your .R; at the end you upload the exam’s .R
Marking in the mock examBoxes to two decimals (0.01 tolerance), 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 EC2; 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: all the code in the script, because what is not in the .R is not marked; two decimals at the end, not at every step; and in exercise 4, look for the series: once you recognise it, the mass function, the mgf and the mean almost come out by themselves.

Keep goingAll Statistics articles

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