Lecture 13 Elements of Probability CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.

Slides:



Advertisements
Similar presentations
Theoretical Probability
Advertisements

Theoretical Probability
Beginning Probability
Lecture 18 Dr. MUMTAZ AHMED MTH 161: Introduction To Statistics.
MAT 103 Probability In this chapter, we will study the topic of probability which is used in many different areas including insurance, science, marketing,
Lecture Discrete Probability. 5.2 Recap Sample space: space of all possible outcomes. Event: subset of of S. p(s) : probability of element s of.
Probability COMPOUND EVENTS. If two sets or events have no elements in common, they are called disjoint or mutually exclusive. Examples of mutually exclusive.
CHAPTER 12: General Rules of Probability
Lecture 15 Functions CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Lecture 11 Mathematical Induction CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Copyright © 2006 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
1. Probability of an Outcome 2. Experimental Probability 3. Fundamental Properties of Probabilities 4. Addition Principle 5. Inclusion-Exclusion Principle.
Copyright © 2006 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
Advanced LABVIEW EE 2303.
MAT 103 Probability In this chapter, we will study the topic of probability which is used in many different areas including insurance, science, marketing,
Copyright © Cengage Learning. All rights reserved. 8.6 Probability.
1 1 PRESENTED BY E. G. GASCON Introduction to Probability Section 7.3, 7.4, 7.5.
1. Experiment, Trial and Outcome 2. Sample Space 3. Event 4. Special Events 5. Events As Sets 6. Mutually Exclusive Events 1.
Section 1.2 Suppose A 1, A 2,..., A k, are k events. The k events are called mutually exclusive if The k events are called mutually exhaustive if A i 
Basic Probability. Theoretical versus Empirical Theoretical probabilities are those that can be determined purely on formal or logical grounds, independent.
Chapter 6 Section 2 Experiments, Outcomes, and Events.
Bell Work: Factor x – 6x – Answer: (x – 8)(x + 2)
Special Topics. Definitions Random (not haphazard): A phenomenon or trial is said to be random if individual outcomes are uncertain but the long-term.
Chapter 9 Introducing Probability - A bridge from Descriptive Statistics to Inferential Statistics.
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProbability.
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProbability.
16/4/1435 h Sunday Lecture 2 Sample Space and Events Jan
Simple Mathematical Facts for Lecture 1. Conditional Probabilities Given an event has occurred, the conditional probability that another event occurs.
From Randomness to Probability
Lecture PowerPoint Slides Basic Practice of Statistics 7 th Edition.
Copyright © Cengage Learning. All rights reserved. 8.6 Probability.
Advanced Precalculus Advanced Precalculus Notes 12.3 Probability.
Probability Prof. Richard Beigel Math C067 September 27, 2006.
Chapter 12 Probability © 2008 Pearson Addison-Wesley. All rights reserved.
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.
Basic Concepts of Probability
SECTION 11-2 Events Involving “Not” and “Or” Slide
Chapter 7: Probability Lesson 1: Basic Principles of Probability Mrs. Parziale.
Warm Up: Quick Write Which is more likely, flipping exactly 3 heads in 10 coin flips or flipping exactly 4 heads in 5 coin flips ?
Experiments, Outcomes and Events. Experiment Describes a process that generates a set of data – Tossing of a Coin – Launching of a Missile and observing.
Chapter 7 Sets & Probability Section 7.3 Introduction to Probability.
When could two experimental probabilities be equal? Question of the day.
Section Constructing Models of Random Behavior Objectives: 1.Build probability models by observing data 2.Build probability models by constructing.
Spring 2016 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University.
Math 1320 Chapter 7: Probability 7.3 Probability and Probability Models.
AP STATISTICS LESSON AP STATISTICS LESSON PROBABILITY MODELS.
Math 1320 Chapter 7: Probability 7.1 Sample Spaces and Events.
Introduction to probability (3) Definition: - The probability of an event A is the sum of the weights of all sample point in A therefore If A1,A2,…..,An.
Discrete Math Section 16.1 Find the sample space and probability of multiple events The probability of an event is determined empirically if it is based.
Concepts of Probability Introduction to Probability & Statistics Concepts of Probability.
Probability Models Section 6.2.
Chapter 3 Probability Slides for Optional Sections
Subtopic : 10.1 Events and Probability
PROBABILITY AND PROBABILITY RULES
EXAMPLE 1 Find a sample space
CSCI 5832 Natural Language Processing
Probability Trees By Anthony Stones.
Lecture 22 Section 7.1 – Wed, Oct 20, 2004
Probability.
PROBABILITY Lesson 10.3A.
Chapter 4 Section 1 Probability Theory.
Digital Lesson Probability.
Section 11.7 Probability.
I flip a coin two times. What is the sample space?
e is the possible out comes for a model
Lecture 2 Basic Concepts on Probability (Section 0.2)
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.
Sets, Combinatorics, Probability, and Number Theory
Presentation transcript:

Lecture 13 Elements of Probability CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine

CSCI 1900 Lecture Lecture Introduction Reading –Rosen – Section 6.2, 6.3 Sample spaces Events Probability Pigeonhole principle

CSCI 1900 Lecture Sample Space Sample Space - the set containing all possible outcomes of an experiment Examples: –Experiment: Flip a coin, record Heads or Tails. Sample Space: O={H, T} –Experiment: Flip a coin twice Sample Space: O={HH, HT, TH, TT}

