Information Science 2

Similar documents
Probability- describes the pattern of chance outcomes

Econ 325: Introduction to Empirical Economics

Chapter 1 (Basic Probability)

Sample Space: Specify all possible outcomes from an experiment. Event: Specify a particular outcome or combination of outcomes.

Probability Theory and Applications

Chapter 6: Probability The Study of Randomness

Probability deals with modeling of random phenomena (phenomena or experiments whose outcomes may vary)

Recap. The study of randomness and uncertainty Chances, odds, likelihood, expected, probably, on average,... PROBABILITY INFERENTIAL STATISTICS

Preliminary Statistics Lecture 2: Probability Theory (Outline) prelimsoas.webs.com

Consider an experiment that may have different outcomes. We are interested to know what is the probability of a particular set of outcomes.

Mean, Median and Mode. Lecture 3 - Axioms of Probability. Where do they come from? Graphically. We start with a set of 21 numbers, Sta102 / BME102

Deep Learning for Computer Vision

2011 Pearson Education, Inc

Lecture 8: Probability

Week 2: Probability: Counting, Sets, and Bayes

STAT 430/510 Probability

INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR. NPTEL National Programme on Technology Enhanced Learning. Probability Methods in Civil Engineering

MA : Introductory Probability

Axioms of Probability. Set Theory. M. Bremer. Math Spring 2018

Example: Suppose we toss a quarter and observe whether it falls heads or tails, recording the result as 1 for heads and 0 for tails.

STAT Chapter 3: Probability

18.600: Lecture 3 What is probability?

STT When trying to evaluate the likelihood of random events we are using following wording.

Priors, Total Probability, Expectation, Multiple Trials

Lecture 1: Probability Fundamentals

Lecture 1 : The Mathematical Theory of Probability

Probability Review Lecturer: Ji Liu Thank Jerry Zhu for sharing his slides

Review of Basic Probability

Venn Diagrams; Probability Laws. Notes. Set Operations and Relations. Venn Diagram 2.1. Venn Diagrams; Probability Laws. Notes

Introduction to Probability

Lecture 3 - Axioms of Probability

Single Maths B: Introduction to Probability

Axioms of Probability

Review Basic Probability Concept

University of Technology, Building and Construction Engineering Department (Undergraduate study) PROBABILITY THEORY

1. (11.1) Compound Events 2. (11.2) Probability of a Compound Event 3. (11.3) Probability Viewed as Darts Tossed at a Dartboard

CMPSCI 240: Reasoning about Uncertainty

Chapter Six. Approaches to Assigning Probabilities

tossing a coin selecting a card from a deck measuring the commuting time on a particular morning

2. Probability. Chris Piech and Mehran Sahami. Oct 2017

Introduction to Probability

STAT509: Probability

Fundamentals of Probability CE 311S

LING 473: Day 3. START THE RECORDING Assignment 1 Review Probability. University of Washington Linguistics 473: Computational Linguistics Fundamentals

STP 226 ELEMENTARY STATISTICS

Chapter 4 Introduction to Probability. Probability

Basic Probability and Statistics

Review of Probabilities and Basic Statistics

An AI-ish view of Probability, Conditional Probability & Bayes Theorem

10/18/2017. An AI-ish view of Probability, Conditional Probability & Bayes Theorem. Making decisions under uncertainty.

ECE 340 Probabilistic Methods in Engineering M/W 3-4:15. Lecture 2: Random Experiments. Prof. Vince Calhoun

Cogs 14B: Introduction to Statistical Analysis

Mutually Exclusive Events

Probability and Independence Terri Bittner, Ph.D.

Lecture 2. Conditional Probability

The enumeration of all possible outcomes of an experiment is called the sample space, denoted S. E.g.: S={head, tail}

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

3.2 Probability Rules

Presentation on Theo e ry r y o f P r P o r bab a il i i l t i y

4 Lecture 4 Notes: Introduction to Probability. Probability Rules. Independence and Conditional Probability. Bayes Theorem. Risk and Odds Ratio

Topic 2 Probability. Basic probability Conditional probability and independence Bayes rule Basic reliability

Origins of Probability Theory

Basic notions of probability theory

Lecture notes for probability. Math 124

Statistics for Business and Economics

MATH 118 FINAL EXAM STUDY GUIDE

MATH 556: PROBABILITY PRIMER

7.1 What is it and why should we care?

Lecture Lecture 5

HW MATH425/525 Lecture Notes 1

4/17/2012. NE ( ) # of ways an event can happen NS ( ) # of events in the sample space

PERMUTATIONS, COMBINATIONS AND DISCRETE PROBABILITY

Math 3338: Probability (Fall 2006)

Lecture 4. Selected material from: Ch. 6 Probability

Intro to Stats Lecture 11

Lecture 1. Chapter 1. (Part I) Material Covered in This Lecture: Chapter 1, Chapter 2 ( ). 1. What is Statistics?

Statistical Theory 1

Basic notions of probability theory

