Bodhi McNally
DATA1x01 Tutor
Tuesday 10 November 2026
Present offline or start a live session.
Sydney University Artificial Intelligence Association
Sydney University Data Society
University of Sydney Statistics Society
30 MCQs
75% of the exam
Extended answer
25% of the exam
120 minutes
Plus 10 minutes reading
Closed book. No calculators. Exam Guide supplied.
We will work through 13 MCQs and three short-answer tasks. Have a go before looking at the answers. After each A–D vote, tell us whether you are Guessing, Unsure or Confident on your phone.
Prepared by Bodhi McNally for this student society event. These supplementary materials are not affiliated with or endorsed by the official DATA1x01 teaching team or the University of Sydney.
One word or a short phrase.
An evening study-space QR invitation recruits 160 first-year volunteers.
Students report their usual sleep and caffeine intake, then complete the same practice quiz.
Nobody assigns how much they sleep.
| Variable | Description | Type |
|---|---|---|
StudentID |
Anonymous student identifier | Identifier |
Sleep |
Average nightly sleep over 14 days, in hours | Quantitative |
Score |
Practice quiz score, out of 100 | Quantitative |
Caffeine |
Drinks per day: 0, 1 or 2+ | Qualitative, ordinal |
SleepGroup |
Below 7 h or at least 7 h | Qualitative |
One row represents one student. In the R examples, the data frame is called students and caffeine category is a factor.
An evening study-space QR invitation recruits 160 first-year volunteers. They report their sleep and complete a common quiz. Which statement is most appropriate?
Sleep is measured, not assigned.
A larger sample would remove the recruitment bias.
Incorrect. More observations reduce chance variation, not systematic selection bias.
Volunteering makes the study a randomised experiment.
Incorrect. Random allocation of a treatment defines a randomised experiment.
The study can identify associations, subject to recruitment limits.
Correct. Sleep is observed. Selection bias and confounding remain possible.
Using the same quiz makes the sample representative.
Incorrect. A common measurement does not change how students were recruited.
| Feature of the design | What it supports |
|---|---|
| Random sampling from a population | Generalising to that population, subject to the design |
| Random allocation to treatment groups | Comparing causal treatment effects, subject to the experiment |
| Observational data | Describing associations, with possible confounding |
In this study, evening volunteers may differ from other students. Workload could also affect both sleep and quiz performance.
A bigger convenience sample can still be biased.
A researcher wants to link the sleep survey to individual university marks. The original consent covered only the survey. Which action is most appropriate before linking the records?
Remove names, then link records without checking consent.
Incorrect. Removing names alone does not resolve consent or re-identification risks.
Publish the linked records after replacing student numbers.
Incorrect. Replacing an identifier does not necessarily make linked records anonymous.
Assume a larger dataset makes privacy concerns negligible.
Incorrect. More data can increase the risk of identifying an individual.
Check consent and ethics requirements, then limit and secure the data.
Correct. Check the new use, minimise the linked data and protect access.
The following summaries describe the 160 students. A new variable is defined in R. What are its mean, SD and correlation with Score?
mean(Sleep) 7.0
sd(Sleep) 1.2
cor(Sleep, Score) 0.4114
Mean −4, SD 2.4, correlation −0.4114.
Correct. 10 − 2×7 = −4. SD is multiplied by 2 and correlation changes sign.
Mean −4, SD 1.2, correlation −0.4114.
Incorrect. Multiplication by −2 doubles the SD.
Mean −4, SD 2.4, correlation +0.4114.
Incorrect. Reversing the direction of Sleep changes the correlation’s sign.
Mean +4, SD 2.4, correlation −0.4114.
Incorrect. The transformed mean is 10 − 14 = −4.
For :
| Summary | Transformation |
|---|---|
| Mean | |
| Standard deviation | |
| Correlation with Y | Same magnitude. The sign reverses if . |
For SleepIndex = 10 - 2 * students$Sleep:
Adding a constant does not change spread or correlation. If b = 0, the transformed variable is constant and its correlation is undefined.
pnorm(9.4,7,1.2^2)-pnorm(5.8,7,1.2^2)pnorm(5.8,7,1.2)-pnorm(9.4,7,1.2)1-pnorm(9.4,7,1.2)+pnorm(5.8,7,1.2)pnorm(9.4,7,1.2)-pnorm(5.8,7,1.2)Assume models nightly sleep. Which R expression calculates ?
pnorm(9.4,7,1.2^2)-pnorm(5.8,7,1.2^2)
Incorrect. The third argument of pnorm is the SD, not the variance.
pnorm(5.8,7,1.2)-pnorm(9.4,7,1.2)
Incorrect. The subtraction is reversed, giving a negative number.
1-pnorm(9.4,7,1.2)+pnorm(5.8,7,1.2)
Incorrect. This adds the two tails outside the required interval.
pnorm(9.4,7,1.2)-pnorm(5.8,7,1.2)
Correct. Subtract the lower-tail area at 5.8 from the area at 9.4.
Course notation
The second parameter is the variance.
The emperical (68/95/99.7) rules gives approximately 81.5%.
A tracker measures the same fixed duration 36 times under the same conditions. Each reading has a bias of +20 minutes and an independent chance error with mean 0 and SD 12 minutes. For the average of the 36 readings, what are the bias and SE?
Bias 0 minutes, SE 2 minutes.
Incorrect. Averaging reduces chance error. The common +20 minute bias remains.
Bias +20 minutes, SE 12 minutes.
Incorrect. The spread of the average is smaller than the spread of one reading.
Bias +20 minutes, SE 2 minutes.
Correct. Bias remains +20. The SE is 12 / sqrt(36) = 2 minutes.
Bias +20/36 minutes, SE 12/36 minutes.
Incorrect. The fixed bias remains. SE is divided by sqrt(36), not 36.
| Component | Averaging n independent readings |
|---|---|
| Fixed bias | Remains in the average |
| Chance error, mean 0 and SD σ | Average has SE = σ / √n |
Repeated readings
Repeating the same measurement under the same conditions helps estimate chance-error spread. Averaging improves precision, but a fixed calibration error remains.
For the tracker: bias +20 minutes, SE 2 minutes.
R gives the following counts. One student is chosen at random from those sleeping below 7 hours. What is the probability they report 2+ caffeinated drinks per day?
| Sleep group | 0 | 1 | 2+ | Total |
|---|---|---|---|---|
| Below 7 h | 12 | 24 | 44 | 80 |
| At least 7 h | 28 | 32 | 20 | 80 |
| Total | 40 | 56 | 64 | 160 |
44/64
Incorrect. This conditions on 2+ drinks rather than short sleep.
44/80
Correct. The relevant group contains 80 students, of whom 44 report 2+ drinks.
44/160
Incorrect. This is the joint probability among all 160 students.
64/160
Incorrect. This is the marginal probability of 2+ drinks.
1 - pbinom(1, 5, 0.4)1 - pbinom(2, 5, 0.4)dbinom(2, 5, 0.4)pbinom(2, 5, 0.4)A box model has a 0.4 chance of a 2+ drinks ticket. Five tickets are drawn independently with replacement. Let X count the 2+ tickets. Which R expression gives the chance of at least two?
1 - pbinom(1, 5, 0.4)
Correct. At least two is the complement of zero or one.
1 - pbinom(2, 5, 0.4)
Incorrect. This gives more than two, so it excludes X = 2.
dbinom(2, 5, 0.4)
Incorrect. This gives exactly two.
pbinom(2, 5, 0.4)
Incorrect. This gives at most two.
A population has mean sleep 7 hours and SD 1.2 hours. Independent observations are sampled with replacement. What are the EV and SE of the sample mean when n increases from 25 to 100?
For , and .
EV 7 hours, SE 0.06 hours.
Incorrect. SE scales with , not .
EV 7 hours, SE 0.48 hours.
Incorrect. A larger sample reduces the SE.
EV 28 hours, SE 0.12 hours.
Incorrect. The EV of a sample mean remains the population mean.
EV 7 hours, SE 0.12 hours.
Correct. . Four times n gives half the SE.
sample(students$Sleep, 160, replace=FALSE)sample(students$Sleep, 160, replace=TRUE)rnorm(160, mean=7, sd=1.2)sample(students$Sleep, 10000, replace=TRUE)The observed survey has 160 complete Sleep values. We want a bootstrap distribution of the mean. Which expression should replace RESAMPLE?
sample(students$Sleep, 160, replace=FALSE)
Incorrect. Without replacement, every value appears once. Each mean is unchanged.
sample(students$Sleep, 160, replace=TRUE)
Correct. Each bootstrap sample has the original size and resamples the observed values with replacement.
rnorm(160, mean=7, sd=1.2)
Incorrect. This simulates from a Normal model rather than resampling the observed data.
sample(students$Sleep, 10000, replace=TRUE)
Incorrect. 10,000 is the number of replicates. Each resample should still contain 160 values.
Sixteen students are measured before and after a phone-free fortnight. Let . Assume independent students and approximately Normal differences. For the new two-sided test at 5%, which conclusion is correct?
t = 2, df = 15, p-value = 0.06395
95 percent confidence interval:
-0.03286 1.03286
sample mean: 0.5
Reject: the sample mean differs from 0.75.
Incorrect. A sample estimate can differ from the null through chance variation.
Retain: 0.75 lies inside the 95% confidence interval.
Correct. A matching two-sided 5% test retains null values inside the 95% CI.
Retain: the new p-value is 0.06395.
Incorrect. The printed p-value tests μD = 0. The new p-value is 0.3332.
Accept: there is a 95% probability the mean lies in this interval.
Incorrect. The parameter is fixed. 95% refers to the CI method’s long-run coverage.
Each student is measured twice. Analyse the within-student differences.
Here, mean D = 0.5 and SE = 0.25.
The interval stays fixed when the null changes. The test statistic and p-value change.
Change the null mean (hours)
Two-sided test, 15 df, α = 0.05. The 95% CI is [−0.03286, 1.03286].
A regression of Score on Sleep gives the following output and residual plot. Which statement is most appropriate?
Slope = 3.000 SE = 0.529
t = 5.674 p = 6.485e-08
The changing residual spread raises concern about the usual slope inference.
Correct. Increasing spread suggests heteroscedasticity. The usual test needs caution.
The small p-value establishes constant residual variance.
Incorrect. The slope test does not check the constant-variance condition.
The positive slope shows that more sleep caused higher scores.
Incorrect. Sleep was observed. Confounding remains possible.
A straight residual QQ plot would establish all model assumptions.
Incorrect. A QQ plot checks Normality, not every LINE condition.
L Linear mean relationship
I Independent errors
N Approximately Normal errors
E Equal error variance
Illustrative residual patterns. Independence also needs support from the study design.
We want to test whether sleep group and caffeine category are associated. Which row gives the test, expected count for Below 7 h / 2+ drinks and degrees of freedom?
| Sleep group | 0 | 1 | 2+ | Total |
|---|---|---|---|---|
| Below 7 h | 12 | 24 | 44 | 80 |
| At least 7 h | 28 | 32 | 20 | 80 |
| Total | 40 | 56 | 64 | 160 |
Here tab is the 2 × 3 table without its totals.
Goodness of fit, expected 53.33, df = 2.
Incorrect. Equal-proportion GOF concerns one variable, not the association of two.
Independence, expected 44, df = 2.
Incorrect. 44 is observed. Expected counts are calculated under independence.
Independence, expected 32, df = 2.
Correct. and .
Independence, expected 32, df = 5.
Incorrect. is not the df formula for an independence test.
A model assigns equal population proportions to the three caffeine categories. Assume independent records and adequate expected counts. What does this output support at the 5% level?
X-squared = 5.6, df = 2
p-value = 0.06081
Reject, because the three observed counts differ.
Incorrect. Unequal counts can arise through chance even when the model holds.
Retain, which establishes equal population proportions.
Incorrect. Retaining a model does not prove it.
The probability that the equal-proportions model is true is 0.06081.
Incorrect. The p-value assumes the null model. It does not give its probability.
Retain, with insufficient evidence against equal population proportions.
Correct. p > 0.05, so the data do not provide sufficient evidence against the model at this level.
| Question and design | Test |
|---|---|
| One binary proportion against a stated value | One-sample proportion test |
| One mean, population SD known | One-sample Z-test |
| One mean, population SD estimated | One-sample t-test |
| Same people measured twice | Paired t-test on the differences |
| Two independent groups, mean comparison | Pooled t-test or Welch t-test, as appropriate |
| One categorical variable against model proportions | Chi-squared goodness of fit |
| Two categorical variables, association | Chi-squared independence |
| Two quantitative variables, linear association | Regression slope test, after LINE checks |
HATPC: hypotheses, assumptions, test statistic, p-value and conclusion.
4 marks
The student report states:
“Sleeping one extra hour causes a three-mark improvement. This result applies to all first-year students.”
Explain two limitations of this conclusion. Support each with a feature of the study.
Recall: 160 volunteers recruited through evening study-space QR posters. Sleep was not assigned. The fitted line is Score = 49 + 3 × Sleep.
Sleep was not randomly assigned. Workload or prior preparation could be associated with both sleep and quiz scores, so the fitted slope alone cannot establish a causal effect.
The sample consists of volunteers reached at evening study spaces. They may differ from other first-year students, so the result cannot automatically be generalised to that whole population.
1 mark: identify the causal overstatement.
1 mark: explain lack of random allocation or a plausible confounder affecting both variables.
1 mark: identify the unsupported population generalisation.
1 mark: link the generalisation limit to volunteers recruited at evening study spaces.
4 marks
Pearson's Chi-squared test
X-squared = 16.543, df = 2, p-value = 0.0002557
The report states: “There is a 0.02557% chance that sleep group and caffeine category are independent.”
Write a correct explanation of the p-value and a conclusion at 5%. Assume independent student records and adequate expected counts.
Calculation
Expected counts in each row:
The p-value is the upper-tail area.
If sleep group and caffeine category were independent, the probability of obtaining a chi-squared statistic of 16.543 or larger would be approximately 0.0002557, assuming the test conditions hold.
Since p < 0.05, reject the null of independence. The data provide evidence of an association. This does not establish causation.
1 mark: condition the probability on independence being true.
1 mark: specify χ² = 16.543 or larger.
1 mark: compare p with 0.05 and reject the null.
1 mark: conclude that sleep group and caffeine category are associated.
6 marks
Propose a research question involving Sleep, Score and Caffeine.
Sketch a suitable graphical summary. Label its axes and show how the third variable is represented.
Write ggplot code that would produce the plot. Assume students is the data frame.
Research question: How does the association between sleep and quiz score vary across caffeine categories?
library(tidyverse)
ggplot(students,
aes(x = Sleep, y = Score,
colour = Caffeine, shape = Caffeine)) +
geom_point() +
labs(x = "Nightly Sleep (hours)",
y = "Practice Quiz Score (marks)")1 mark: research question uses all three variables.
1 mark: scatterplot with labelled Sleep and Score axes.
1 mark: clear key for caffeine categories.
1 mark: load tidyverse with library(tidyverse).
1 mark: correct data frame and x/y mapping in ggplot().
1 mark: geom_point() and colour or shape mapped to Caffeine.
| Variables | Useful graphical summary |
|---|---|
| One qualitative variable | Bar chart |
| One quantitative variable | Histogram or boxplot |
| Quantitative response by qualitative group | Side-by-side boxplots |
| Two quantitative variables | Scatterplot |
| Two qualitative variables | Grouped/stacked bar chart and a contingency table |
For a third variable, use colour, shape or facets where appropriate.
Sleep and Score: scatterplot. Caffeine: colour or shape.
Attempt every question.
If you really have no idea…
Very long options that are spelled out in great detail, are almost always correct. From the examiner's point of view it seems almost fraudulent to go to a great deal of trouble constructing a long involved option that is wrong.
Joking, but not really! Option length can be a flaw in question writing.
When you are out of time, eliminate what you can and make a choice. Leave no MCQ blank.
This is not an exhaustive list, but importantly memorising definitions can earn straightforward marks.
| Term | What to remember |
|---|---|
| Simpson’s paradox | A trend within groups can reverse when the groups are combined. |
| Prosecutor’s fallacy | Confusing P(evidence given innocence) with P(innocence given evidence). |
| Confounding | A third variable is related to both explanatory and response variables and can distort the apparent relationship. |
| Random sampling | Selects people from a population. Supports generalisation. |
| Random allocation | Assigns treatments within an experiment. Supports causal comparison. |
| Term | What to remember |
|---|---|
| Selection / non-response bias | Recruitment or response patterns systematically favour particular parts of the population. |
| Independence / mutual exclusion | Independence: one event does not change the other’s probability. Mutual exclusion: both cannot occur together. |
| SD / SE | SD describes variation in observations. SE describes chance variation in a statistic across repeated samples. |
| P-value | Assuming H₀ and test conditions, the chance of a result at least as incompatible with H₀ as the observed result. |
| 95% confidence | In repeated sampling, about 95% of intervals from the method cover the fixed population parameter. |
| Resource | How to use it |
|---|---|
| Weekly challenge questions | Attempt independently, then revisit the relevant lecture |
| Revision quizzes | Explain each choice, including questions you guessed correctly |
| Week 13 workshop | Rework test selection and the report audit |
| Current sample exam | Complete under timed, closed-book conditions with no calculator |
After checking an answer, explain why the other options fail. Include questions you guessed correctly in your error log.
Your phone now shows your own revision priorities.
What helped? What could be better?
Scan the QR for a short, voluntary feedback survey.
Bodhi McNally
DATA1x01 Tutor
For further resources, visit my website or scan the QR code below.
Or reach out to me via email at