Topic Name Description
File Full module lecture notes

v3 May 2024 p35 updated for MLE of normal with betas instead of mu


Week 1 : Module intro and the Simple Linear Regression Model File Lecture PowerPoint Monday week 1

module intro and the simple linear regression model

File Lecture notes week 1

Typed notes to accompany the week 1 lecture material. At the end of the module we will add a single PDF document with full notes for the module.

QMplus Media Video Short video lecture 1

principles of statistical modelling 1 of 2

QMplus Media Video Short video lecture 2

principles of statistical modelling 2 of 2

QMplus Media Video Short video lecture 3

simple linear regression model 1 of 2

QMplus Media Video Short video lecture 4

simple linear regression model 2 of 2

QMplus Media Video Short video lecture 5

least squares estimation 1 of 2

QMplus Media Video Short video lecture 6

least squares estimation 2 of 2

File Lecture Thursday-Week-1 (Slides)
File Exercise-Sheet-1
File Introduction to R
URL Installing R and R Studio

How to install R and R Studio available at https://www.youtube.com/watch?v=d-u_7vdag-0&feature=youtu.be

File Global Average Temperature datafile - for use in lecture example

Lecture Example data for use in R 

File Global Average Temperature example used in Monday/Thursday lecture

Example of simple linear regression model for climate change data

based on the Global_Temperature_NASA_Data.csv data file


File Insurance Claims Payments datafile for use in R

Exercise Sheet 1 data 

Week 2 : Properties of estimators and assessing the model File Lecture notes week 2

typed notes covering the theoretical material from week 2 - assessing the simple linear regression model

File Lecture PowerPoint Monday week 2

assessing the model plus details of the task you will need to complete this week

URL Our World In Data website

Our World in Data’s mission is to publish the “research and data to make progress against the world’s largest problems”

QMplus Media Video Short video lecture 7

properties of the estimators 1 of 2

QMplus Media Video Short video lecture 8

properties of the parameters 2 of 2

File Lecture-Thursday Week -2
File Exercise-Sheet-1-Solution
QMplus Media Video Short video lecture 9

Assessing the model, fitted values and residuals, sums of squares

QMplus Media Video Short video lecture 10

introducing ANOVA

QMplus Media Video Short video lecture 11

using the ANOVA table

QMplus Media Video Short video lecture 12

working with residuals

File Introduction to R_2
File Exercise Sheet 2
Week 3: Inference about the model parameters File Lecture notes week 3

document updated 6/2/2024 revised sections 4.4, 4.5

File Lecture PowerPoint Monday week 3

inference about the parameters

File CSV file for use in Monday lecture

last year's inflation and current 10 year government bond yields by country

QMplus Media Video Short video lecture 13

inference, confidence interval for beta1

QMplus Media Video Short video lecture 14

inference about the parameters continued

File Week-3 -Thursday Lecture Slides
QMplus Media Video Short video lecture 15

confidence intervals and prediction intervals

File Solution Exercise Sheet 2
File Introduction to R_2 Output
File Final Exams Paper (2022)
Week 4: Further model checks File Week 4 lecture notes
File Introduction to R_3
File Exercise Sheet 3
File JankaNEW.csv

Data for use in Introduction to R_3 Labs

File Lecture PowerPoint Monday week 4

further model checks based on issues with the observation data

File Lecture Slides Thursday Week 4
File Introduction to R_3 output
File Exercise Sheet 3 Solutions
Assessed Coursework 1 due in week 5 File Coursework instructions and Question
File Coursework 1 Solution
Week 5: Poorly Fitting Models and introducing Matrix approaches File Lecture notes weeks 5 and 6

matrix approach, maximum likelihood

File Lecture PowerPoint Monday

poorly fitting model diagnostics - pure error and lack of fit, expanded anova

File Introduction to R #4
File Data set for IT lab in week 5

jankaNEW.csv (same file as that used in week 4 copied here for convenience)

File Exercise Sheet 4
File Introduction to R #4 output
File Exercise sheet 4 soluitions
File AI dataset for Monday lecture illustration

training data size and "knowledge" test results for different AI systems up to chatGPT4

File Week-5 Thursday Lecture Slides
QMplus Media Video short video lecture 16

outliers

QMplus Media Video short video lecture 17

influential observations

QMplus Media Video short video lecture 18

transforming the response variable