Decision making and problem solving Lecture 1. Review of basic probability Monte Carlo simulation

Basic Probabilistic Reasoning SEG

Chapter 4 - Introduction to Probability

Independence. CS 109 Lecture 5 April 6th, 2016

Notes 1 Autumn Sample space, events. S is the number of elements in the set S.)

Compound Events. The event E = E c (the complement of E) is the event consisting of those outcomes which are not in E.

Introduction to Probability with MATLAB Spring 2014

Review of Probability, Expected Utility

Basic Probability. Robert Platt Northeastern University. Some images and slides are used from: 1. AIMA 2. Chris Amato

Math 1313 Experiments, Events and Sample Spaces

Probability Year 9. Terminology

3 PROBABILITY TOPICS

Probability the chance that an uncertain event will occur (always between 0 and 1)

STAT200 Elementary Statistics for applications

Business Statistics MBA Pokhara University

Artificial Intelligence Uncertainty

Probability 1 (MATH 11300) lecture slides

Introduction to Probability. Experiments. Sample Space. Event. Basic Requirements for Assigning Probabilities. Experiments

CDA6530: Performance Models of Computers and Networks. Chapter 1: Review of Practical Probability

Lecture 10: Probability distributions TUESDAY, FEBRUARY 19, 2019

The probability of an event is viewed as a numerical measure of the chance that the event will occur.

Statistics for Managers Using Microsoft Excel/SPSS Chapter 4 Basic Probability And Discrete Probability Distributions

Transcription:

Information Science 2 Probability Theory: An Overview Week 12 College of Information Science and Engineering Ritsumeikan University

Agenda Terms and concepts from Week 11 Basic concepts of probability Probability of events Simple event Combinations of events Independent and dependent events Bayes theorem (rule, law, ) Test 2

Recall terms from Week 11 Algorithm efficiency, Space and Time Algorithm complexity: Best case, Average case, Worst case Big O Frequency count Asymptotic notation Dominate (dominating, dominant) Constant time, Linear time, Quadratic time, n log n time, Exponential time 3

This lecture s objective Overview the fundamentals of Probability Theory After this lecture and study, you must be able to: Understand the concepts of random events and probability Understand and calculate the probabilities of independent and dependent events, using Bayes formula 4

l Uncertainty, variability, The notion of chance has existed for chance centuries: Scripts excavated from Egyptian tombs (pyramids) from around 2000BC (~4000 years ago) Card and board games were invented, at the latest, in the 14th century In a random experiment, we repeat the same action, process, or measurement, and get an outcome, which is uncertain (i.e. unpredictable) in advance. The outcome may vary at every trial, and before having the experiment finished, we can only talk about the chances (or probability) of obtaining a certain outcome l 5

Probability: Basic concepts To determine the chances of different outcomes, we: 1. Build an exhaustive list of all possible outcomes 2. Make sure the listed outcomes are mutually exclusive A list of outcomes which meet conditions (1) and (2) is called a sample space Sample Space: A sample space of a random experiment is a list of all the possible outcomes of the experiment. 1 6 The outcomes must be mutually 5 2 1 exclusive and exhaustive 5 2 4 3 3 4 Simple events: The individual outcomes are called simple (or elementary) events. Simple events cannot further be decomposed into constituent ( smaller ) outcomes 3 4 6 1 Event: An event is any collection of one or more simple events 6

Probability: Definition The probability of an event E i, which is a subset of a finite sample space S={E 1, E 2,, E n } of equally likely outcomes, is given by P(E i ) = (number of simple events in E i ) / (total number of simple events in S), such that: 1) 0 P(E i ) 1 for each i 2) Σ i P(E i ) = 1 where i = 1, 2,, n The probability P(A) of event A is, thus, the sum of the probabilities assigned to the simple events contained in A 7

The linked image cannot be displayed. The file may have been moved, renamed, or deleted. Verify that the link points to the correct file and location. Probability: Example For ten days, check the weather each day. Each time we check, it is a random experiment with a sample space W = {Sunny, Rainy, Snow} P(Sunny) =.6 P(Rainy) =.3 P(Snow) =.1 S S S S S S R R R w After 10 days, we got the following outcomes: 6 days were sunny, 3 days were rainy, and 1 time we got snow in that period of time The probability of precipitation (i.e. rain or snow), P(precipitation) = P(Rainy) + P(Snow) =.4 8

Probability: Combinations of events If A and B are two events, then 1) P(A B) = P(A occurs OR B occurs OR both) 2) P(A B) = P(A AND B both occur) 3) P(Ā) = P(NOT(A)) = P(A does not occur) 4) P(A B) = P(A occurs given that B has already occurred) The conditional probability of A given B The complement event of A 9

10 Combinations of events Suppose that we are observing the number of spots turning up when a sixsided dice is tossed. Let us then define the following events: A:The number observed is at most 2 B:The number observed is an even number C:The number observed is 4

