MSG830 V24 Statistisk Analys och Experimentplanering
General course information
The course consists of two parts, a theoretical part (6 credits) with lectures, exercises and computer labs; and a compulsory project (1.5 credits). Course is given in English, but course literature is in Swedish as a kompendium. Swedish slides from a previous iteration are also shared here. (You can find a dictionary of technical terms here: Ordbok.)
On this page you can find the preliminary program for the course: lectures, exercise sessions and computer labs. You can find a description of compulsory assignments, the exam and the project below the program.
For the labs and the project, the statistical software RStudio is needed, which can be downloaded in two steps
Step 1: install R from http://ftp.acc.umu.se/mirror/CRAN/ (Links to an external site.)
Step 2: install RStudio from https://rstudio.com/products/rstudio/download/ (Links to an external site.)
No prior knowledge of programming is required.
For those who do not have their own computer, there is the possibility to use the computers in room MVF22. You must then ensure that you have an account at Chalmers, which you obtain via the Chalmers student portal.
Extra support: the Maths department offers peer tutoring to all students, you can find out more about it here: https://www.lib.chalmers.se/studieresurser/mattesupport-och-laexhjaelp/
! Re-exam (2024-08-22) with solutions is here: Exam 240822
Re-exam (2024-06-04) with solutions is here: Exam 240604
Exam (2024-03-15) with solutions is available here: Exam 240315.
Examiner and course leader: Eszter Lakatos (eszter.lakatos@chalmers.se)
Schedule: TimeEdit
Program
| Date | Session | Topic | Material |
| Onsdag 17/1 | Datatyper, Deskriptiv statistik | Kapitel 1 | |
| Torsdag 18/1 | Sannolikhetsteorins grunder, Kombinatorik, Betingad sannolikhet, Oberoende händelser, Bayes formel | Kapitel 2 | |
| Tisdag 23/1 | Övning |
Övningar i Kapitel 1 och 2: |
1.8.1, 2.6.1, 2.6.2, 2.6.3, 2.6.4, 2.6.9 |
| Onsdag 24/1 | Datorlab | Beskrivande statistik | Lab 1 (Rmd) (html) |
| Onsdag 24/1 | Diskret slumpvariabel, Fördelning, Väntevärde, Varians, Binomialfördelning | Kapitel 3 | |
| Torsdag 25/1 | Kontinuerlig slumpvariabel, Täthet, Likformig, Normal, Centrala gränsvärdessatsen | Kapitel 4 | |
|
Tisdag 30/1 |
Övning |
Övningar i Kapitel 3 och 4: |
3.8.1, 3.8.4, 3.8.7, 4.4.2, 4.4.4, 4.4.6 |
| Onsdag 31/1 | Datorlab | Binomial och normalfördelning | Lab 2 Rmd |
| Onsdag 31/1 | Population och stickprov, Medelfel, Konfidensintervall, Hypotesprövning | Kapitel 5 | |
| Tisdag 6/2 | Övning | Övningar i Kapitel 5: |
5.6.2, 5.6.3, 5.6.4, 5.6.6, 5.6.7 |
| Onsdag 7/2 | Datorlab | Filinläsning, Paket & CLT | |
| Onsdag 7/2 | Hypotesprövning, t-fördelning, t-test | Kapitel 5 & 6 | |
| Torsdag 8/2 | t-test, parat t-test, ickeparametriska test | Kapitel 6 | |
| Tisdag 13/2 | Övning | Övningar i Kapitel 6: | 6.7.1, 6.7.2, 6.7.3, 6.7.5, 6.7.6, 6.7.7 |
| Onsdag 14/2 | Datorlab | For, If & Konfidensintervall | Lab 4 Rmd |
| Onsdag 14/2 | Föreläsning (Anteckningar SV) | ANOVA, Multipla jämförelser, Bonferronis metod | Kapitel 7 |
| Torsdag 15/2 |
Försöksplanering & Projekt |
Kapitel 10a | |
| Tisdag 20/2 | Övning | t-test & ANOVA |
6.7.9, 7.3.1, 7.3.2, 7.3.3, 7.3.4., 7.3.5 |
| Onsdag 21/2 | Datorlab | t-test och ANOVA | Lab 5 Rmd Extra Fil |
| Onsdag 21/2 | Enkel linjär regression, Hypotesprövning av lutning, Analys av residualer, Korrelation (Pearson), t-test av korrelation | Kapitel 8 | |
| Torsdag 22/2 | Chi-två test, Chi-två fördelning, Goodness-of-fit test, Test av oberoende | Kapitel 9 | |
| Tisdag 27/2 | Övning | Övningar i Kapitel 8-9 | 8.3.1, 8.3.2, 8.3.3, 8.3.4, 9.3.1, 9.3.2, 9.3.5, 9.3.8 |
| Onsdag 28/2 | Datorlab | Linjär regression | Lab 6 (Extra Fil) |
| Onsdag 28/2 | Försöksplanering och beräkning av stickprovsstorlek (& Projekt) | Kapitel 10b | |
| Torsdag 29/2 | Föreläsning | Sammanfattning, genomgång av gammal tenta | |
| Tisdag 5/3 | Lektion | Handledning av projekt | |
| Onsdag 6/3 | Datorlab | Chi-två-test | |
| Onsdag 6/3 | Föreläsning | Practice exam | |
| Torsdag 7/3 | Föreläsning | Solution of practice exam, questions | |
| Fredag 15/3 | Tentamen |
Course literature
We use the Kompendium written by Staffan Nilsson, Aila Särkkä, Serik Sagitov och Malin Palö Forsström. This Kompendium is under construction - notify Eszter Lakatos if you find any mistakes in it.
In addition to the kompendium, you can also read a basic book in statistics, e.g. Milton & Arnold: Introduction to probability and statistics.
Assessment
The assessment consists of two main parts, computational assignments and a written exam for the theoretical part (6 credits); and a project work and report (1.5 credits).
Computer lab assignments: you need to submit the solution to at least 3 of the extra exercises from computer labs, no later than 11 March. Each exercise counts separately, e.g. X5.1 and X5.2 are counted as 2. You can find all exercises in this Rmd file, and also at the end of each lab file. Submit your solutions in Canvas within the edited Rmd file. (Extra data files are here: X3.1, X5.3, X6.2, X7.2) You can submit the assignment through Canvas (in the Assignments tab), if you run into difficulties, you can also email them to me.
Written exam: the exam consists of problems similar to those covered in exercise sessions. One paper (2 A4 pages) of notes can be used. Grades U, G or VG are given. You can get bonus points (up to 10% of total exam score) for presenting problem solutions on the board during exercise sessions.
Project
The aim of the project is for you (in groups of 3-4 people) to try to plan an experiment which will then be analysed using the statistical methods you learned on the course. Research should be fun, so choose something that interests you! It is of course best if you can come up with a project within your main subject, but it is also fine with something that you just find interesting in general. You can choose to carry out experiments of some kind, or make an observational study, ask others to fill out a questionnaire, etc.
A minimum requirement for the project is that you generate data, describe the data with suitable measures and plots and perform at least one statistical test. Significant results cannot be guaranteed, but you should at least have a research hypothesis that can reasonably be true.
Some examples of what has been studied in previous projects:
Use of Swish, Punctuality in trams, Tobacco consumption, Gingerbread test, Organic consumption, Price differences between certified and regular products, Eating habits (veg, fish, meat), Julmust test, Coffee consumption, Climate changes in Oslo since the 1930s, Social media and stress, Students' lunch habits, How Mariekex cracks (model for tectonic plates), Traffic flow and congestion tax, Sleeping habits, Dendochronology in Skogaby, etc.
Agree on the project idea with the course leader before starting the project.
The report must contain an introductory description of the question and description of the data, a method section where you describe the experimental setup, the method(s) you have used and give your null and research hypotheses, a results section where the results of your analyses are presented and a concluding discussion. The results can be described in plain text and with self-constructed tables, but also attach the R output that is the basis for the production, as well as the data files you used. In the discussion, you should discuss assumptions you have made and whether they are correct and limitations of your research.
The report should be emailed to the course leader no later than April 4, 2024. Only one person in the group needs to submit the report. Do not forget to enter the names of all group participants on the report.
Grades U or G are given for the project.
Kurssammanfattning:
| Datum | Information | Sista inlämningsdatum |
|---|---|---|