Advanced Methods in Applied Statistics 2021
Lecturer: D. Jason Koskinen
Email: koskinen (at) nbi.ku.dk
- Block 3 - Timetable A of the 2021 academic
- Tues 08:00 - 12:00 and Thurs 08:00- 12:00 & 13:00 - 17:00
- 08:45 - 09:00 Q&A or discussion with Jason
- 09:00 lecture on new material (not 09:05 or 09:15)
- On Thursday there will often be new material starting at 13:00
- On Thursday it is very unlikely that any new material, lectures, or review will happen after 16:00.
- All classes will happen over ZOOM. The links can be found on the AMAS Absalon page.
- Odd-numbered classe are 4-hours while even-numbered consist of 2 blocks of 4-hours
- Classes will be composed of ~20-30% lecture and demonstrations followed by exercise
- While assignments, projects, and exercises can be done in the programming language of the students choice, the examples and demonstrations will be mainly in Python and/or scientific packages thereof, i.e. SciPy, NumPy, etc.
- Required text or textbooks: None
- 2016 Advanced Methods in Applied Statistics webpage
- 2017 Advanced Methods in Applied Statistics webpage
- 2018 Advanced Methods in Applied Statistics webpage
- 2019 Advanced Methods in Applied Statistics webpage
- 2020 Advanced Methods in Applied Statistics webpage
- It is recommended, but not required, to have reviewed the `sibling' to this course, i.e. "Applied Statistics - From data to results" which can be found here
The presentation, the problems sets, and the project will all be submitted and assigned from Absalon. So check Absalon for instructions and due dates. The final exam is handled by the eksamen webpage.
- Presentation and 1-2 page summary (10%)
problem sets (20%)
- You may start working on this right now!!
- Final exam (40%)
- 28 hour take home exam
- The exam will be similar to problem set 2
- A handful of more intensive questions as opposed to numerous
- While the exam will contain problems from any portion of the
course material, the focus will be more on topics in the latter
portion of the course
are two extra practice problems and the exams for 2016 and 2017
The course is 100% likely to change once we begin, and future lectures
listed below serve as an outline. Even so, we are
very likely to cover the following topics which may require
additional software support:
Class notes will be posted here on this webpage as they become available.
- Multivariate analysis (MVA) techniques including Boosted Decision
- The MultiNest bayesian inference tool
- Basis splines
- Markov Chain Monte Carlo
- Likelihood minimization techniques
- Spherical surface pixealization (HealPix)
Optional Software Help Session (Feb. 4)
- 13:30-16:00 with the ZOOM information in Absalon.
- Optional session with the Teaching Assistant (Tania Kozynets)for any students who may need assistance with their computer software setup.
- Get a preview with the course and some software tools to install
- Some installation help slides
Class 1 - Start (Feb. 9)
- Course Information
- Code chi-square
- Data for exercise 1 (FranksNumbers.txt)
- Review of 'basic' statistics
- Lecture 1
- Start reading paper about how well Gaussian statistics compares to a
wide selection of scientific measurements
- "Not Normal: the uncertainties of scientific measurements" link at arXiv
- We will be discussion the paper in the next class, i.e. on Thursday
Class 2 - Monte Carlo Simulation & Least Squares (Feb. 11)
- Lecture 2
- Monte Carlo (reminder that lecture starts at 09:00)
- Code for area of the
circle. Note that the code is provided for illustrative purposes, and not as a piece of code that students are expected to be able to execute without modification.
- Example code
from Jean-Loup (2019 TA) in a Jupyter notebook
- Example codee
from Tania (2021 TA) in a Jupyter notebook
- From the "Not Normal: the uncertainties of scientific measurements" paper:
- For the ambitious, create a 'toy monte carlo' of the sample and pair
distributions for the nuclear physics data in Sec. 2.A. For simplicity
assume that all the 'quantities' are gaussian distributed
- Write functions where you can produce multiple gaussian
distributions to sample from and generate a sample of "12380
measurements, 1437 quantities, 66677 pairs".
- Produce the z-distribution (using eq. 4) plot for just your toy
Monte Carlo and see if it matches a gaussian, exponential, student-t
- Discussion of "Not Normal: the uncertainties of scientific
measurements" (arXiv or DOI)
- Included here are some prompt questions to accompany discussion and understanding of the paper
- Least Squares (optional)
- Some useful links
Class 3 - Introduction to Likelihoods and Numerical Minimizers (Feb. 16)
- Remember that the first assignment is due on Wednesday
Class 4 - Intro. to Bayesian Statistics & Splines (Feb. 18)
- Lecture 4 on Simple Bayesian statistics
- Using priors, posteriors, and likelihoods
- Example code for
exercises from Jason, and example code from Tania
- Lecture 4.5
- Data files for one of the exercises.
- Interesting article about use of splines and penalty terms
Class 5 - Parameter Estimation and Confidence Intervals (Feb. 23)
- Reminder: oral presentation and 1-2 page article reports will be due/covered soon
Class 6 - Markov Chain(s) (Feb. 25)
- Lecture 6 Markov Chain Monte Carlo (MCMC)
- Look for an external package for Markov Chain Monte Carlo (MCMC), e.g. emcee, PyMC
- Just like minimizers, syntax and options matter
- Be familiar with your chosen MCMC package
- Some example python code for the exercises (caveat emptor)
- Using emcee, the solution is graciously provided by Niccolo Maffezzoli (2017 TA)
Class 7 - Hypothesis Testing (March 2)
- Lecture 7
- Likelihood ratio
- Data files for one of the exercises. Just use the first column in each file. The second column is unimportant.
Class 8 - Data Driven Density Estimation (non-parametric) (March 4)
Class 9 - Statistical Hypothesis Tests and Auto-Correlation (March 9)
- Lecture slides
- Files and some example code
- Be sure to have HEALPix software installed on your computer, or some other spherical surface pixelization software. There are options for C, C++, JAVA, Python, and I see some for MATLAB too.
Class 10 - Presentations and Multivariate Analysis techniques (March 11)
- In the morning we will have the presentations from the articles chosen.
- The class will be split 50:50 and hosted in two different ZOOM sessions. One session will be moderated by Jason, and the other will be moderated by Tania. Both sessions will be recorded and available in Absalon.
- Links to some to some of the previous presentations (2016,
The Boosted Decision Trees
- Lecture 10
- Exercise 2 (16 variable file)
- The first column is the index, hence there are 17 'variables', but the index variable only for book keeping and has no impact on whether an event is signal or background.
- Every even row is the 'signal' and every odd row is the 'background'. Thus, there are two rows for each index in the first column: the first is the signal and the second is the background. [Format is odd, but I got it from a colleague].
- Here is the solution data sets separated into two files (benign
and malignant) for the last exercise of the lecture. Here is also the (python) code that I used to
establish the efficiency for all the submissions from all the students
Class 11 - Subthreshold Anomaly Detection - Merged Bins (March 16)
- Guest Lecture by Jason & Tania
Class 12 - Work on Project (March 18)
- No new material.
- Informal and optional review of selected course material in the morning session.
- No afternoon session
Class 13 - Nested Sampling, Bayesian Inference, and MultiNest (March 23)
- Lecture 13
- External packages for conducting nested sampling, e.g. MultiNest, are necessary and some python options are:
- Very good articles that are easy to read
Class 14 - Work on Project (no lecture or new material - March 25)
Class 15 - Course Review, and Non-Parametric Tests Lecture snippet (April 6)
- Lecture 15 (EXTRA)
- Kolmogorov-Smirnov, Anderson-Darling, and Mann-Whitney U tests
- Won't be be covered in class
- Topics include things that may be useful for research
Extra Projects of a more difficult nature, for those who want something