MTH5120 - Statistical Modelling I - 2023/24
Topic | Name | Description |
---|---|---|
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 | Lecture PowerPoint Monday week 1 | module intro and the simple linear regression model |
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. |
|
Short video lecture 1 | principles of statistical modelling 1 of 2 |
|
Short video lecture 2 | principles of statistical modelling 2 of 2 |
|
Short video lecture 3 | simple linear regression model 1 of 2 |
|
Short video lecture 4 | simple linear regression model 2 of 2 |
|
Short video lecture 5 | least squares estimation 1 of 2 |
|
Short video lecture 6 | least squares estimation 2 of 2 |
|
Lecture Thursday-Week-1 (Slides) | ||
Exercise-Sheet-1 | ||
Introduction to R | ||
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 |
|
Global Average Temperature datafile - for use in lecture example | Lecture Example data for use in R |
|
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 |
|
Insurance Claims Payments datafile for use in R | Exercise Sheet 1 data |
|
Week 2 : Properties of estimators and assessing the model | Lecture notes week 2 | typed notes covering the theoretical material from week 2 - assessing the simple linear regression model |
Lecture PowerPoint Monday week 2 | assessing the model plus details of the task you will need to complete this week |
|
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” |
|
Short video lecture 7 | properties of the estimators 1 of 2 |
|
Short video lecture 8 | properties of the parameters 2 of 2 |
|
Lecture-Thursday Week -2 | ||
Exercise-Sheet-1-Solution | ||
Short video lecture 9 | Assessing the model, fitted values and residuals, sums of squares |
|
Short video lecture 10 | introducing ANOVA |
|
Short video lecture 11 | using the ANOVA table |
|
Short video lecture 12 | working with residuals |
|
Introduction to R_2 | ||
Exercise Sheet 2 | ||
Week 3: Inference about the model parameters | Lecture notes week 3 | document updated 6/2/2024 revised sections 4.4, 4.5 |
Lecture PowerPoint Monday week 3 | inference about the parameters |
|
CSV file for use in Monday lecture | last year's inflation and current 10 year government bond yields by country |
|
Short video lecture 13 | inference, confidence interval for beta1 |
|
Short video lecture 14 | inference about the parameters continued |
|
Week-3 -Thursday Lecture Slides | ||
Short video lecture 15 | confidence intervals and prediction intervals |
|
Solution Exercise Sheet 2 | ||
Introduction to R_2 Output | ||
Final Exams Paper (2022) | ||
Week 4: Further model checks | Week 4 lecture notes | |
Introduction to R_3 | ||
Exercise Sheet 3 | ||
JankaNEW.csv | Data for use in Introduction to R_3 Labs |
|
Lecture PowerPoint Monday week 4 | further model checks based on issues with the observation data |
|
Lecture Slides Thursday Week 4 | ||
Introduction to R_3 output | ||
Exercise Sheet 3 Solutions | ||
Assessed Coursework 1 due in week 5 | Coursework instructions and Question | |
Coursework 1 Solution | ||
Week 5: Poorly Fitting Models and introducing Matrix approaches | Lecture notes weeks 5 and 6 | matrix approach, maximum likelihood |
Lecture PowerPoint Monday | poorly fitting model diagnostics - pure error and lack of fit, expanded anova |
|
Introduction to R #4 | ||
Data set for IT lab in week 5 | jankaNEW.csv (same file as that used in week 4 copied here for convenience) |
|
Exercise Sheet 4 | ||
Introduction to R #4 output | ||
Exercise sheet 4 soluitions | ||
AI dataset for Monday lecture illustration | training data size and "knowledge" test results for different AI systems up to chatGPT4 |
|
Week-5 Thursday Lecture Slides | ||
short video lecture 16 | outliers |
|
short video lecture 17 | influential observations |
|
short video lecture 18 | transforming the response variable |
|
short video lecture 19 | pure error and lack of fit |
|
Week 6: Matrix approach & Maximum likelihood estimation | Introduction to R #5 | for week 6 labs |
Exercise sheet 5 | ||
Introduction to R #5 output | ||
Exercise sheet 5 solutions | ||
Lecture PowerPoint Monday week 6 | why do we want to use matrix approaches to regression modelling? |
|
Lecture Slides for Thursday Week -6 | ||
short video lecture 20 | matrix approaches 1 of 2 |
|
short video lecture 21 | matrix approaches 2 of 2 |
|
short video lecture 22 | maximum likelihood estimation introduction |
|
short video lecture 23 | MLE in the normal distribution |
|
Week 7: Reading Week (note lecture Tuesday 9-10 | Lecture PowerPoint Tuesday 5th March | Multiple Linear Regression Models |
Mortgage Possession Data | for multiple linear regression example in R |
|
Week 8: Multiple Linear Regression models | Lecture PowerPoint Monday | multiple linear regression ANOVA and inference |
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 |
|
Exercise Sheet 6 | ||
Introduction to R #6 output | ||
Exercise sheet 6 solutions | ||
Liver data | liver.csv for use in the week 8 labs |
|
marketdata.csv | data needed for exercise sheet 6 Q2 |
|
Lecture notes for weeks 7 and 8 | introduction to multiple linear regression models and model building using F tests |
|
Teaching careers event on 13 March | event this week organised by QM Careers team should be helpful for anyone considering career as maths teacher |
|
Week-8 Thursday Lecture Slides | ||
short video lecture 24 | multiple linear regression models; matrix form |
|
short video lecture 25 | multiple regression ANOVA, overall F test |
|
short video lecture 26 | inference about betas; confidence intervals |
|
Assessed Coursework 2 due in week 9 | Coursework2data.csv | |
Coursework 2 Solution | ||
Week 9: Model building | Lecture PowerPoint Monday week 9 | All Subsets Regression |
Stackloss-Data | For use in R Labs |
|
Introduction to R # 8 | For use in Week 9 Labs |
|
Introduction to R # 8 Output | ||
Exercise Sheet 8 | ||
Exercise Sheet 8-Solutions | ||
Bridge-Data | Data used in lecture notes |
|
Week -9-Thursday Lecture Slides | ||
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 | 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. |
Introduction to R # 9 output | ||
Exercise Sheet 9 | ||
Exercise Sheet 9- Solutions | ||
Lecture PowerPoint Monday week 10 | problems fitting models, variance inflation factor plus a re-cap of automated methods of model building |
|
Lecture Slides Thursday Week-10 | ||
Week 11: What is a linear model? | Introduction to R#10 | |
Introduction to R#10 Output | ||
Exercise Sheet 10 | ||
Exercise Sheet 10-Solutions | ||
US Elections data file for IT lab | ||
Lecture PowerPoint Thursday week 11 | What is a linear model? |
|
Bridge Data for Exercise Sheet 10 | ||
Week 12: Revision | Introduction to R #11 | |
Introduction to R# 11 output | ||
Exercise Sheet 11 | ||
Exercise Sheet 11 Solutions | ||
Bridge.csv | week 11 and 12 Exercise sheets Bridge data saved as .csv file (easier to import into R) |
|
Lecture PowerPoint Monday | revision lecture 1 of 2 exam information and revision on topics requested last week |
|
Lecture Slides-Thursday | ||
Sample Exam Papers and Solutions | May 2023 Exam Paper | |
May 2023 Exam Solutions | ||
LSR 2023 Exam Paper | ||
LSR 2023 Exam Solutions | ||
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. |
|
Mth5120-Module Evaluation Form | ||
May 2022 Exam Paper | ||
May 2022 Exam Paper-Solutions | ||
May 2021 Exam Paper | ||
May 2021 Exam -Solutions |