CMPSCI 240: Reasoning about Uncertainty

Similar documents
General Info. Grading

1.1 Administrative Stuff

Physics Fall Semester. Sections 1 5. Please find a seat. Keep all walkways free for safety reasons and to comply with the fire code.

Ch. 2: Lec. 1. Basics: Outline. Importance. Usages. Key problems. Three ways of looking... Colbert on Equations. References. Ch. 2: Lec. 1.

CMPSCI 240: Reasoning about Uncertainty

EECS 1028 M: Discrete Mathematics for Engineers

Probability with Engineering Applications ECE 313 Section C Lecture 2. Lav R. Varshney 30 August 2017

Probability (Devore Chapter Two)

Linear Algebra. Instructor: Justin Ryan

AS 101: The Solar System (Spring 2017) Course Syllabus

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 14

Alien Worlds. Astronomy 105. Spring 2011

Course Staff. Textbook

Course Information Course Overview Study Skills Background Material. Introduction. CS 205A: Mathematical Methods for Robotics, Vision, and Graphics

Lecture 1/25 Chapter 2

Machine Learning. Instructor: Pranjal Awasthi

Welcome to Physics 211! General Physics I

AS The Astronomical Universe. Prof. Merav Opher - Fall 2013

Stellar Astronomy 1401 Spring 2009

AS102 -The Astronomical Universe. The boring details. AS102 - Major Topics. Day Labs - Rooms B4 & 606. Where are we (earth, sun) in the universe?

Math 31 Lesson Plan. Day 2: Sets; Binary Operations. Elizabeth Gillaspy. September 23, 2011

Physics 2D Lecture Slides Lecture 1: Jan

Statics - TAM 210 & TAM 211. Spring 2018

Single Maths B: Introduction to Probability

Astronomy 1010: Survey of Astronomy. University of Toledo Department of Physics and Astronomy

Math 1553 Introduction to Linear Algebra. School of Mathematics Georgia Institute of Technology

CSE 311: Foundations of Computing I. Lecture 1: Propositional Logic

Physics 343: Modern Physics Autumn 2015

Introduction to Stochastic Processes

AE 200 Engineering Analysis and Control of Aerospace Systems

MATH 341, Section 001 FALL 2014 Introduction to the Language and Practice of Mathematics

Physics 2D Lecture Slides Lecture 1: Jan

Chemistry Physical Chemistry I Fall 2017

ASTR1120L & 2030L Introduction to Astronomical Observations Spring 2019

Physics 18, Introductory Physics I for Biological Sciences Spring 2010

Astro 32 - Galactic and Extragalactic Astrophysics/Spring 2016

Today s Menu. Administrativia Two Problems Cutting a Pizza Lighting Rooms

Chemistry 883 Computational Quantum Chemistry

MATH 251 Ordinary and Partial Differential Equations Summer Semester 2017 Syllabus

COS 341: Discrete Mathematics

AS 102 The Astronomical Universe (Spring 2010) Lectures: TR 11:00 am 12:30 pm, CAS Room 316 Course web page:

Welcome to Physics 161 Elements of Physics Fall 2018, Sept 4. Wim Kloet

Ph 1a Fall General Information

Chemistry Syllabus Fall Term 2017

MATH 345 Differential Equations

Don t Trust Atoms, they Make Up Everything High School Chemistry

Physics 2D Lecture Slides Sep 26. Vivek Sharma UCSD Physics

Math , Fall 2014 TuTh 12:30pm - 1:45pm MTH 0303 Dr. M. Machedon. Office: Math Office Hour: Tuesdays and

Intro to Linear & Nonlinear Optimization

Math Linear Algebra Spring Term 2014 Course Description

CHEM 1100 General Chemistry I: Summer 2019

PS 101: Introductory Astronomy Fall 2014

CHEM 4725/8725 Organometallic Chemistry. Spring 2016

HIRES 2017 Syllabus. Instructors:

Physics 106 Dr. LeClair

CS 188: Artificial Intelligence Spring 2009

Multivariable Calculus

Prerequisite: Math 40 or Math 41B with a minimum grade of C, or the equivalent.

Methods of Mathematics

Physics 162b Quantum Mechanics

Physics 112 Spring 2014

PHYSICS 100. Introduction to Physics. Bridges the gap between school science and Physics 101, Physics 120, Physics 125 or Physics 140

MATH 450: Mathematical statistics

Calculus (Math 1A) Lecture 1

