1 Intro to Probability Supplementary Notes Prepared by Raymond Wong Presented by Raymond Wong.

Slides:



Advertisements
Similar presentations
Preview Warm Up California Standards Lesson Presentation.
Advertisements

Logic & Critical Reasoning
Copyright © 2006 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
Mathematics in Today's World
IB Math Studies – Topic 3. IB Course Guide Description.
Probability Sample Space Diagrams.
Chapter 3 Section 3.3 Basic Rules of Probability.
CPSC 322, Lecture 21Slide 1 Bottom Up: Soundness and Completeness Computer Science cpsc322, Lecture 21 (Textbook Chpt 5.2) February, 27, 2009.
Gates and Circuits. Three Main Gates  AND  OR  NOT.
1 Intro to Logic Supplementary Notes Prepared by Raymond Wong Presented by Raymond Wong.
1 Independence Supplementary Notes Prepared by Raymond Wong Presented by Raymond Wong.
1 Inference Supplementary Notes Prepared by Raymond Wong Presented by Raymond Wong.
CPSC 322, Lecture 21Slide 1 Bottom Up: Soundness and Completeness Computer Science cpsc322, Lecture 21 (Textbook Chpt 5.2) March, 5, 2010.
1 Random Variables Supplementary Notes Prepared by Raymond Wong Presented by Raymond Wong.
Conditional Probability and Independence Section 3.6.
Chapter 4: Probability (Cont.) In this handout: Venn diagrams Event relations Laws of probability Conditional probability Independence of events.
Propositional Logic 7/16/ Propositional Logic A proposition is a statement that is either true or false. We give propositions names such as p, q,
Probability Rules l Rule 1. The probability of any event (A) is a number between zero and one. 0 < P(A) < 1.
AP STATISTICS.   Theoretical: true mathematical probability  Empirical: the relative frequency with which an event occurs in a given experiment  Subjective:
5.2A Probability Rules! AP Statistics.
Truth Tables for Negation, Conjunction, and Disjunction.
Chapter 9 Introducing Probability - A bridge from Descriptive Statistics to Inferential Statistics.
Validity: Long and short truth tables Sign In! Week 10! Homework Due Review: MP,MT,CA Validity: Long truth tables Short truth table method Evaluations!
Course Outline Book: Discrete Mathematics by K. P. Bogart Topics:
Holt CA Course Sample Spaces Warm Up Warm Up California Standards California Standards Lesson Presentation Lesson PresentationPreview.
Simple Mathematical Facts for Lecture 1. Conditional Probabilities Given an event has occurred, the conditional probability that another event occurs.
1 Chapters 6-8. UNIT 2 VOCABULARY – Chap 6 2 ( 2) THE NOTATION “P” REPRESENTS THE TRUE PROBABILITY OF AN EVENT HAPPENING, ACCORDING TO AN IDEAL DISTRIBUTION.
From Randomness to Probability
Discrete Mathematics Lecture1 Miss.Amal Alshardy.
Basic Probability Rules Let’s Keep it Simple. A Probability Event An event is one possible outcome or a set of outcomes of a random phenomenon. For example,
Holt CA Course Sample Spaces Warm Up Warm Up California Standards California Standards Lesson Presentation Lesson PresentationPreview.
Conditional Statements
Holt CA Course Sample Spaces Warm Up Warm Up California Standards Lesson Presentation Preview.
5.1 Randomness  The Language of Probability  Thinking about Randomness  The Uses of Probability 1.
How do I show that two compound propositions are logically equivalent?
Probability Rules. We start with four basic rules of probability. They are simple, but you must know them. Rule 1: All probabilities are numbers between.
13.3 Conditional Probability and Intersections of Events Understand how to compute conditional probability. Calculate the probability of the intersection.
Conditional Probability and Intersection of Events Section 13.3.
Probability Basics Section Starter Roll two dice and record the sum shown. Repeat until you have done 20 rolls. Write a list of all the possible.
Sixth lecture Concepts of Probabilities. Random Experiment Can be repeated (theoretically) an infinite number of times Has a well-defined set of possible.
If a quadrilateral is a square, then it has 4 right angles. What is p? A quad is a square What is the conclusion? It has 4 right angles What is the converse?
Simplifying Boolean Expressions. Boolean Operators (T/F) xyx AND y FFF FTF TFF TTT xyx OR y FFF FTT TFT TTT xyx XOR y FFF FTT TFT TTF xNOT x FT TF.
Probability The Study of Randomness The language of probability Random is a description of a kind of order that emerges only in the long run even though.
The Study of Randomness
Joan Ridgway. If a proposition is not indeterminate then it is either true (T) or false (F). True and False are complementary events. For two propositions,
11.7 Continued Probability. Independent Events ► Two events are independent if the occurrence of one has no effect on the occurrence of the other ► Probability.
4-3 Addition Rule This section presents the addition rule as a device for finding probabilities that can be expressed as P(A or B), the probability that.
AP Statistics Section 6.2 B Probability Rules. If A represents some event, then the probability of event A happening can be represented as _____.
Probability The Study of Randomness The language of probability Random is a description of a kind of order that emerges only in the long run even though.
Conditional Statements Lecture 2 Section 1.2 Fri, Jan 20, 2006.
Probability The Study of Randomness The language of probability Random is a description of a kind of order that emerges only in the long run even though.
Reviews of probability Question 1: Suppose we have a “ABCDE” litters how many words we can compose from them with 4 litters without repetition.
Probability What is the probability of rolling “snake eyes” in one roll? What is the probability of rolling “yahtzee” in one roll?
Section 3.2: Truth Tables for Negation, Conjunction, and Disjunction
CHAPTER 5 Probability: What Are the Chances?
Sec. 4-5: Applying Ratios to Probability
Chapter 6 6.1/6.2 Probability Probability is the branch of mathematics that describes the pattern of chance outcomes.
The Study of Randomness
BASIC PROBABILITY Probability – the chance of something (an event) happening # of successful outcomes # of possible outcomes All probability answers must.
Probability Models Section 6.2.
The Study of Randomness
Lesson 10.1 Sample Spaces and Probability
Section 6.2 Probability Models
Probability.
Chapter 4 Section 1 Probability Theory.
I flip a coin two times. What is the sample space?
Probability Rules Rule 1.
6.2 Probability Models.
Theoretical Probability
A random experiment gives rise to possible outcomes, but any particular outcome is uncertain – “random”. For example, tossing a coin… we know H or T will.
Presentation transcript:

1 Intro to Probability Supplementary Notes Prepared by Raymond Wong Presented by Raymond Wong

2 e.g.1 (Page 10) Suppose that there is only one question in the final exam. What is the sample space of all possible patterns of correct answers? Sample space = { T, F } where T corresponds to the answer being true and F corresponds to the answer being false

3 e.g.2 (Page 10) Suppose that there are three questions in the final exam. What is the sample space of all possible patterns of correct answers? Sample space = {TTT, TTF, TFT, FTT, TFF, FTF, FFT, FFF} TTT TTF TFT FTT TFF FTF FFT FFF Sample Space

4 e.g.3 (Page 11) Suppose that I want to throw one 6-sided dice. What is the sample space of all possible outcomes of throwing this dice? Sample space = {,,,,, }

5 e.g.4 (Page 12) Suppose that I want to throw one two- sided coin (One side is a head H and the other side is a tail T) What is the sample space of all possible outcomes of throwing the coin? Sample space = { H, T }

6 e.g.5 (Page 13) Suppose that there are three questions in the final exam. TTT TTF TFT FTT TFF FTF FFT FFF Sample Space What is the event E that the first two answers are true? TTT TTF Event

7 e.g.6 (Page 15) Suppose that there are three questions in the final exam. TTT TTF TFT FTT TFF FTF FFT FFF Sample Space What is the event E that the first two answers are true? TTT TTF Event 1/8 P(E) = 1/8 + 1/8 = 2/8 = 1/4

8 e.g.7 (Page 15) Suppose that there are three questions in the final exam. TTT TTF TFT FTT TFF FTF FFT FFF Sample Space What is the event E that the first two answers are true? TTT TTF Event 3/16 1/16 3/161/16 3/16 P(E) = 3/16 + 3/16 = 6/16 = 3/8

9 e.g.8 (Page 16) Suppose that there are three questions in the final exam. TTT TTF TFT FTT TFF FTF FFT FFF Sample Space What is the event E that the first two answers are true? TTT TTF Event 1/8 P(E) = 1/8 + 1/8 = 2/8 = 1/4 What is the event V that the first two answers are false? FFT FFF Event 1/8 P(V) = 1/8 + 1/8 = 2/8 = 1/4 These two sets are disjoint. P(E U V) = 1/8 + 1/8 + 1/8 + 1/8 = 4/8 = ½ Note that P(E) + P(V) = ¼ + ¼ = ½ Thus, P(E U V) = P(E) + P(V)

10 e.g.9 (Page 24) Suppose that there are three questions in the final exam. TTT TTF TFT FTT TFF FTF FFT FFF Sample Space What is the event E that the first two answers are true? TTT TTF Event What is the complement of event E? TFT FTT TFF FTF FFT FFF Complement of Event E

11 e.g.10 (Page 27) Consider that we hash a list of 6 keys into a hash table with 8 locations (or slots) (namely, slot 0, slot 1, slot 2, slot 3, …., slot 7)? e.g. we have 6 keys: 3, 12, 15, 8, 11, 5 3 Slot 3 Slot 0 Slot 1 Slot 2 Slot 3 Slot 4 Slot 5 Slot 6 Slot Slot Slot Slot Slot Slot 5 5 3, 12, 15, 8, 11, 5 Outcome: (3, 4, 7, 0, 3, 5) (l 1, l 2, l 3, l 4, l 5, l 6 ) Each l i is a number between 0 and 7 (or between 1 and 8) How many possible 6-tuples are there? 8686 A 6-tuple

12 e.g.11 (Page 29) There are 20 locations/slots in the hash table. Suppose that we are given 3 keys. We can represent the slot no. of these 3 keys by a 3-tuple, (l 1, l 2, l 3 ) We want that these 3 keys have no collisions. That is, these 3 keys are hashed to different locations/slots. How many possible 3-tuples without collisions are there? We know that l 1, l 2 and l 3 are all not equal.

… choices 1 2 … … l1l1 l2l2 l3l3 19 choices18 choices Total no. of 3-tuples without collisions = 20 x 19 x 18 = 20 3

14 e.g.12 (Page 30) There are 20 locations/slots in the hash table. Suppose that we are given 3 keys. We can represent the slot no. of these 3 keys by a 3-tuple, (l 1, l 2, l 3 ) Let A be the event that all 3 keys have no collisions. What is the probability that A occurs? Total no. of 3-tuples without collisions = 20 x 19 x 18 Total no. of 3-tuples = 20 x 20 x 20 Probability that A occurs = (20 x 19 x 18)/(20 x 20 x 20) = 0.855

15 e.g.13 (Page 30) Slot 0 Slot 1 Slot 2 Slot 3 Slot 4 Slot 5 … Slot Slot 0 Slot 1 Slot 2 Slot 3 Slot 4 Slot 5 … Slot Case (i)Case (ii)

16 e.g.14 (Page 33) Given p n = show that p n+1 < p n 20 n p n+1 = 20 n+1 20 x 19 x 18 x … x (20 – (n-1)) x (20 – n) 20 n x 20 = 20 x 19 x 18 x … x (20 – (n-1)) 20 n = 20 (20 – n) x 20 n = 20 (20 – n) x = p n x 20 (20 – n) < p n = p n x (1 – ) 20 n This is because < 1 1 – 20 n

17 e.g.15 (Page 35) Suppose that there are three questions in the final exam. TTT TTF TFT FTT TFF FTF FFT FFF Sample Space Let E be the event that the first two answers are true. TTT TTF Event P(E) = 2/8 = 1/4

18 e.g.16 (Page 36) Probability Rule 1: P(A)  0 for all A  S Rule 2: P(S) = 1 Rule 3: P(A U B) = P(A) + P(B) for any two disjoint events A and B