QMplus Media Video short video lecture 19

pure error and lack of fit

Week 6: Matrix approach & Maximum likelihood estimation File Introduction to R #5

for week 6 labs

File Exercise sheet 5
File Introduction to R #5 output
File Exercise sheet 5 solutions
File Lecture PowerPoint Monday week 6

why do we want to use matrix approaches to regression modelling?

File Lecture Slides for Thursday Week -6
QMplus Media Video short video lecture 20

matrix approaches 1 of 2

QMplus Media Video short video lecture 21

matrix approaches 2 of 2

QMplus Media Video short video lecture 22

maximum likelihood estimation introduction

QMplus Media Video short video lecture 23

MLE in the normal distribution

Week 7: Reading Week (note lecture Tuesday 9-10 File Lecture PowerPoint Tuesday 5th March

Multiple Linear Regression Models

File Mortgage Possession Data

for multiple linear regression example in R

Week 8: Multiple Linear Regression models File Lecture PowerPoint Monday

multiple linear regression ANOVA and inference

File Introduction to R #6

for the IT labs in week 8

note that this week the Thursday labs are moved to Monday and Friday by central timetabling. Please check your timetable

File Exercise Sheet 6
File Introduction to R #6 output
File Exercise sheet 6 solutions
File Liver data

liver.csv for use in the week 8 labs

File marketdata.csv

data needed for exercise sheet 6 Q2

File Lecture notes for weeks 7 and 8

introduction to multiple linear regression models and model building using F tests

File Teaching careers event on 13 March

event this week organised by QM Careers team should be helpful for anyone considering career as maths teacher

File Week-8 Thursday Lecture Slides
QMplus Media Video short video lecture 24

multiple linear regression models; matrix form

QMplus Media Video short video lecture 25

multiple regression ANOVA, overall F test

QMplus Media Video short video lecture 26

inference about betas; confidence intervals

Assessed Coursework 2 due in week 9 File Coursework2data.csv
File Coursework 2 Solution
Week 9: Model building File Lecture PowerPoint Monday week 9

All Subsets Regression

File Stackloss-Data

For use in R Labs

File Introduction to R # 8

For use in Week 9 Labs

File Introduction to R # 8 Output
File Exercise Sheet 8
File Exercise Sheet 8-Solutions
File Bridge-Data
Data used in lecture notes
File Week -9-Thursday Lecture Slides
File Third year pathway slides

slides used by Hugo Maruri-Aguilar in Thursday lecture and includes link to QM Plus page with more details on module selection for the third year

Week 10: Automated approaches and issues of Multicollinearity File Introduction to R # 9

The "Swiss" data set needed for this exercise is already found in R (no separate CSV file). To get the data use the command data(swiss) and then to check the data is loaded use the command head(swiss) to display the first 6 rows. The data is then ready for the rest of the exercise sheet.

File Introduction to R # 9 output
File Exercise Sheet 9
File Exercise Sheet 9- Solutions
File Lecture PowerPoint Monday week 10

problems fitting models, variance inflation factor plus a re-cap of automated methods of model building

File Lecture Slides Thursday Week-10
Week 11: What is a linear model? File Introduction to R#10
File Introduction to R#10 Output
File Exercise Sheet 10
File Exercise Sheet 10-Solutions
File US Elections data file for IT lab
File Lecture PowerPoint Thursday week 11

What is a linear model?

File Bridge Data for Exercise Sheet 10
Week 12: Revision File Introduction to R #11
File Introduction to R# 11 output
File Exercise Sheet 11
File Exercise Sheet 11 Solutions
File Bridge.csv

week 11 and 12 Exercise sheets Bridge data saved as .csv file (easier to import into R)

File Lecture PowerPoint Monday

revision lecture 1 of 2

exam information and revision on topics requested last week

File Lecture Slides-Thursday
Sample Exam Papers and Solutions File May 2023 Exam Paper
File May 2023 Exam Solutions
File LSR 2023 Exam Paper
File LSR 2023 Exam Solutions
URL Link to all MTH5120 past papers

This link will take you to all the past papers for this module. However the 2023 papers above are a better guide for the 2024 exam as earlier years were either online or before the module used R programming.

File Mth5120-Module Evaluation Form
File May 2022 Exam Paper
File May 2022 Exam Paper-Solutions
File May 2021 Exam Paper
File May 2021 Exam -Solutions