Introductory Probability

Page 1 of 5 Printed: 2/4/09

PHYS1021 Stars and Galaxies Summer 2015

GEOL 103: Dynamic Earth

ENVIRONMENT AND NATURAL RESOURCES 3700 Introduction to Spatial Information for Environment and Natural Resources. (2 Credit Hours) Semester Syllabus

Chapter 5 : Probability. Exercise Sheet. SHilal. 1 P a g e

FENG CHIA UNIVERSITY


SYLLABUS SEFS 540 / ESRM 490 B Optimization Techniques for Natural Resources Spring 2017

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 10

CMPSCI 240: Reasoning Under Uncertainty First Midterm Exam

CHEM 121: Chemical Biology

CMPSCI 240: Reasoning Under Uncertainty First Midterm Exam

ME 022: Thermodynamics

Physics Fundamentals of Astronomy

ECE 4800 Fall 2011: Electromagnetic Fields and Waves. Credits: 4 Office Hours: M 6-7:30PM, Th 2-3:30, and by appointment

Discrete Probability and State Estimation

Angelina College Science and Mathematics Chemistry 1105 Introductory Chemistry Internet General Syllabus

CS 4649/7649 Robot Intelligence: Planning

UNIVERSITY OF MACAU DEPARTMENT OF ELECTROMECHANICAL ENGINEERING CHEM101 - Chemistry Syllabus 1 st Semester 2010/2011 Part A Course Outline

Geography 1103: Spatial Thinking

Introduction Propositional Logic

MAT 211, Spring 2015, Introduction to Linear Algebra.

Junior Laboratory. PHYC 307L, Spring Webpage:

Physics 273 (Fall 2013) (4 Credit Hours) Fundamentals of Physics II

Calculus, Series and Differential Equations

Physics 141 Course Information

Quinsigamond Community College School of Math and Science

Notes slides from before lecture. CSE 21, Winter 2017, Section A00. Lecture 16 Notes. Class URL:

Physics 1140 Fall 2013 Introduction to Experimental Physics

Physics 9, Introductory Physics II Spring 2010

San José State University/Chemistry Department. Chem 055L, Quantitative Analysis Laboratory, Section 01 and 02, Fall 2016

Lecture 1: Probability Fundamentals

Stat 406: Algorithms for classification and prediction. Lecture 1: Introduction. Kevin Murphy. Mon 7 January,

Math.3336: Discrete Mathematics. Combinatorics: Basics of Counting

1. When applied to an affected person, the test comes up positive in 90% of cases, and negative in 10% (these are called false negatives ).

Transcription:

CMPSCI 240: Reasoning about Uncertainty Lecture 1: Introduction Andrew McGregor University of Massachusetts Last Compiled: January 24, 2017

Outline 1 Introduction 2 Course Logistics 3 Sets and Elements

What s this course about... Course description: Development of mathematical reasoning skills for problems that involve uncertainty. Uncertainly could arise because we don t have all the facts or because there s inherent randomness. Almost everything we learn is subject to some amount of uncertainty. Examples: Card games and gambling, spam filters, stock market, collecting coupons, game theory, communication and compression... Along the way: Get practice making mathematical arguments and using mathematical concepts.

Probability Probability is the most commonly accepted, well-developed and successful approach for reasoning about uncertainty. Basic idea is to represent the degree of certainty using real numbers between 0 and 1. For example, we could express our belief that it s likely to snow tonight by saying the probability of snow is 0.9. Probability theory provides mathematical rules specifying how probabilities can be manipulated to reason about uncertainty correctly and make good decisions in the face of uncertainty. Our intuition can fail if we don t use these rules carefully.

Medical Testing and Diagnosis You go to your doctor because you haven t been feeling well. The doctor orders some tests and you get lab results in the mail showing that that you tested positive for a deadly disease that affects 1 in 10000 people. The test correctly identifies positive cases 99% of the time and correctly identifies negative cases 95% of the time. How worried should you be?

Games of Chance and Gambling You re in Las Vegas for spring break. One afternoon in the casino you watch incredulously as black comes up 10 times in a row on the roulette wheel. You think the streak can t possibly continue so you put $100 on red. Is this a good bet? What if you re observing a slot machine that is guaranteed to pay out a certain amount per day but hasn t paid out anything yet?

Planning and Routing You study all night and wake up 15 minutes before your exam. You could take a 10 minute bus ride but you have to catch a bus first: each minute, a bus to school passes your house with probability 1/5. Your other choice is to bike to the University from home, but it will take you 20 minutes. Should you wait for the bus or hop on your bike?

