Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProbability.

Slides:



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

Chapter 12 Probability © 2008 Pearson Addison-Wesley. All rights reserved.
Copyright © 2006 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
Section 5.1 and 5.2 Probability
Week 21 Basic Set Theory A set is a collection of elements. Use capital letters, A, B, C to denotes sets and small letters a 1, a 2, … to denote the elements.
Chapter 4 Probability and Probability Distributions
Sets: Reminder Set S – sample space - includes all possible outcomes
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.
Thinking Mathematically
Probability Distributions
LING 438/538 Computational Linguistics Sandiway Fong Lecture 17: 10/24.
Set, Combinatorics, Probability & Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Set,
Section 4.3 The Addition Rules for Probability
Section 5.2 The Addition Rule and Complements
Special Topics. Definitions Random (not haphazard): A phenomenon or trial is said to be random if individual outcomes are uncertain but the long-term.
Probability Chapter 3. § 3.1 Basic Concepts of Probability.
Chapter 9 Introducing Probability - A bridge from Descriptive Statistics to Inferential Statistics.
Statistics Chapter 3: Probability.
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProbability.
Copyright © 2000 by the McGraw-Hill Companies, Inc. Barnett/Ziegler/Byleen College Algebra: A Graphing Approach Chapter Six Sequences, Series, and Probability.
Chapter 8 Probability Section R Review. 2 Barnett/Ziegler/Byleen Finite Mathematics 12e Review for Chapter 8 Important Terms, Symbols, Concepts  8.1.
Chapter 1:Independent and Dependent Events
Probability Probability is the measure of how likely an event is. An event is one or more outcomes of an experiment. An outcome is the result of a single.
CHAPTER 12: General Rules of Probability Lecture PowerPoint Slides The Basic Practice of Statistics 6 th Edition Moore / Notz / Fligner.
Chapter 2: Probability · An Experiment: is some procedure (or process) that we do and it results in an outcome. A random experiment: is an experiment we.
1 CHAPTERS 14 AND 15 (Intro Stats – 3 edition) PROBABILITY, PROBABILITY RULES, AND CONDITIONAL PROBABILITY.
Copyright © Cengage Learning. All rights reserved. 8.6 Probability.
Slide 5-1 Chapter 5 Probability and Random Variables.
Class 2 Probability Theory Discrete Random Variables Expectations.
PROBABILITY, PROBABILITY RULES, AND CONDITIONAL PROBABILITY
5.1 Randomness  The Language of Probability  Thinking about Randomness  The Uses of Probability 1.
Chapter 12 Probability © 2008 Pearson Addison-Wesley. All rights reserved.
Dr. Fowler AFM Unit 7-8 Probability. Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall.
Sixth lecture Concepts of Probabilities. Random Experiment Can be repeated (theoretically) an infinite number of times Has a well-defined set of possible.
SECTION 11-2 Events Involving “Not” and “Or” Slide
Measuring chance Probabilities FETP India. Competency to be gained from this lecture Apply probabilities to field epidemiology.
Chapter 12 Section 1 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
Probability. What is probability? Probability discusses the likelihood or chance of something happening. For instance, -- the probability of it raining.
+ Chapter 5 Overview 5.1 Introducing Probability 5.2 Combining Events 5.3 Conditional Probability 5.4 Counting Methods 1.
Copyright © 2011 Pearson Education, Inc. Probability: Living with the Odds.
Unit 4 Section 3.1.
Copyright © 2009 Pearson Education, Inc. Chapter 12 Section 2 - Slide 1 P-2 Probability Theoretical Probability.
Chapter 2: Probability. Section 2.1: Basic Ideas Definition: An experiment is a process that results in an outcome that cannot be predicted in advance.
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 ?
Chapter 7 Sets & Probability Section 7.3 Introduction to Probability.
Basic Probability. Introduction Our formal study of probability will base on Set theory Axiomatic approach (base for all our further studies of probability)
Sample Space and Events Section 2.1 An experiment: is any action, process or phenomenon whose outcome is subject to uncertainty. An outcome: is a result.
Probability. Definitions Probability: The chance of an event occurring. Probability Experiments: A process that leads to well- defined results called.
6.2 – Probability Models It is often important and necessary to provide a mathematical description or model for randomness.
Chapter5 Statistical and probabilistic concepts, Implementation to Insurance Subjects of the Unit 1.Counting 2.Probability concepts 3.Random Variables.
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.
Conditional Probability 423/what-is-your-favorite-data-analysis-cartoon 1.
Probability and Probability Distributions. Probability Concepts Probability: –We now assume the population parameters are known and calculate the chances.
Adding Probabilities 12-5
Samples spaces are _______________
Chapter 6: Discrete Probability
Chapter 7: Counting Principles
Chapter 4 Probability Concepts
PROBABILITY AND PROBABILITY RULES
Set, Combinatorics, Probability & Number Theory
Probability Models Section 6.2.
Basic Probability Lecture 9.
Mr. Reider AP Stat November 18, 2010
Adapted from Walch Education
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.
Chapter 11 Probability.
Sets, Combinatorics, Probability, and Number Theory
Presentation transcript:

Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProbability

Section 3.5Probability1 Introduction to Finite Probability If some action can produce Y different outcomes and X of those Y outcomes are of special interest, we may want to know how likely it is that one of the X outcomes will occur. For example, what are the chances of: Getting “heads” when a coin is tossed? The probability of getting heads is “one out of two,” or 1/2. Getting a 3 with a roll of a die? A six-sided die has six possible results. The 3 is exactly one of these possibilities, so the probability of rolling a 3 is 1/6. Drawing either the ace of clubs or the queen of diamonds from a standard deck of cards? A standard card deck contains 52 cards, two of which are successful results, so the probability is 2/52 or 1/26.

Section 3.5Probability2 Introduction to Finite Probability The set of all possible outcomes of an action is called the sample space S of the action. Any subset of the sample space is called an event. If S is a finite set of equally likely outcomes, then the probability P(E) of event E is defined to be: For example, the probability of flipping a coin twice and having both come up as heads is: Probability involves finding the size of sets, either of the sample space or of the event of interest. We may need to use the addition or multiplication principles, the principle of inclusion and exclusion, or the formula for the number of combinations of r things from n objects.

Section 3.5Probability3 Introduction to Finite Probability Using the definition of P(E) as seen in the previous slide, we can make some observations for any events E 1 and E 2 from a sample space S of equally likely outcomes:

Section 3.5Probability4 Probability Distributions A way to look at problems where not all outcomes are equally likely is to assign a probability distribution to the sample space. Consider each distinct outcome in the original sample space as an event and assign it a probability. If there are k different outcomes in the sample space and each outcome x i is assigned a probability p(x i ), the following rules apply: 1. 0  p(x i )  1 Because any probability value must fall within this range. 2. The union of all of these k disjoint outcomes is the sample space S, and the probability of S is 1.

Section 3.5Probability5 Conditional Probability Given events E 1 and E 2, the conditional probability of E 2 given E 1, P(E 2  E 1 ), is: For example, in a drug study of a group of patients, 17% responded positively to compound A, 34% responded positively to compound B, and 8% responded positively to both. The probability that a patient responded positively to compound B given that he or she responded positively to A is: P(B|A) = P(A ∩ B) / P(A) = 0.08 / 0.17  0.47

Section 3.5Probability6 Conditional Probability If P(E 2  E 1 ) = P(E 2 ), then E 2 is just as likely to happen whether E 1 happens or not. In this case, E 1 and E 2 are said to be independent events. Then P(E 1  E 2 ) = P(E 1 ) * P(E 2 ) This can be extended to any finite number of independent events and can also be used to test whether events are independent.

Section 3.5Probability7 Expected Value If the values in the sample space are not numerical, we may find a function X: S  R that associates a numerical value with each element in the sample space. Such a function is called a random variable. Given a sample space S to which a random variable X and a probability distribution p have been assigned, the expected value, or weighted average, of the random variable is:

Section 3.5Probability8 Average Case Analysis of Algorithms Expected value may help give an average case analysis of an algorithm, i.e., tell the expected “average” amount of work performed by an algorithm. Let the sample space S be the set of all possible inputs to the algorithm. We assume that S is finite. Let the random variable X assign to each member of S the number of work units required to execute the algorithm on that input. And let p be a probability distribution on S, The expected number of work units is given as: