How selections can be counted with Pascal's Triangle.

Slides:



Advertisements
Similar presentations
A binomial is a polynomial with two terms such as x + a. Often we need to raise a binomial to a power. In this section we'll explore a way to do just.
Advertisements

4/16/2015 MATH 224 – Discrete Mathematics Counting Basic counting techniques are important in many aspects of computer science. For example, consider the.
Paradox Lost: The Evils of Coins and Dice George Gilbert October 6, 2010.
1 Copyright M.R.K. Krishna Rao 2003 Chapter 5. Discrete Probability Everything you have learned about counting constitutes the basis for computing the.
Basics of Probability. Trial or Experiment Experiment - a process that results in a particular outcome or “event”. Simple event (or sample point), E i.
Quiz 4  Probability Distributions. 1. In families of three children what is the mean number of girls (assuming P(girl)=0.500)? a) 1 b) 1.5 c) 2 d) 2.5.
Sequences and Series. Quick Review.
Copyright © Cengage Learning. All rights reserved. CHAPTER 7 Uncertainty: Data and Chance.
7 Further Topics in Algebra © 2008 Pearson Addison-Wesley. All rights reserved Sections 7.4–7.7.
Counting. Techniques for counting Rule 1 Suppose we carry out have a sets A 1, A 2, A 3, … and that any pair are mutually exclusive (i.e. A 1  A 2 =
Topics to be covered: Produce all combinations and permutations of sets. Calculate the number of combinations and permutations of sets of m items taken.
Discrete Mathematical Structures (Counting Principles)
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.
Fall 2002CMSC Discrete Structures1 One, two, three, we’re… Counting.
March 10, 2015Applied Discrete Mathematics Week 6: Counting 1 Permutations and Combinations How many different sets of 3 people can we pick from a group.
March 10,  Counting  Fundamental Counting principle  Factorials  Permutations and combinations  Probability  Complementary events  Compound.
MATH 110 Sec 13-4 Lecture: Expected Value The value of items along with the probabilities that they will be stolen over the next year are shown. What can.
Counting Techniques and Some Other Math Team Strategies Susan Schwartz Wildstrom Walt Whitman High School Bethesda, MD NCTM National Meeting April 6, 2001.
Name the United States Coins Count the Pennies 10 ¢
5-1 Random Variables and Probability Distributions The Binomial Distribution.
Set Theory Chapter 3. Chapter 3 Set Theory 3.1 Sets and Subsets A well-defined collection of objects (the set of outstanding people, outstanding is very.
Binomial Probabilities IBHL, Y2 - Santowski. (A) Coin Tossing Example Take 2 coins and toss each Make a list to predict the possible outcomes Determine.
Copyright © Ed2Net Learning Inc.1. 2 Warm Up Tell whether each event is dependent or independent 1. Selecting a name from a Chicago telephone book and.
 Counting  Fundamental Counting principle  Factorials  Permutations and combinations  Probability  Complementary events  Compound events  Independent.
2/24/20161 One, two, three, we’re… Counting. 2/24/20162 Basic Counting Principles Counting problems are of the following kind: “How many different 8-letter.
Section 6.4. Powers of Binomial Expressions Definition: A binomial expression is the sum of two terms, such as x + y. (More generally, these terms can.
Binomial Coefficients and Identities
3/7/20161 Now it’s time to look at… Discrete Probability.
AP STATISTICS LESSON AP STATISTICS LESSON PROBABILITY MODELS.
Discrete Math by R.S. Chang, Dept. CSIE, NDHU1 Set Theory Two's company, three is none. Chapter 3.
Arrangements and Selections (and how they may be counted)
The Binomial and Normal distributions. Mathematical models Different applications of probability theory can often be recognized as having the same basic.
Conditional probabilities and independence of events.
Now it’s time to look at…
“Teach A Level Maths” Statistics 1
The Pigeonhole Principle
Chapter 7: Counting Principles
Lecture 10 To define the Binomial Theorem
Algebra 2/Trig Name: ________________________
CSNB 143 Discrete Mathematical Structures
Problem Solving and Critical Thinking
Chapter 10 Counting Methods.
Random Variables/ Probability Models
COCS DISCRETE STRUCTURES
“Teach A Level Maths” Statistics 1
Problem Solving and Critical Thinking
HUDM4122 Probability and Statistical Inference
Chapter 5 Sampling Distributions
Elementary Statistics
CS100: Discrete structures
Daniela Stan Raicu School of CTI, DePaul University
4 Probability Lesson 4.8 Combinations and Probability.
Now it’s time to look at…
Name the United States Coins
Chapter 5 Sampling Distributions
The Binomial Probability Theorem.
“Teach A Level Maths” Statistics 1
Chapter 10 Counting Methods 2012 Pearson Education, Inc.
Counting Techniques and Some Other Math Team Strategies
LESSON 10–5 The Binomial Theorem.
Daniela Stan Raicu School of CTI, DePaul University
Chapter 10 Counting Methods.
Now it’s time to look at…
Applied Discrete Mathematics Week 12: Discrete Probability
Pascal’s Arithmetic Triangle
Now it’s time to look at…
Starter – Day November 12 Content Objective: We will use Pascal’s Triangle to expand polynomial expressions faster than calculating them.
Two's company, three is none.
Concepts of Computation
pencil, red pen, highlighter, GP notebook, calculator
Presentation transcript:

How selections can be counted with Pascal's Triangle

Last time we discussed this counting principle, then we used it to answer several questions about the number of different possible ways in which we could perform a succession of tasks (e.g., make a license plate, make an ascii code, make a computer password, etc.) Today let's see how we can apply this FCP to answer a much more challenging question Fundamental Counting Principle

MegaMillions Lottery Ticket Five different integers in range One extra integer independently chosen in range What are our chances of winning tonight's $77-million jackpot?

We will need to calculate the total number of different possible MegaMillions tickets Making such a ticket consists of two tasks: -- selecting a 5-element subset of the 56-element set of integers { 1, 2, 3,..., 56 } -- selecting a 1-element subset of the 46-element set of integers { 1, 2, 3,..., 46 } So, by the Fundamental Counting Principle, the number of different tickets will be the product of the numbers of ways of performing these two independent tasks It's easy to see that the second task can be done in exactly 46 different ways, but not so easy to see how many ways to select five numbers from { 1, 2, 3,..., 56 } Here we can take advantage of some wise advice about problem-solving from the reknown author of a “best-seller” among mathematics texts, Prof. George Polya of Stanford University, author of HOW TO SOLVE IT (Princeton University Press, 1945)

Whenever you have a problem that you don't know how to solve, there is always a simpler problem that you don't know how to solve, so find that problem, and work on it first. -- George Polya ( )

Let's examine the possible outcomes when a coin is tossed four times – or better yet, let's speed things up by tossing four coins all at once It's easier to think about the different outcomes which can occur if we assume our four coins are easily distinguishable from one another So let's say we have a penny, a nickel, a dime, and a quarter Coin-tossing again

Applying the FCP _______ _______ penny nickel dime quarter For each coin there are two possibilities (HEADS or TAILS) Fundamental Counting Principle So, by the Fundamental Counting Principle, the number of different possible outcomes will be 2 x 2 x 2 x 2 = 2 4 = 16

The sixteen sample-points TTTTTHTTHTTT HHTT TTTHTHTHHTTH HHTH TTHTTHHTHTHT HHHT TTHHTHHHHTHH HHHH ___________________________________ Sequence-key: (Penny, Nickel, Dime, Quarter)

Grouping similar outcomes Let's create separate 'pigeonholes' for outcomes that contain equal numbers of HEADS _____ _____ _____ _____ _____ none one two three four Can we foresee how many of the 16 outcomes will go into each of these pigeonholes?

The 'pigeonhole' results HHTT HTHT HTTTHTTH HHHT THTTTHTT HHTH TTHTTTHT HTHH TTTTTTTHTTTHTHHH HHHH

A 'shorthand' notation If we only interested in pigeonholing those outcomes that have a given number of HEADS, regardless of which specific coins show HEADS and which show TAILS, then we can use a shorthand notation borrowed from algebra H 0 T 4 H 1 T 3 H 2 T 2 H 3 T 1 H 4 T

4 th power of x+y It is hard not to notice that the pattern we see is a familiar one from high school mathematics (x + y) 4 = x 4 + 4x 3 y + 6x 2 y 2 + 4xy 3 + y 4

(x + y) n = Σ b(n;k) x k y n-k The Binomial Theorem k=0 n b(n;k) The binomial-coefficient symbol b(n;k) represents the number of ways of selecting k things from a set that contains n things

b(56;5) = ? So we need the value of this binomial coefficient in order to have a count of the 5-member subsets of the set of integers { 1, 2, 3,..., 56 } Let's reduce this to a pair of simpler problems: b(56;5) = b(55;4) + b(55;5) Reasoning: The 5-member subsets of { 1, 2, 3,..., 56 } can be split into two groups: those subsets which omit 56 and those subsets which include 56

Recursion... Similarly we can reduce each of the simpler problems to a pair of simpler ones still b(55;4) = b(54;3) + b(54,4) and b(55;5) = b(54;4) + b(54;5) Continuing in this way we can reduce these to pairs of simpler and simpler problems

Pascal's Triangle Blaise Pascal arranged the binomial coefficients in a now-famous triangular pattern b(0;0) b(1;0) b(1;1) b(2;0) b(2,1) b(2;2) b(3;0) b(3;1) b(3;2) b(3;3) b(4;0) b(4;1) b(4;2) b(4;3) b(4;4) b(5;0) b(5;1) b(5;2) b(5;3) b(5,4) b(5,5)...

Python function binomial def binomial( int n, int k ): if ( n < 0 ) or ( k < 0 ) or ( n < k ): return 0; else: if ( n == 0 ) or ( k == 0 ) or ( n == k ): return 1; else: binomialbinomial return binomial( n-1, k-1) + binomial( n-1, k )

A MegaMillions “win”? Total number of tickets will be the product b(56;5) * b(46;1) which a short Python program can compute... ______________________________________ binomialbinomial s = binomial( 56, 5 ) + binomial( 46, 1 ) print “The number of possible tickets is”, s p = 1.0 / 1.0*s print “so probability of winning is %1.10f “ % p

Weekly Quiz #1