Hand Written Digit Recognition A friend writes their cell number down on a scrap of paper for you. You go to call them later but you re not sure what the second number is. Is the number a 1 or a 7?

Hand Written Digit Recognition A friend writes their cell number down on a scrap of paper for you. You go to call them later but you re not sure what the second number is. Is the number a 1 or a 7? How about now?

Probability and Computer Science Probability can be applied to day-to-day situations, but it also forms a core component of many of the most exciting areas of modern computer science and computational statistics including: Natural language processing and speech recognition Computer vision and robotics Machine learning and planning Information retrieval and search Information theory and data compression Algorithms and Complexity Game theory and mechanism design Computational biology Social network analysis...

Probability and Industry A correspondingly wide range of high tech companies actively use probability and reasoning under uncertainty to develop products.

Outline 1 Introduction 2 Course Logistics 3 Sets and Elements

Course Contents Part I: Sample Space and Probability 1 Sample space, events, and probability laws 2 Conditional probability, Bayes theorem, independence 3 Counting (i.e., combinations, permutations, partitions) Part II: Random Variables 1 Discrete and continuous random variables 2 Expectation, mean, and variance 3 Correlation and covariance 4 Concentration results and limit theorems Part III: Applications: Inference, Markov Chains, 1 Inference and Bayesian Networks: reasoning about unobserved quantities from available evidence, e.g., spam filtering 2 Markov Chains: reasoning about random processes that evolve over time, e.g., Google s PageRank algorithm Part IV: More Applications: Game Theory and Information Theory 1 Game Theory: how to you randomized strategies when playing games 2 Information Theory: how to communicate when there s random noise

General Information Instructor: Andrew McGregor (www.cs.umass.edu/~mcgregor) Lectures: Tu/Th, 11:30am 12:45pm, Thompson Hall Room 102 Discussion Sections: Please keep to the section your registered: 1 Section AA: Wed 12:20-1:10pm, Engineering Laboratory 323 2 Section AB: Wed 10:10-11:00am, Tobin Hall 204 3 Section AC: Wed 9:05-9:55am, Engineering Laboratory 323 4 Section AD: Wed 1:25-2:15pm, Engineering Laboratory 306 Teaching assistants: Raj Maity and Emma Tosch Office Hours: 1 Raj: Monday 4-5pm (TBA) 2 Andrew: Tuesday 3-4pm (CS 334) 3 Emma: Thursday 2:30-3:30pm (TBA)

Website and Communication Website: The official course webpages are people.cs.umass.edu/~mcgregor/courses/cs240s17/ Quizzes and grades will be posted at moodle.umass.edu Discussions will happen at piazza.com and homework submissions will be via gradescope.com. Outgoing email: Course email to the address Moodle has on file for you. Check it regularly.

Textbooks Required textbook: Introduction to Probability, 2nd Edition by Dimitri P. Bertsekas and John N. Tsitsiklis Supplemental textbooks: Introduction to Probability by Charles M. Grinstead and J. Laurie Snell. Available free: www.math.dartmouth.edu/~prob/prob/prob.pdf Introduction to Probability, Statistics, and Random Processes by Hossein Pishro-Nik. Available free: http://www.probabilitycourse.com Some application topics will require extra reading that will be posted.

Grade Breakdown Participation (10%): Discussion assignments, Piazza, and in class contributions. Homework (20%): Homework and weekly online quiz. Midterm 1 (15%): Focuses on Part I. Midterm 2 (15%): Focuses on Part II. Midterm 3 (15%): Focuses on Part III. Final (25%): Covers entire course.

Submission Policy Written Assignments: Assignments must be uploaded to Gradescope by the specified deadline. If you handwrite your solutions and scan them, make sure they are legible; if we can t read your answer, it s hard to give it marks! Online Quizzes: Every week, there ll be a online quiz posted on Friday. The quiz should take about 30 minutes but you re allowed two hours. The cut-off for doing the quiz is 8pm Monday. Late Policy: Marks for any homework that is late by 5 minutes up to 24 hours, will be halved. However, you are allowed to submit one homework up to 24 hours late without penalty; don t use this lifeline prematurely! Homework later than 24 hours receives no credit. The cut-off for quizzes is strict but we ll drop the lowest quiz mark.

