1 Counting. 2 Situations where counting techniques are used  You toss a pair of dice in a casino game. You win if the numbers showing face up have a.

Slides:



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

Copyright © Cengage Learning. All rights reserved. 7 Probability.
Copyright © 2006 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
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.
Mathematics.
Activity 1 Activity 2 Index Student Activity 1: Tossing a coin Student Activity 2: Tossing two coins.
Introduction Probability is a number from 0 to 1 inclusive or a percent from 0% to 100% inclusive that indicates how likely an event is to occur. In the.
Solve for x. 28 = 4(2x + 1) = 8x = 8x + 8 – 8 – 8 20 = 8x = x Distribute Combine Subtract Divide.
Copyright © Cengage Learning. All rights reserved. 8.6 Probability.
Chapter 5 Probability Distributions. E.g., X is the number of heads obtained in 3 tosses of a coin. [X=0] = {TTT} [X=1] = {HTT, THT, TTH} [X=2] = {HHT,
Learning Objectives for Section 8.1 Probability
Section 1 Sample Spaces, Events, and Probability
Basic Probability Sets, Subsets Sample Space Event, E Probability of an Event, P(E) How Probabilities are assigned Properties of Probabilities.
Math 308 Discrete Mathematics Discrete Mathematics deals with “Separated” or discrete sets of objects (rather than continuous sets) Processes with a sequence.
Discrete Structures Chapter 4 Counting and Probability Nurul Amelina Nasharuddin Multimedia Department.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 15 Chances, Probabilities, and Odds 15.1Random Experiments and Sample.
1 More Counting Techniques Possibility trees Multiplication rule Permutations Combinations.
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 Objectives When you have competed it you should * know what a ‘sample space’ is * know the difference between an ‘outcome’ and an ‘event’.
Probability – Models for random phenomena
Probability. An experiment is any process that allows researchers to obtain observations and which leads to a single outcome which cannot be predicted.
Copyright © Cengage Learning. All rights reserved. CHAPTER 9 COUNTING AND PROBABILITY.
Chapter 3 Section 3.2 Basic Terms of Probability.
Principles of Statistics Chapter 2 Elements of Probability.
Counting and Probability. Counting Elements of Sets Theorem. The Inclusion/Exclusion Rule for Two or Three Sets If A, B, and C are finite sets, then N(A.
S.CP.A.1 Probability Basics. Probability - The chance of an event occurring Experiment: Outcome: Sample Space: Event: The process of measuring or observing.
The Basics of Probability Theory MATH 102 Contemporary Math S. Rook.
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.
Copyright © Cengage Learning. All rights reserved. 8.6 Probability.
1 Melikyan/DM/Fall09 Discrete Mathematics Ch. 6 Counting and Probability Instructor: Hayk Melikyan Today we will review sections 6.1,
PROBABILITY, PROBABILITY RULES, AND CONDITIONAL PROBABILITY
Probability: Terminology  Sample Space  Set of all possible outcomes of a random experiment.  Random Experiment  Any activity resulting in uncertain.
Introduction  Probability Theory was first used to solve problems in gambling  Blaise Pascal ( ) - laid the foundation for the Theory of Probability.
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
Main Menu Main Menu (Click on the topics below) Combinatorics Introduction Equally likely Probability Formula Counting elements of a list Counting elements.
Chapter 7: Probability Lesson 1: Basic Principles of Probability Mrs. Parziale.
Chapter 4: Probability. Probability of an Event Definitions An experiment is the process of observing a phenomenon that has variation in its outcomes.
Math 145 September 18, Terminologies in Probability  Experiment – Any process that produces an outcome that cannot be predicted with certainty.
Probability and Simulation The Study of Randomness.
Probability 9.8. Copyright © by Houghton Mifflin Company, Inc. All rights reserved. 2 Definition: Experiment Any activity with an unpredictable results.
Experiments, Outcomes and Events. Experiment Describes a process that generates a set of data – Tossing of a Coin – Launching of a Missile and observing.
Spring 2016 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University.
Counting and Probability. Imagine tossing two coins and observing whether 0, 1, or 2 heads are obtained. Below are the results after 50 tosses Tossing.
Ch 11.7 Probability. Definitions Experiment – any happening for which the result is uncertain Experiment – any happening for which the result is uncertain.
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.
Terminologies in Probability
Chapter 4 Probability Concepts
Probability Imagine tossing two coins and observing whether 0, 1, or 2 heads are obtained. It would be natural to guess that each of these events occurs.
Subtopic : 10.1 Events and Probability
Sequences, Series, and Probability
What is Probability? Quantification of uncertainty.
Meaning of Probability
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.
Terminologies in Probability
Terminologies in Probability
Terminologies in Probability
Probability.
COUNTING AND PROBABILITY
Chapter 4 Section 1 Probability Theory.
Digital Lesson Probability.
Sets A set is simply any collection of objects
Terminologies in Probability
e is the possible out comes for a model
Math 145 June 26, 2007.
Terminologies in Probability
Math 145 February 12, 2008.
Terminologies in 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 Counting

2 Situations where counting techniques are used  You toss a pair of dice in a casino game. You win if the numbers showing face up have a sum of 7.  Question: What are your chances of winning the game?

3 Situations where counting techniques are used  To satisfy a certain degree requirement, you are supposed to take 3 courses from the following group of courses: CS300, CS301, CS302, CS304, CS305, CS306, CS307, CS308.  Question: In how many different ways the requirement can be satisfied?

4 Situations where counting techniques are used  There are 4 jobs that should be processed on the same machine. (Can’t be processed simultaneously). Here is an example of a possible schedule:  Question: What is the number of all possible schedules? Job 3Job 1Job 4Job 2

5 Situations where counting techniques are used  Consider the following nested loop: for i:=1 to 5 for j:=1 to 6 [ Statement 1 ; Statement 2. ] next j next i  Question: How many times the statements in the inner loop will be executed?

Counting and Probability  Suppose we toss two coins.  Question. What are the chances of getting 0, 1, 2 heads?  The set of all possible outcomes: S = {(H,H), (H,T), (T,H), (T,T)} Event of getting exactly one head corresponds to the subset {(H,T), (T,H)}. Thus, chances of getting exactly one head is 2 / 4 =.5 ( which is the same as 50% ).

7 Random Processes, Sample Space and Events  A process is called random if  a set of different outcomes are possible;  one of the outcomes is sure to occur;  but it is impossible to predict with certainty which outcome that will be.  A sample space is the set of all possible outcomes of a random process or experiment.  An event is a subset of a sample space.

8 Probability  If S is a finite sample space (in which all outcomes are equally likely), E is an event in S, then the probability of E is  Notation: For any finite set A, n(A) denotes the number of elements in A. Then

Example on Probability  You toss a pair of dice in a casino game. You win if the numbers showing face up have a sum of 7.  Question: What are your chances of winning the game?  Solution. Sample Space: S = { (1,1), (1,2), …, (6,6) } = { (i,j) |  i, j  1,…,6 } The event that the sum is 7: E = { (i,j) | i, j  1,…,6 and i+j=7 } = { (1,6), (2,5), (3,4), (4,3), (5,2), (6,1) } n(S) = 6 2 = 36, n(E) = 6. Thus, chances of winning = P(E) = 6/36 = 1/6.

Applying the dice example in Monopoly Game Your opponent’s token is in one of the squares His turn consists of rolling two dice and moving the token clockwise on the board the number of squares indicated by the sum of dice values When his token lands on a property that is owned by you, you collect rent It is more advantageous to have houses or hotels on your properties because rents are much higher than for unimproved properties You might build houses or hotels on your properties before your opponent rolls the dice Suppose you own most of the squares following (clockwise) your opponent’s token. In which square should you build houses or hotels?

11 Number of Elements in a List  If m and n are integers and m ≤ n, then there are n-m+1 integers from m to n inclusive.  Example: a) How many elements are there in the array A[12], A[13], …, A[75], A[76] ? b) What is the probability that a randomly chosen element of the array has a subscript which is divisible by 7 ?

12 Number of Elements in a List Example (cont.): Solution: a) 76 – = 65. b) Sample space: S = { A[i] | 12 ≤ i ≤ 76 }. Event that the index is divisible by 7: E = { A[i] | 12 ≤ i ≤ 76 and 7|i }. n(S) = 65 from part (a). 14=7∙2, 21=7∙3, …, 70=7∙10. Thus, n(E) = = 9. Hence the probability that the index is divisible by 7: P(E) = n(E) / n(S) = 9 / 65 ≈.14