Bayesian Data Analysis
PHY/CSI/INF 451/551 451Y
(4714,8209,5025,5078,4716,4717)
Fall 2022
Earth Science 242
Lecture: Tue/Thu 1:30 PM - 2:50 PM
Check Syllabus and News before coming to class
Prof. Kevin H. Knuth
Physics Department
University at Albany
Albany NY USA
News
A Sheet of Bayesian Practice Problems is posted HERE with solutions that will be available in a few days.
We will hold an OPTIONAL FINAL EXAM on Tuesday December 13th 1:00pm-3:00pm. This is an OPTIONAL exam, and by taking it you will be choosing to replace your MidTerm Exam grade with the Final Exam grade. This will in no way affect the grades of anyone choosing to not take this exam.
Please see the following screenshots as examples of how best to compose your reports for the programming homework sets! HW Examples
Safety
Please refer to UAlbany Health and Safety for covid-19 health and safety information.
Overwhelmed?
Are you overwhelmed by class or things beyond class?
Might you need some sort of help/counseling?
Please don't ignore this!
- If you think it's an emergency, call 911, or go to this link (http://www.albany.edu/counseling_center/emergency.shtml).
- If you think it is serious, but not an emergency you should get in touch with University Counseling and Psychological Services (http://www.albany.edu/counseling_center/index.shtml ). They're very good, and they're absolutely confidential.
- If you think you might need help/support and it's not too serious, send me an email at kknuth@albany.edu and I will find a time to meet. If you find it easier to contact one of the TAs first, then please do so. We are here to help you succeed!
Website
You should check our class website for updates to the schedule, location or for special announcements.
http://knuthlab.org/courses/2022/BayesianDataAnalysis/pmwiki.php
Contact
To reach the instructor, please send an email to
Prof. Kevin Knuth | (kknuth@albany.edu) | |
---|---|---|
Office Hours : Th 3:30pm – 4:30pm, PH 211 |
TA Information:
TA's can be reached at their email addresses:
Risinie Perera | (rperera@albany.edu ) | |
---|---|---|
Office Hours : Tu 11:30am - 12:30pm, PH 228 |
ALL HOMEWORK is to be submitted by email to knuthclass@gmail.com
Schedule
Links in the Where column go to the recorded lecture.
Links in the Topic column go to the slides for that lecture.
Week | Date | Topic | Resources | HW | |
---|---|---|---|---|---|
1 | Aug 23 | Introduction | Introduction [ppt] | Ch. 1, J80 | |
Aug 25 | Problem Solving | [ppt] | |||
2 | Aug 30 | Foundations | Foundations | ( W60),K15 | |
Sep 1 | Foundations | ||||
3 | Sep 6 | Matlab Overview | HW1p:Sep 20 | ||
Sep 8 | Probability Theory | C46, KS12 | HW2w:Sep 27 | ||
4 | Sep 13 | Probability Theory | |||
Sep 15 | Bayes Examples | ||||
5 | Sep 20 | Bayes Examples | Ch. 3 | ||
Sept22 | Bayes Examples | ||||
6 | Sep 27 | Bayes Examples | HW3p:Oct 13 | ||
Sep 29 | Uncertainty | Chs. 4 & 5 | |||
7 | Oct 4 | Uncertainty | |||
Oct 6 | PDFs and Moments | ||||
8 | Oct 11 | Fall Break | |||
Oct 13 | Ex: Length of a Pen | B18 | HW4w:Oct 25 | ||
9 | Oct 18 | Practical Data Analysis | |||
Oct 20 | Multiple Dimensions | ||||
10 | Oct 25 | Priors + Entropy | J68 Gif07 S49 | ||
Oct 27 | Ex. Histograms + Classification | K19 Berrar | |||
11 | Nov 1 | MidTerm Review | |||
Nov 3 | MIDTERM | ||||
12 | Nov 8 | Metropolis-Hastings | mcmc code | ||
Nov 10 | Nested Sampling | Ch. 9, code | HW5w:Nov 29 | ||
13 | Nov 15 | Nested Sampling | NS demo code, S08 | HW6p:Dec 1 | |
Nov 17 | Model Testing | Ketal15, Ch. 4 | ABSTRACT DUE | ||
13 | Nov 22 | Ex: Exoplanet Detection | K17 | ||
Nov 24 | Thanksgiving | ||||
14 | Nov 29 | Experimental Design | K03 KC08 | ||
Dec 1 | Project Presentations | 1pm - 3pm | |||
15 | Dec 5 | Project Reports Due | |||
Dec 13 | Optional Final Exam (to replace Midterm score) | 1pm - 3pm |
Syllabus
Course: | APHY 451, APHY 451Y, APHY 551, ICSI 451, ICSI 551, CINF 451, CINF 551 | |
---|---|---|
Class Nos.: | 4714,8209,5025,5078,4716,4717 | |
Format: | IN PERSON, Earth Science 242, Tue/Thu 1:30 PM - 2:50 PM | |
Instructor: | Prof. Kevin H. Knuth, Associate Professor of Physics | |
Contact: | kknuth@albany.edu, PH 211 | |
Office Hours: | Th 3:30 – 4:30, PH 211 | |
`TA: | Risinie Perera (Physics), rperera@albany.edu | |
Required Text: | Data Analysis: A Bayesian Tutorial by Sivia and Skilling, 2nd Edition | |
Required License: | MatLab Release 14 or Later: Student Edition |
Additional Text (Recommended for those in the Physical Sciences):
Bayesian Probability Theory: Applications in the Physical Sciences
Course Description
Introduction to both the principles and practice of Bayesian and maximum entropy methods for data analysis, signal processing, and machine learning. This is a hands-on course that will introduce the use of the MATLAB computing language for software development. Students will learn to write their own Bayesian computer programs to solve problems relevant to physics, chemistry, biology, earth science, and signal processing, as well as hypothesis testing and error analysis. Optimization techniques to be covered include gradient ascent, fixed-point methods, and Markov chain Monte Carlo sampling techniques.
3 credits
Prerequisite(s): MAT 214 (or equivalent) and CSI 101, CSI 201, or equivalent
Course Objectives
Learn how to use the sum and product rules of probability to compute probabilities of various hypotheses. Learn how to use Bayes theorem to solve inference-based data analysis problems. Learn how to assign prior probabilities and likelihood functions based on the problem at hand. Learn both analytic and numerical techniques for computing the mean and mode of a probability density function as well as the accompanying uncertainties and the Bayesian evidence.
PHY 451Y has the additional objective of focusing on presentations of scientific work. PHY 451Y students will be expected to present their programming homework results to the class. PHY 451Y students are required to complete and present final projects (see below).
Lectures
Classes will be conducted IN PERSON in Earth Science (ES) 242.
Tue/Thu 1:30 PM - 2:50 PM
Expectations
It is expected that each student will attend the Lectures, submit homework in a timely manner, and perform their own work on take-home exams.
Attendance
I will be taking attendance in this class.
Students with better than 80% attendance will have their letter grade increased to the next grade (with two exceptions). For example, a C+ would be upgraded to a B-, a B- would be upgraded to a B. However, an A being the maximum letter grade would have to remain an A. Similarly, an E will stay an E.
Incomplete Grades, Make-Ups
It is expected that each student will submit homework in a timely manner, and perform their own work on homework and take-home exams. Homework submitted more than 7 days after the due date will be assigned a 0, unless the student makes arrangements beforehand. Please plan accordingly.
Academic Integrity
Each student is to perform his or her own work. COPYING IS STRICTLY PROHIBITED. Submitting the work of another person as your own is plagiarism and will be treated seriously by assigning an E for the course. Please consult the university's standards on Academic Integrity.
Written Homework
Written homework assignments will be assigned approximately weekly. Typically, the solutions will be due 7 days after being assigned. All written homework assignments are expected to be completed and written in a neat and professional manner.
Each Written Homework assignment can be emailed by the end of the day 11:59 pm of the Submission Date above for 100 points. An assignment can be turned in from 1-3 days after the Submission Date for 90 points. An assignment can be turned in from 4-7 days after the Submission Date for 75 points. Assignments turned in more than 7 days after the Submission Date will receive 0 points.
'''Written Homework files must be NAMED in the following convention:
LASTNAME_HW#NN.PDF
where NN is the homework number.'''
Example: Knuth_HW2w.pdf
The Written HW assignment with the lowest score will be dropped.
This allows you to miss one Written HW assignment, if you wish.
ALL homework is to be submitted to knuthclass@gmail.com
Programming Homework
Programming homework will be assigned. Programs are to be written as Matlab m-file functions. In many cases, the instructor will provide the data to be analyzed, and the student is expected to turn in a computer-generated solution along with a zip file containing the software. The instructor should be able to open the zip file, run the software successfully on his own machine, and obtain identical results. Any results must be written up and presented as a PDF-formatted report with appropriate explanation.
'''Programming Homework files must be NAMED in the following convention:
LASTNAME_HW#NN.ZIP
where NN is the homework number.'''
Example: Knuth_HW6p.zip
PHY 451Y students will present their programming HW solutions to the class.
Each Programming Homework assignment can be turned in by the end of the day 11:59 pm of the Submission Date above for 100 points. An assignment can be turned in from 1-3 days after the Submission Date for 90 points. An assignment can be turned in from 4-7 days after the Submission Date for 75 points. Assignments turned in more than 7 days after the Submission Date will receive 0 points.
The Programming HW assignment with the lowest score will be dropped.
This allows you to miss one Programming HW assignment, if you wish.
ALL homework is to be submitted to knuthclass@gmail.com
Exams
There will be a Midterm Exam only.
It will be an IN-CLASS exam administered on Oct 25.
There will be NO FINAL EXAM. Instead we will have student POSTER presentations on Final Research Projects on Dec 1 from 1 - 3pm. Attendance mandatory for everyone.
Student Projects
Final Projects are required for both Graduate Students and PHY 451Y students. Students can choose to work individually or in groups of two to propose, perform, and present a final project for the course. This project will be a project that uses methods taught in this course to solve a data analysis or signal processing problem. Project Proposals in the form of an Abstract are due on Nov 17.
Project Reports follow the format of a short 4-8 page research paper including an abstract, introduction, method, results, conclusion, and references, along with the submission of a zip file containing the data and code.
Project POSTER Presentations will be on Dec 1 from 1pm - 3pm
Project Reports are due on Dec 5.
Undergraduate Grading
Undergraduates are graded using Option I, below.
Undergraduates who do a Final Project will be assigned the best grade of Option I or II.
Option I | Option II | ||||
---|---|---|---|---|---|
Written HW | 40% | Written HW | 30% | ||
Programming HW | 40% | Programming HW | 30% | ||
Exams | 20% | Exams | 15% | ||
Final Project | 25% |
Graduate Grading
Written HW | 30% |
Programming HW | 30% |
Exams | 15% |
Final Project | 25% |
Letter | Percent | GPA |
A | 90 - 100 | 4.0 |
A- | 87 - 90 | 3.7 |
B+ | 83 - 87 | 3.3 |
B | 80 - 83 | 3.0 |
B- | 77 - 80 | 2.7 |
C+ | 73 - 77 | 2.3 |
C | 70 - 73 | 2.0 |
C- | 67 - 70 | 1.7 |
D+ | 63 - 67 | 1.3 |
D | 60 - 63 | 1.0 |
E/F | < 60 | 0.0 |