COMPSCI 240 Spring 2024 syllabus

COMPSCI 240 – Reasoning Under Uncertainty – Fall 2024
UMass Amherst – Manning College of Information and Computer Sciences
Syllabus: class taught by Mark C. Wilson

All my syllabi should be read in conjunction with my standard FAQ for students.

LOGISTICS

  • Course: COMPSCI 240 (SPIRE number 18897)
  • Prerequisites: COMPSCI 187 and MATH 132 with a grade of ‘C’ or better.
  • Online resource pages: Canvas (https://umamherst.instructure.com/courses/8502) ; Gradescope (access code XX48KX, https://www.gradescope.com/courses/706695) ; Piazza (see enrolment email, https://piazza.com/umass/spring2024/compsci240) ; ClassQuestion.com (make a free account with your official UMass name and email, class code RDQTC)
  • Lecture and discussion meeting times/places: see SPIRE (they can change a lot around the beginning of the semester). Discussion sessions start in Week 2 and the discussion in week N usually covers lecture material from Week N-1.

TEACHING TEAM

  • Instructor: Mark Wilson (he/him) ; office LGRC A217H ; email markwilson@umass.edu (only use if Piazza is not working for some reason)
  • Teaching Assistants: Ignacio Gavier (Head TA), Pradyumn Goyal, Zhangqi Duan
  • Undergraduate Course Assistants: Kirat Arora (head UCA), Anjalika Arora, Mahika Arora, Addie Padhi, Shiven Patel, Lucy Zhang

COMMUNICATION

Details of office hours will be announced on Piazza by the first week of classes. Talking to the instructor immediately before/after lecture is usually very effective. Instructions on how best to use Piazza will be distributed by the first week of classes – it is important to follow those guidelines. We will not use individual instructor or TA/UCA emails – everything should be done via (private, if necessary) message on Piazza.

It is important to follow these procedures, so that your message is properly answered. For all questions involving course logistics and grading, please use Piazza. For special requests (excused absences/make-up exams), contact the head TA via Piazza.

CONTENT

Students in this 4-credit course will learn the basic concepts of counting and probability while developing mathematical reasoning skills for problems that involve uncertainty. Each concept will be illustrated by real-world examples and demonstrated through in-class and homework exercises. Topics in counting and probability include: basic counting problems, probability definitions, mean, variance, binomial distribution, discrete random variables, continuous random variables, Markov and Chebyshev bounds, laws of large numbers, and central limit theorem. Probabilistic reasoning skills will center around conditional probability and odds, Bayes’ law, Markov chains, and Bayesian networks.

A student passing this course should be able to:

  • compute (conditional) probabilities of events
  • apply counting rules to count the number of outcomes in a probabilistic experiment that satisfy certain conditions
  • model uncertain situations using discrete and continuous random variables
  • compute mean and variance of random variables
  • exhibit fluency with concepts involving several random variables, such as joint distributions, independence, correlation and covariance
  • use the law of large numbers and central limit theorem to approximately compute probabilities involving sums of many random variables
  • use Markov chains to model systems evolving over time, and analyse their stationary distributions
  • use Bayesian networks to compute probabilities of complex events by exploiting conditional independence

DELIVERY

There are two scheduled 75-minute lectures per week, given by the instructor. Lectures are recorded and linked from Canvas. Lecture slides will be made available after each lecture with at most 48 hours delay. Each student is assigned to a discussion section that meets once a week (these start in the second week of lectures). There is a recommended (but not required) textbook: Bertsekas/Tsitsiklas, Introduction to Probability, 2nd edition, which covers most of the course material (not Bayesian networks). Some copies will be available from the UMass library for short-term loan. Other resources may be available from Canvas.

ASSESSMENT

  • Examinations: 1 midterm written exam (20% of final marks), final  written  exam (40%, covers entire course but weighted more on 2nd half).  The final exam date/location can be deduced from here: https://www.umass.edu/registrar/spring-final-exam-matrix
  • Homework assignments and quizzes: 6 written homework assignments (20% total), 10 online quizzes (10%) . Assignments are typically due about every two weeks on Sunday just before midnight, and released about a week before the due date. Online quizzes are typically released each week and you will have 2 hours per attempt to complete each one once you start – they can be taken within a time window of a few days, and you can have 2 attempts. The quiz in week N usually covers material from lectures in week N.
  • Participation: lectures up to 5%, discussions up to 5%, Piazza up to 5% (10% total, so getting the maximum score is easy), determined by metrics and teaching team judgment (all decisions are final and not subject to appeal).
  • I do not usually give extra credit opportunities.

Most grading will be done via GradeScope and requests for regrading (because of an error by a grader) must be made on GradeScope within a week of the graded assessment item being returned. There is a deadline of two days before the final exam for students to ensure that all their other course marks are correctly recorded in Canvas.

Final grades for the class will be determined by mapping the final marks to letter grades using a  UMass standard grading system, with no rounding. But also, in order to pass the class, each student must receive a passing grade on the examinations section. Individual course assignments may be scaled if the difficulty level was inappropriate for the class. There is no preassigned final grade distribution – it is possible for everyone to get an A. Historically, about 40% of students get an A or A- in this course.

SCHEDULE (subject to change, but won’t change much)

Week Lecture 1 Lecture 2 OTHER
1 Introduction, set theory Probability axioms, Conditional probability
2 Sequential models, Bayes’ rule Bayes’ rule, Independence, Conditional independence HW1 due
3 [Wed] Counting, Binomial law [Thu] Counting techniques
4 Discrete Random Variables, PMF Expectation HW2 due
5 Variance, functions of a random variable Multiple random variables
6 Continuous random variables, PDF Common continuous random variables HW3 due
SPRING BREAK
8 Review for midterm; exam 7-9pm in Goessmann 020  Joint PDF/CDF, Markov and Chebyshev inequalities
9 Central Limit Theorem, Laws of Large Numbers Covariance and Correlation HW4 due
10 Markov chains  Markov chains
11  Bayesian networks  Bayesian networks HW5 due
12  Statistical inference  Statistical inference
13  Statistical inference  Special topics (not examinable) HW6 due
14 Special topics (not examinable) Overview, exam review

SPECIFIC CLASS POLICIES

These will be announced on Piazza by the first week of classes, and will deal with make-up exams, excused absences, rules of student conduct in class and online, etc. It is very important to read them – please do not ask questions that are clearly answered by the policies.

UMASS POLICIES

Equity and Inclusion Statement

We are committed to fostering a culture of diversity and inclusion, where everyone is treated with dignity and respect. This course is for everyone. This course is for you, regardless of your age, background, citizenship, disability, education, ethnicity, family status, gender identity, geographical origin, language, military experience, political views, race, religion, sexual orientation, socioeconomic status, or work experience. We bring different skills to the course and we will all be learning from and with each other. We respect everyone’s right to be addressed by the name and pronouns that they choose. You can indicate your preferred/chosen first name and pronouns on SPIRE, which appear on class rosters. A student’s chosen name and pronouns are to be respected at all times in the classroom.

In both live and online settings we all are expected to uphold and promote a welcoming environment for learning. Politeness, kindness, and tolerance are expected at all times. Respect that people have differences of opinion, and work and approach problems differently. Please keep unstructured critique to a minimum and make sure that any criticism is constructive. Try and be aware of your own biases and avoid micro-aggressions. Listen to others and let them participate; ask yourself whether you are dominating a conversation and not giving others a chance to contribute. Disruptive behavior is not welcome, and insulting, demeaning, or harassing anyone is unacceptable. We follow the university’s guidelines for classroom civility. In particular, we don’t tolerate behavior that excludes people in socially marginalized groups. If you feel you have been or are being harassed or made uncomfortable by someone in this class, please contact a member of the course staff immediately, or if you feel uncomfortable doing so, contact the Dean of Students office.

Academic Honesty Policy

The Association of Computing Machinery (ACM), the world’s largest professional computing society, has released a Code of Ethics, and with good reason. Given the dominant role of computer technology in our society, ethical lapses can have disastrous consequences. Ethical behavior begins here at UMass. The following discussion pertains to academic honesty from the perspective of this course.

All work submitted must be your own in presentation. How much outside help is allowed depends on the course component.

  • For quizzes and exams, no outside help or use of materials from prior years is allowed. Any cheating on a quiz or exam is grounds for an F in the course.
  • You may discuss homework with other students, in fact we encourage this as a learning experience. But again, the writeup must be your work. Copying is not allowed, and collaboration so close that it looks like copying is not allowed. In general, if we receive two identical homeworks we will accept neither of them (i.e., both get F’s) and will give you a stern warning that could lead to formal action the next time. A good practice is to divide your work into an “ideas phase” where you collaborate and a “writeup phase” where you work alone — enter the writeup phase with notes, but not written solutions.
  • All work submitted by students will be generated by the students themselves, working individually or in groups. Students should not have another person/entity do the writing of any substantive portion of an assignment for them, which includes hiring a person or a company to write assignments and using artificial intelligence tools like ChatGPT.
  • If you make use of a printed or on-line source for the homework, other than specific course materials such as the textbook or website, please mention it in your writeup. Of course copying a solution to a problem from the web is cheating, and this is easier for us to detect than you might think.
  • As per CICS policy, no student shall post course materials online without explicit permission of the instructor. Nor shall a student provide course materials to a third party such as StudySoup or Chegg.
  • For more information about what constitutes academic dishonesty, please see the Dean of Students’ website for the general UMass academic honesty policy. Since students are expected to be familiar with this policy and the commonly accepted standards of academic integrity, ignorance of such standards is not normally sufficient evidence of lack of intent. You can take a quick online quiz to check your “academic integrity quotient (AIQ)”.

Copyright

Our lectures and course materials, including slides, videos, assignments, tests, outlines and similar materials, and all course recordings, are protected by U.S. copyright laws and by university policy. We are the exclusive owner of the copyright in materials we create. You may take notes and make copies of course materials for your own use in this class. You may also share those materials with another student who is registered and enrolled in this course. You may NOT reproduce, distribute, upload, or display any lecture notes or recordings or course materials in any other way — whether or not a fee is charged — without the instructors’ express written consent. If you do so, you may be subject to disciplinary action under the UMass Code of Student Conduct. Similarly, you own the copyright to your original papers and exam essays. If we are interested in posting your answers or papers on the course web site, we will ask for your written permission.

Disability Statement

The University of Massachusetts Amherst is committed to making reasonable, effective and appropriate accommodations to meet the needs of students with disabilities and help create a barrier-free campus. If you are in need of accommodation for a documented disability, register with Disability Services to have an accommodation letter sent to the instructors. It is your responsibility to initiate these services and to communicate with the teaching staff ahead of time to manage accommodations in a timely manner. For more information, consult the Disability Services website.

Title IX Statement

UMass is committed to fostering a safe learning environment by responding promptly and effectively to complaints of all kinds of sexual misconduct. If you have been the victim of sexual violence, gender discrimination, or sexual harassment, the university can provide you with a variety of support resources and accommodations. If you experience or witness sexual misconduct and wish to report the incident, please contact the UMass Amherst Equal Opportunity (EO) Office (413-545-3464 | equalopportunity@admin.umass.edu) to request an intake meeting with EO staff. Members of the CICS community can also contact Erika Lynn Dawson Head, director of diversity and inclusive community development (erikahead@cics.umass.edu | 860-770-4770).