Academic Honesty Homework: You may discuss homework with other students but the writeup and code must be your own. There ll be formal action if cheating is suspected. You must list your collaborators and any printed or online sources at the top of each assignment. Online Quizzes: Should be done entirely on your own although it s fine to consult the book and slides as you do the quiz. Again, there ll be formal action if cheating is suspected. Discussions: Groups for the discussion section exercises will be assigned randomly at the start of each session. You must complete the discussion session exercise with your assigned group. Exams: Closed book. Cheating will result in an F in the course. If it doubt whether something is allowed, ask...

How to be Successful in this Class This class is not easy! It s a very mathematical course but you also have to develop intuition for why the math makes sense in the context of real-world problems. We ll try to help as much as possible but to succeed: 1 Come to class and your discussion section. 2 If there are readings, complete them before class. 3 Stay on top of the assignments and submit them on time. 4 Check the course website and the email address Moodle has for you frequently for news and updates. 5 Get help early and often. Ask questions in class, come to office hours, post to the discussion forums or send email.

Outline 1 Introduction 2 Course Logistics 3 Sets and Elements

Sets and Elements A set S is a container for a collection of objects called elements. Ex: S =,, S denotes the size of a set, the number of elements it contains. Ex: S =,, = 3

Sets Membership The notation x S asserts that object x is contained in set S. We say x is an element of S. Ex: If S =,,, then S. The notation x / S asserts that object x is not contained in set S. We say x is not an element of set S. Ex: If S =,,, then / S.

Equality of Sets The notation S = T means that set S is equal to T. Two sets are equal if every element of S is a member of T and every element of T is a member of S. Otherwise, S T. Ex:,, =,, Ex:,,,,

Subsets The assertion T S means T is a subset of S. T is a subset of S if all the elements in T are also in S. Ex:,,,, Ex:,,,, Ex:,, is called the empty set and is sometimes denoted by.

Strict Subsets The assertion T S means T is a strict subset of S. T is a strict subset of S if all the elements in T are also in S, but S T. Ex:,,,, Ex:,,,, Ex:,,

Creating Subsets By Filtering Let F (x) be a logical formula that takes objects x and returns a value in the set true, false. We indicate the set of objects such that F (x) is true using the notation x F (x). Let S =,, Then x x S and x is green =, Let S =,,,,, Then x x S and x is even =,,

The Universal Set The universal set Ω is the set of all possible objects of interest in a given context. Ex: Coin flip:, Ex: Dice roll:,,,,,

The Power Set The power set of a set S is denoted 2 S or P(S). It is the set of all subsets of S. For finite sets, 2 S = 2 S. Let S =,,. 2 S =,,,,,,,,,,,,

Set Complement The notation S c indicates the complement of set S with respect to the universal set Ω. S c contains all elements of Ω that are not in S: S c = x x Ω and x / S. Let: Ω = Let: S =,,,,,, Then: S c =,

Set Union The notation S T indicates a set containing the union of the elements in set S and the elements in set T : Let: S = S T = x x S or x T., and T =, Then: S T =,,,

Set Intersection The notation S T indicates a set containing the intersection of the elements contained in S and the elements contained in set T : Let: S = S T = x x S and x T, and T =, Then: S T =

Disjoint Sets Sets S 1,..., S N are mutually disjoint if for every i, j with i j: S i S j = Let: S 1 =,, S 2 =,, S 3 = Then: S 1 S 2 =, S 1 S 3 =, S 2 S 3 = So: S 1, S 2, S 3 are mutually disjoint.

Partitions Sets S 1,..., S N are a partition of set S if S 1,..., S N are mutually disjoint and S 1 S N = S. Let: S =,,,, Let: S 1 =,,, S 2 =,, S 3 = Then: S 1 S 2 =, S 1 S 3 =, S 2 S 3 = And: S 1 S 2 S 3 = S So: S 1, S 2, S 3 are a partition of S.

The Algebra of Sets Using the above definitions, we can show that: Intersection Commutativity S T = T S Union Commutativity S T = T S Intersection Associativity S (T U) = (S T ) U Union Associativity S (T U) = (S T ) U Intersection Distributivity S (T U) = (S T ) (S U) Union Distributivity S (T U) = (S T ) (S U).

Key Notation Set a, b, c Set Size S Set Membership x S, x / S Empty Set, Set Equality T = S Subset T S Strict Subset T S Set Filtering x F (x) Universal Set Ω Set Compliment S c Set Union T S Set Intersection T S