1 9/23/2015 MATH 224 – Discrete Mathematics Basic finite probability is given by the formula, where |E| is the number of events and |S| is the total number.

Slides:



Advertisements
Similar presentations
Discrete Probability Rosen 5.1.
Advertisements

CompSci 102 Discrete Math for Computer Science March 29, 2012 Prof. Rodger Lecture adapted from Bruce Maggs/Lecture developed at Carnegie Mellon, primarily.
4/16/2015 MATH 224 – Discrete Mathematics Counting Basic counting techniques are important in many aspects of computer science. For example, consider the.
Great Theoretical Ideas in Computer Science.
Mathematics in Today's World
Probability – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Probability Reading: Kolman, Section 3.4.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 15 Chances, Probabilities, and Odds 15.1Random Experiments and.
TIMES 3 Technological Integrations in Mathematical Environments and Studies Jacksonville State University 2010.
Probability theory and average-case complexity. Review of probability theory.
22C:19 Discrete Structures Discrete Probability Fall 2014 Sukumar Ghosh.
Lec 18 Nov 12 Probability – definitions and simulation.
1 Discrete Structures & Algorithms Discrete Probability.
1 Discrete Math CS 280 Prof. Bart Selman Module Probability --- Part a) Introduction.
Probability theory Much inspired by the presentation of Kren and Samuelsson.
Midterm Review Solutions Math 210G-04, Spring 2011.
1 Probability Parts of life are uncertain. Using notions of probability provide a way to deal with the uncertainty.
1 Section 5.1 Discrete Probability. 2 LaPlace’s definition of probability Number of successful outcomes divided by the number of possible outcomes This.
Great Theoretical Ideas in Computer Science.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 14 From Randomness to Probability.
Review of Probability and Binomial Distributions
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.
Counting Principles (Permutations and Combinations )
1 9/8/2015 MATH 224 – Discrete Mathematics Basic finite probability is given by the formula, where |E| is the number of events and |S| is the total number.
Chapter 1 Probability and Distributions Math 6203 Fall 2009 Instructor: Ayona Chatterjee.
CSCE 2100: Computing Foundations 1 Probability Theory Tamara Schneider Summer 2013.
1 Introduction to Discrete Probability Rosen, Section 6.1 Based on slides by Aaron Bloomfield and …
Lecture Discrete Probability. 5.1 Probabilities Important in study of complexity of algorithms. Modeling the uncertain world: information, data.
Sullivan – Fundamentals of Statistics – 2 nd Edition – Chapter 11 Section 1 – Slide 1 of 34 Chapter 11 Section 1 Random Variables.
Discrete Mathematical Structures (Counting Principles)
Expected values and variances. Formula For a discrete random variable X and pmf p(X): Expected value: Variance: Alternate formula for variance:  Var(x)=E(X^2)-[E(X)]^2.
Section 7.1. Section Summary Finite Probability Probabilities of Complements and Unions of Events Probabilistic Reasoning.
College Algebra Sixth Edition James Stewart Lothar Redlin Saleem Watson.
Chapter 7 With Question/Answer Animations. Section 7.1.
Homework Homework due now. Reading: relations
Copyright © 2010 Pearson Education, Inc. Chapter 14 From Randomness to Probability.
What is Probability?. The Mathematics of Chance How many possible outcomes are there with a single 6-sided die? What are your “chances” of rolling a 6?
1.4 Equally Likely Outcomes. The outcomes of a sample space are called equally likely if all of them have the same chance of occurrence. It is very difficult.
CS433 Modeling and Simulation Lecture 03 – Part 01 Probability Review 1 Dr. Anis Koubâa Al-Imam Mohammad Ibn Saud University
22C:19 Discrete Structures Discrete Probability Spring 2014 Sukumar Ghosh.
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics Seventh Edition By Brase and Brase Prepared by: Mistah Flynn.
From Randomness to Probability Chapter 14. Dealing with Random Phenomena A random phenomenon is a situation in which we know what outcomes could happen,
12/7/20151 Probability Introduction to Probability, Conditional Probability and Random Variables.
Discrete Distributions. Random Variable - A numerical variable whose value depends on the outcome of a chance experiment.
ICS 253: Discrete Structures I Discrete Probability King Fahd University of Petroleum & Minerals Information & Computer Science Department.
Inference: Probabilities and Distributions Feb , 2012.
Basic Concepts of Probability
Introduction Lecture 25 Section 6.1 Wed, Mar 22, 2006.
Probability Theory Modelling random phenomena. Permutations the number of ways that you can order n objects is: n! = n(n-1)(n-2)(n-3)…(3)(2)(1) Definition:
Chapter 5 Discrete Random Variables Probability Distributions
Great Theoretical Ideas in Computer Science for Some.
Section 7.1. Probability of an Event We first define these key terms: An experiment is a procedure that yields one of a given set of possible outcomes.
Copyright © 2010 Pearson Education, Inc. Chapter 14 From Randomness to Probability.
Expected Value and Fair Game S-MD.6 (+) Use probabilities to make fair decisions (e.g., drawing by lots, using a random number generator). S-MD.7 (+) Analyze.
Basic Probability. Introduction Our formal study of probability will base on Set theory Axiomatic approach (base for all our further studies of probability)
Copyright © 2009 Pearson Education, Inc. Chapter 11 Understanding Randomness.
Great Theoretical Ideas in Computer Science.
1 What Is Probability?. 2 To discuss probability, let’s begin by defining some terms. An experiment is a process, such as tossing a coin, that gives definite.
Introduction to Discrete Probability
Introduction to Discrete Probability
ICS 253: Discrete Structures I
What Is Probability?.
Chapter 6: Discrete Probability
Introduction to Discrete Mathematics
BASIC PROBABILITY Probability – the chance of something (an event) happening # of successful outcomes # of possible outcomes All probability answers must.
Discrete Probability Chapter 7 With Question/Answer Animations
Now it’s time to look at…
Random Variables Binomial Distributions
Presentation transcript:

1 9/23/2015 MATH 224 – Discrete Mathematics Basic finite probability is given by the formula, where |E| is the number of events and |S| is the total number of possible outcomes. This definition assumes that each possibility is equally likely. In other words each possibility has probability 1/|S|. Basics of Discrete Probability So for example, if we want the probability of four coin tosses where the first two times the coin comes up heads followed by two tails, this set E has only one element. The set of all possible 4-coin tosses is 2 4. So the probability of two heads followed by two tails is 1/16. On Page 394 of the textbook, there is a container with four blue balls and five red balls. What is the probability of choosing a blue ball when selecting one ball? The answer is 4/9.

2 9/23/2015 MATH 224 – Discrete Mathematics Now consider what happens when rolling a fair die. The probability of rolling any of the values between one and six is 1/6. When rolling two dice the probabilities are: P(2) = P(12) = 1/36 since there is only one way to get a 2 (two ones). P(3) = P(11) = 2/36 = 1/18 since there are two ways of getting a 3 (2 and 1 or 1 and a 2) P(4) = P(10) = 3/36 = 1/12 What are the three ways of getting four? P(5) = P(9) = 4/36 = 1/9 P(6) = P(8) = 5/36 P(7) = 6/36 = 1/6 Why is the denominator 36? The sum of theses probabilities is 2(1/36)+2(2/36)+2(3/36)+2(4/36)+2(5/36)+(6/36) = 36/36 =1. Do the set of all probabilities always sum to 1? Probability

3 9/23/2015 MATH 224 – Discrete Mathematics Often counting the number of different events can be difficult or tricky. Consider Example 6 from our text. First determine the number of different 5-card hands in poker in order to get the denominator |S|. Since there are 52 cards, |S| = C(52,5) = 2,598,960. What is the probability of a full house, i.e. 3 of a kind plus 2 of a kind? For three cards of a kind we have C(4,3) and C(4,2) for two of a kind once the kind of card is fixed. Where does the 4 come from in these combinations? Since there are 13 different kinds of cards we have P(13,2) for choosing the kinds. P(13,2) = = 146 permutations. Here we have permutations because which kind has three and which has two matters, e.g., two aces and three kings is different than two kings and three aces. Then the total number of ways of getting a full house is P(13,2)C(4,3)C(4,2) = What is the probability of getting a full house? (3744/2,598,960 ≈ ) If you want to determine the probability of, for example either a full house or at least two aces, you cannot just add the probabilities together since it is possible for both to be true at the same time. You have to count the number of events in E 1 U E 2, the union. Probability

4 9/23/2015 MATH 224 – Discrete Mathematics The Monty Hall example from the book is often confusing. Here is a common statement of this puzzle. There are three doors, two with nothing behind them and one with a prize. You choose one and then the game show host opens one of the doors you did not choose and nothing is behind it. Should you change doors? Initially you have a 1/3 chance of choosing the prize. After Monty opens a door, how do your odds change? If he always selects a door with no prize behind it, that is equivalent to saying divide the doors into two sets. One with two doors and one with just one door. Of the two door set, he shows one of the doors, always choosing one without a prize. The two door set has a 2/3 probability of having the prize and you know which one not to choose. You should change to the other unopened door. What if he chooses a door at random? Does this have an effect on the probabilities? Probability – Monty Hall Example

5 9/23/2015 MATH 224 – Discrete Mathematics Here are a few examples of the use of probability in computer science. In problems involving computer simulations of real events, probabilities are involved to specify events. For example, creating climate models. In analyzing the results of computer simulations, statistics and probability are used. In analyzing traffic and other parameters such packet sizes for computer networks, probability comes into play. Probability theory is essential in artificial intelligence. Often it is not possible to determine the best treatment, e.g., in diagnosing a medical problem. But probabilities can be used to help make a good choice of treatments. Probabilities are used to design algorithms. Some algorithms such as quick-sort sometimes use a probabilistic selection of an element. A data structure such as skip lists use probabilistic choices. Probability and statistics are used to analyze the average running time of algorithms. Applications of Probability to Computer Science

6 9/23/2015 MATH 224 – Discrete Mathematics First moment or Expected Value The first moment, often called expected value, is used to find the average running time for an algorithm. (This also referred to as the waited average.) The expected value is defined as, where X is the value at s. So for example, to find the average running time for an algorithm we would have where A is the average time, T(s) is the time for input s, and p(s) the probability of input s. As an example, let us consider insertion sort. We would need to know the probabilities that the array is sorted to begin with, that exactly x elements are in the wrong position, etc. Doing this precisely is difficult, but often since we only care about Big-O or Theta, it is often possible to make simplifying assumptions.

7 9/23/2015 MATH 224 – Discrete Mathematics Second Moment or Variance The second moment, often called the variance, indicates how much individual events vary from the average, and is given by The square root of the variance is called the standard deviation, which is a very important concept in statistics and for probabilities that fit the mathematical definition of a Normal distributions. For example, with this type of distribution just over 68% of the events will have values between ± 1 standard deviation from the mean. As an example, an instructor might decide that any grade within one standard deviation of the average is a C.