CSCI 1900 Lecture Sample Space (cont) Examples (cont) –Experiment: Roll two dices, each die has 1-6 spots O={(1,1), (1,2), (1,3), (1,4), (1,5), (1,6), (2,1), (2,2), (2,3), (2,4), (2,5), (2,6), (3,1), (3,2), (3,3), (3,4), (3,5), (3,6), (4,1), (4,2), (4,3), (4,4), (4,5), (4,6), (5,1), (5,2), (5,3), (5,4), (5,5), (5,6), (6,1), (6,2), (6,3), (6,4), (6,5), (6,6) } The number of ways of rolling a particular total may be found on a diagonal (e.g. ways to roll a total of 6 is highlighted)

CSCI 1900 Lecture Event A statement about a particular outcome of an experiment is an event –A subset of the sample space The total of the spots on two die is 6 –E={ (5,1), (4,2), (3,3), (2,4), (1,5)}

CSCI 1900 Lecture Events (cont) Example: Consider the experiment of tossing a die and recording the outcome of the top face –O={1, 2, 3, 4, 5, 6} (The universal set) –Let E be the event that the number of spots is even E={2, 4, 6} –Let F be the event the number of spots is prime F={2, 3, 5} –E  F ={2, 3, 4, 5, 6} ( Event: number of spots is even or prime) –E  F ={2} (Event: the number of spots is even and prime) –E = {1, 3, 5} (Event: the number of spots is not even)

CSCI 1900 Lecture Events (cont) Recall : –If E  F= Ø, then E and F are disjoint –Also called mutually exclusive –This means at most one can occur at a time

CSCI 1900 Lecture Probability Each event can be assigned a number, p(E) called the probability of event E If all outcomes are equally likely to occur, then p(E) = |E| / |O| Example. O={H,T} for flipping a coin –Let E={ Event: coin turned up heads}={H} –|E| = 1 |O| = 2 –p(E)=|E| / |O|=1/2

CSCI 1900 Lecture Probability (cont) Example. Rolling two fair dice –For O see slide 4 –Let E= {Event: number of spots add to 6} –E = { (1,5), (2,4), (3,3), (4,2), (5,1) } –|E| = 5 –p(E)=|E| / |O| –p(E)= 5/36

CSCI 1900 Lecture Probability (cont) Sometimes outcomes are not equally likely –Consider the following “unfair” die –Let O = {1, 2, 3, 4, 5, 6} p 1 = 1/12 p 2 = 1/12 p 3 = 1/3 p 4 = 1/6 p 5 = 1/4 p 6 = 1/12 –p (even number) = 1/12 + 1/6 + 1/12 = 4/12 = 1/3 –p(odd number) = 1/12 + 1/3 + 1/4 = 8/12 = 2/3

CSCI 1900 Lecture Properties of Probabilities Property 1: 0 <= p(E) <= 1 Property 2: p(O)=1 and p(Ø)=0 Property 3: p(E  F)=p(E)+p(F) - p(E  F) If E and F are disjoint, then p(E  F)=p(E)+p(F) Property 4: The probability that an event E will not happen 1 - p(E) Property 5: If E and F are independent, then p(E  F) = p(E)*p(F)

CSCI 1900 Lecture Example A box contains six red balls and four green balls. Four balls are selected at random. What is the probability that two of the selected balls are red and the other two green? Choose two red from 6 Choose two green from 4 |O|= 10 C 4 = 210 |E|= 6 C 2 * 4 C 2 = 15*6 =90 P(E)= 90/210 = 3/7

CSCI 1900 Lecture Example A few poker hands –Total possible hands = 52 C 5 = 2,598,960 Royal Flush  4 possible hands Odds are 4 in 2,598,960  1 in 649,740 Straight Flush  40 possible hands Odds are 40 in 2,598,960  1 in 64,974 Four Aces  48 possible hands Odds are 48 in 2,598,960  1 in 54,145

CSCI 1900 Lecture Example (cont) What is the probability that a hand of five cards from a standard deck contains four cards of one kind? Pick the type of kind (2,3,…A) 13 C 1 = 13 Pick the four of that kind 4 C 4 = 1 Pick 1 of the 48 remaining 48 C 1 = 48 |E| = 13*1*48, the number of 5 card hands having 4 of a kind P(E) = |E|/|U| = 624/ 2,598,960 .00024

CSCI 1900 Lecture Pigeonhole Principle Reading –Rosen – Section 6.2 If you put n Pigeons in k Holes and n > k then at least one hole will have more than one pigeon in it –Everybody has to be somewhere

CSCI 1900 Lecture Example If there are 8 people in a room at least two of them must have been born on the same day of the week … –The people are the pigeons –The days of the week are the pigeonholes

CSCI 1900 Lecture Using the Pigeonhole Principle If we are putting 27 files on 26 flash drives, at least one drive will have 2 or more files –Identify the pigeons and the pigeonholes The drives are the pigeonholes The files are the pigeons –We have 26 holes and 27 pigeons –Therefore by the pigeonhole principle at least one disk must have more than 1 file on it

CSCI 1900 Lecture Extended Pigeonhole Principle If you put 2K + I People on K Starships then at least one Starship will have more than two people on it You can extend this with 3K + I, 4K + I and so on This is just an application of the Remainder Theorem

CSCI 1900 Lecture Using the Extended Principle If we have 433 problems are to be done by 20 students show that at least one student must do more than 21 problems –Identify the pigeons and the pigeonholes The students are the pigeonholes The problems are the pigeons –Apply the Remainder Theorem 433 = 21 * –Therefore K = 21 I=13

CSCI 1900 Lecture Key Concepts Summary Sample spaces Events Probability Pigeonhole principle