Combinations of events: Simple events Question: Define the sample space for the random experiment with the 6-sided dice and assign probabilities to the simple events S Venn Diagram 1 4 2 Answer: S = {1, 2, 3, 4, 5, 6} Each event is equally likely to occur, i.e. the events are equiprobable: P(1) = P(2) = = P(6) = 1/6 6 3 5 11

12 Combinations of events Question: Find P(A) S 1 A 4 6 5 Venn Diagram 2 3 Answer: A = {1, 2} P(A) = P(1) + P(2) = 2/6

13 Combinations of events: Question: Find P(Ā ) Complement S 1 A Venn Diagram 2 Answer: Ā = {3, 4, 5, 6} P(Ā ) = P(3) + P(4) + P(5) + P(6) = 1 P(A) = 4/6 4 6 3 5

Combinations of events: Mutually exclusive Question: Are events A and C mutually exclusive? S 1 A Venn Diagram 2 4 C Answer: There is no overlap between the two regions, therefore events A and C are mutually exclusive they cannot occur simultaneously (i.e. at the same time) 6 3 5 14

Combinations of events: Question: Find P(A C) Union S 1 A C 4 6 5 Venn Diagram 2 Answer: P(A C) = P(1, 2, 4) = 1/6 + 1/6 + 1/6 = 3/6, or because A and C are mutually exclusive, P(A C) = P(A) + P(C) = 2/6 + 1/6 = 3/6 3 15

16 Combinations of events: Question: Find P(A B) Intersection S 1 A B 2 Venn Diagram 4 6 3 5 Answer: P(A B) = P(2) = 1/6

Combinations of events: Question: Find P(C B) Condition S 1 Venn Diagram 2 C 4 B 6 3 5 Answer: P(The number is 4 The number is even) = 1/3 17

18 Conditional probability P(C B) is read as the conditional probability that event C occurs, given that event B has occurred P(C B) gives the probability of an event when partial knowledge (e.g. B) about the outcome of an experiment is known S 1 Venn Diagram 2 P(C B) = P(C B) / P(B) C 4 B 6 3 5

Bayes theorem (rule, law) Bayes theorem: Let S={A 1, A 2,, A n }, 0 < P(A i ) 1, Σ i P(A i ) = 1 (that is the normalization condition), and let B be any event such that P(B) > 0. Then for i = 1, 2,, n: P(A i B) = j P(A i ) P(B A i ) P(A j ) P(B A j ) The proof of this theorem is straightforward (try to prove it yourself) 19

20 Interpretation of the theorem The posterior probability of A i given B. It represents the probability of event A i after B has been observed P(A i B) = j The prior probability of A i. It summarizes our beliefs about the probability of event A i before A i or B are observed P(A i ) P(B A i ) P(A j ) P(B A j ) The normalizing constant which is equal to P(B) when A j are independent of B The likelihood of event B given A i

Bayes theorem: Example What is the probability that a student did not study for an exam, given that this student took but did not pass this exam? Let us assume that 10% of the students do not study for the exam; we denote it as P(I) =.10 Let us then assume that 95% of the students who did not study for the exam usually do not pass the exam; we denote it as P (F I ) =.95 We will also assume that 5% of the students who did study for the exam still could not pass it; we denote it as P(F Ī ) =.05) So, we need to find P (I F): P( I P( I F) = F = 1) = P( I ) P( F I ) P( I )P( F I ) + P( I )P( F (0.1)(.95) (.1)(.95) + (.9)(.05) = I ).095.14 =.68 Based on the obtained result, think whether the fact that a student did not pass the exam can be used to conclude that the student had not prepared for this exam? 21

Independent and dependent events Two events A and B are said to be independent if P(A B) = P(A) or P(B A) = P(B). Otherwise, the events are dependent Note that independent events and mutually exclusive events are not the same! For example, consider: A and B are two mutually exclusive events, and A can take place, that is P(A) > 0. Can A and B be independent? The conditional probability that A occurs given that B has occurred is zero, that is P(A B) = 0, because P(A B) = 0. However, P(A) > 0, therefore A and B cannot be independent 22

Rules to remember Axiom 1: For any event E, 0 P(E) 1 Axiom 2: If a certain event X has probability 1 that means P(X) = 1 Axiom 3: If E 1 E 2 =, then P(E 1 E 2 ) = P(E 1 )+ P(E 2 ) Rule 1: P(E) = 1 P(Ē) Rule 2: P( ) = 0 Rule 3: If B A, then P(B) P(A) Rule 4: P(A B) = P(A) + P(B) P(A B) (addition rule) Rule 5: P(A B) = P(A B)P(B) (multiplication rule) Bayes rule (see slide 20) 23

24 Summary of this lecture After this class, you are expected to know the following: Probability simple event / event / sample space combinations of events complement union intersection conditional probability, Bayes theorem independent and dependent events Axioms and rules of probability

25 Homework Read these slides Do the self-preparation assignments Learn the English terms new for you

26 Next class Random variables and Monte Carlo simulation The concept of the probability distribution function Random variables Expectation and variance of a random variable Random number generators Monte Carlo methods and their applications

Test 04 27