0 0 Correction: Problem 18 Alice and Bob have 2n+1 FAIR coins, each with probability of a head equal to 1/2.

Slides:



Advertisements
Similar presentations
Combinations A combination is a grouping of things ORDER DOES NOT MATTER.
Advertisements

Quantitative Methods Session – Permutation & Combination Pranjoy Arup Das.
© Project Maths Development Team
6.830 Lecture 10 Query Optimization 10/6/2014. Selinger Optimizer Algorithm algorithm: compute optimal way to generate every sub-join: size 1, size 2,...
6.830 Lecture 11 Query Optimization & Automatic Database Design 10/8/2014.
Binomial Distribution & Bayes’ Theorem. Questions What is a probability? What is the probability of obtaining 2 heads in 4 coin tosses? What is the probability.
L14_Properties of a Parallelogram
Quit Permutations Combinations Pascal’s triangle Binomial Theorem.
1 Counting Rules. 2 The probability of a specific event or outcome is a fraction. In the numerator we have the number of ways the specific event can occur.
1 Counting Rules. 2 The probability of a specific event or outcome is a fraction. In the numerator we have the number of ways the specific event can occur.
Chapter 5 Section 5 Permutations and Combinations.
Class notes for ISE 201 San Jose State University
Properties of parallelogram
Combinations Combinations are very similar to permutations with one key difference: Order does not matter.
Permutation A permutation is an arrangement in which order matters. A B C differs from B C A.
Unit 7: Probability Lesson 2 Tree Diagrams, fundamental counting principle, sample space lists and tables, permutation, combination, factorials.
The Erik Jonsson School of Engineering and Computer Science © Duncan L. MacFarlane Probability and Stochastic Processes Yates and Goodman Chapter 1 Summary.
Elementary Counting Techniques & Combinatorics Martina Litschmannová K210.
1 Algorithms CSCI 235, Fall 2012 Lecture 9 Probability.
Elementary Counting Techniques & Combinatorics
Math 2 Honors - Santowski
P ERMUTATIONS AND C OMBINATIONS Homework: Permutation and Combinations WS.
Page 53, Chapter Summary: Concepts and Procedures After studying this CHAPTER, you should be able to Recognize points, lines, segments, rays, angles,
Lesson 1.9 Probability Objective: Solve probability problems.
Topics to be covered: Produce all combinations and permutations of sets. Calculate the number of combinations and permutations of sets of m items taken.
Number of Elements in a Finite Set. Notation : The number of the elements of the set A will be denoted by n(A) Examples (1): Let: Let: A = {a,b,c,d} B.
Sara Beberman Olivia DeFlumeri Olivia Huynh Amanda Okaka.
Elementary Combinatorics Combinatorics  Deals with enumeration (counting) techniques and related algebra.  Basis of counting XSet |X|No. of elements.
ELEC 303, Koushanfar, Fall’09 ELEC 303 – Random Signals Lecture 4 – Counting Farinaz Koushanfar ECE Dept., Rice University Sept 3, 2009.
CSE 221: Algorithms and Data Structures Lecture #10 Counting: Easy as 1, 2, C(3,1) Steve Wolfman 2009W1 1.
The Binomial Theorem Lecture 29 Section 6.7 Mon, Apr 3, 2006.
Two way tables and tree diagrams
Ch. 6: Permutations!.
Counting CSC-2259 Discrete Structures Konstantin Busch - LSU1.
Arrangements, Permutations & Combinations
Probability. Basic Concepts of Probability What you should learn: How to identify the sample space of a probability experiment and to identify simple.
Zero elements. One element.Two elements.Three elements. { a } { b } { c } { a, b } { b, c } { a, c } { a, b, c } 8 subsets.
Discrete Mathematics Lecture # 25 Permutation & Combination.
PERMUTATIONS and COMBINATIONS
Counting Techniques Tree Diagram Multiplication Rule Permutations Combinations.
Discrete Math Section 16.3 Use the Binomial Probability theorem to find the probability of a given outcome on repeated independent trials. Flip a coin.
Algebra 1 Predicting Patterns & Examining Experiments Unit 7: You Should Probably Change Section 2: Making Arrangements.
March 11, 2005 Recursion (Implementation) Satish Dethe
Binomial Probability Theorem In a rainy season, there is 60% chance that it will rain on a particular day. What is the probability that there will exactly.
Lecture 34 Section 6.7 Wed, Mar 28, 2007
Terminologies in Probability
Permutations and Combinations
9 Deductive Geometry 9.1 Introduction to Deductive Reasoning and Proofs 9.2 Deductive Proofs Related to Lines and Triangles 9.3 Deductive Proofs Related.
11.3 Notes Combinations.
Elementary Counting Techniques & Combinatorics
CSC-2259 Discrete Structures
Counting Principals, Permutations, and Combinations
Counting, Permutations, & Combinations
Counting Techniuqes.
Calculating Probability, Combinations and Permutations
Warm Up Problem of the Day Lesson Presentation Lesson Quizzes.
Pascal's Triangle This is the start of Pascal's triangle. It follows a pattern, do you know.
Binomial Expansion 2 L.O. All pupils can follow where the binomial expansion comes from All pupils understand binomial notation All pupils can use the.
Terminologies in Probability
Permutations and Combinations
Terminologies in Probability
104- Ch. 11 part 1; 260- Ch. 5 pt. 2 master_prob_pc.pptx
Terminologies in Probability
Lecture 29 Section 6.7 Thu, Mar 3, 2005
6.1 Counting Principles and Permutations
©G Dear 2009 – Not to be sold/Free to use
Permutations and Combinations
Pascal’s Triangle By Marisa Eastwood.
6.2 Probability Models.
The Shapley-Shubik Power Index
Presentation transcript:

0 0 Correction: Problem 18 Alice and Bob have 2n+1 FAIR coins, each with probability of a head equal to 1/2

1 1 Review Conditional probability of A given B, P(B)>0 –P(A|B)=P(A∩B)/P(B) –Define a new probability law –Conditional independence P(A∩C|B)=P(A|B) P(C|B) Total probability theorem Bayes’ rule

Counting

3 3 Counting To calculate the number of outcomes Examples –To toss a fair coin 10 times, what’s the probability that the first toss was a head? –Fair coin 1/2 –To toss a fair coin 10 times, what’s the probability that there was only 1 head? –1/10? –What about the probability that there are 5 heads? –1/2?

4 4 The Counting Principle An r stage process –(a) n 1 possible results at the first stage –(b) For every possible result of the first stage, there are n 2 possible results at the second stage –(c) n i ….. –Total number of possible results : n 1 n 2 … n r (proof by induction)

5 5 The Counting Principle Example1 : fair coin toss 3 times –2X2X2 = 8 possible outcomes TTT TTH THT THH HTT HTH HHT HHH Example2 : number of subsets of an n-element set S –S={1,2} Subsets : Ф, {1}, {2}, {1,2}, 4=2 2 subsets –S={1,2,3} Subsets : Ф, {1}, {2}, {1,2}, {3}, {1,3}, {2,3}, {1,2,3}, 8=2 3 subsets –The choice of a subset as a sequential process of choosing one element at a time. n stages, binary choice at each stage –2X2X2 … X2 =2 n

6 6 Permutations Selection of k objects out of n objects (k<=n), order matters –Sequences: 123≠ 321 –K-permutation: the number of possible sequence –Example: number of 3-letter words using a,b,c or d at most once –4X3X2 =24 3-permutation out of 4 objects

7 7 Permutations (continued) Selection of k objects out of n objects (k<=n), order matters –k-stages, n 1 =n, n i+1 = n i -1, … n k = n-k+1 Counting principle: n(n-1)(n-2)…(n-k+1) –number of permutations of n objects out of n objects (k=n) n! (0! = 1)

8 8 Combinations Selection of k objects out of n objects (k<=n), NO ordering –Sets: {1,2,3} = {3,2,1} –k-combinations: the number of possible different K-element subsets –Example: number of 3-element subsets of {a,b,c,d}. {a,b,c} {a,b,d} {a,c,d} {b,c,d} : 4 3-element subsets 3-permutations of {a,b,c,d} = abc, acb, bac, bca, cab, cba, abd, adb, bad,bda, dab, dba, acd, adc, cad, cda, dac, dca bcd, bdc, cbd, cdb, dbc, dcb k-combinations = k-permutations – Order –Each set (k-combination) is counted k! times in the k-permutation.

9 9 Combinations (continued) Example1: 2-combinations of a 4-object set {a,b,c,d}. 4 choose 2 = 4!/(2!2!) =6 {a,b} {a,c} {a,d} {b,c} {b,d}, {c,d} : 6 2-element subsets Example2: k-head sequences of n coin tosses –n=5, k=2 –HHTTT HTHTT HTTHT HTTTH THHTT –THTHT THTTH TTHHT TTHTH TTTHH –HHTTT  {1,2} HTHTT  {1,3}…. TTTHH  {4,5} –Number of k-head sequences = number of k-combinations from {1,2,…n}

10 Combinations (continued) Properties of n_choose_k

11 Expansion of (a+b) n

12 Combinations (continued) Binomial formula –Let p =1/2

13 Partitions Partitions of n objects into r groups, with the ith group having n i objects, sum of n i is equal to n. –Order does not matter within a group, the groups are labeled –Example : partition S={1,2,3,4,5} into 3 groups n 1 = 2, n 2 =2, n 3 =1 {1,2}{3,4}{5} = {2,1}{4,3}{5} {1,2}{3,4}{5} ≠ {3,4}{1,2}{5} Total number of choices (group by group)

14 Partitions (continued) Example : partitions of 4 objects into 3 groups, –4!/(2!1!1!)=12 –{ab}{c}{d} {ab}{d}{c} –{ac}{b}{d} {ac}{d}{b} –{ad}{b}{c} {ad}{c}{b} –{bc}{a}{d} {bc}{d}{a} –{bd}{a}{c} {bd}{c}{a} –{cd}{a}{b} {cd}{b}{a}

15 Summary k-permutation of n objects n!/(n-k)! –Order matters : 123 ≠ 321 k-combinations of n objects –Order does not matter : {1,2,3} = {3,2,1} Partitions of n objects into r groups, with the ith group having n i objects –Order does not matter within a group, the groups are labeled

16 Binomial formula Toss an unfair coin (p-head, (1-p)-tail) n times –The outcome is a n-sequence : THHTHT…H –Ω={HHH,HHT,HTH,HTT,THH,THT,TTH,TTT} for n=3 –Group the sequences according to the number of H

17 Pascal’s Triangle