ENGG 2040C: Probability Models and Applications Andrej Bogdanov Spring 2013 1. Combinatorial Analysis.

Slides:



Advertisements
Similar presentations
ENGG 2040C: Probability Models and Applications Andrej Bogdanov Spring Limit theorems.
Advertisements

Probability Three basic types of probability: Probability as counting
Dealing with Data Probability. What’s the probability? What’s the probability of the spinner stopping in the yellow section. (All the sections are equal.)
1 Some more probability Samuel Marateck © Another way of calculating card probabilities. What’s the probability of choosing a hand of cards with.
Mathematics.
Mathematics in Today's World
Probability Chapter 11 1.
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 © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 9- 1 Homework, Page 708 Count the number of ways that each procedure.
Introduction to Probability
1 Copyright M.R.K. Krishna Rao 2003 Chapter 5. Discrete Probability Everything you have learned about counting constitutes the basis for computing the.
Chapter 5 Section 6 Further Counting Problems. Two types of problems Two main types of problems in section 6: 1.Tossing a coin several times. 2.Draw several.
Counting Elements in a List How many integers in the list from 1 to 10? How many integers in the list from m to n? (assuming m
HW2 assignment. 1.A fair coin is tossed 5 times. Find a probability of obtaining (a) exactly 3 heads; (b) at most 3 heads Solution: Binomial distribution.
Confidential2 Warm Up 1.Tossing a quarter and a nickel HT, HT, TH, TT; 4 2. Choosing a letter from D,E, and F, and a number from 1 and 2 D1, D2, E1, E2,
Problem A-16 If Set X = {13,19,22,26,37} and Set Y = {8,19,37,44,103}, what is the intersection of sets x and y?
ENGG 2040C: Probability Models and Applications Andrej Bogdanov Spring Conditional probability part two.
ENGG 2040C: Probability Models and Applications Andrej Bogdanov Spring Conditional probability part two.
Confidential2 Warm Up 1.Tossing a quarter and a nickel 2. Choosing a letter from D,E, and F, and a number from 1 and 2 3.Choosing a tuna, ham, or egg.
Counting Principles (Permutations and Combinations )
Probability We love Section 9.3a and b!. Most people have an intuitive sense of probability, but that intuition is often incorrect… Let’s test your intuition.
NA387 Lecture 5: Combinatorics, Conditional Probability
ENGG 2040C: Probability Models and Applications Andrej Bogdanov Spring Axioms of Probability part one.
Principles of Statistics Chapter 2 Elements of Probability.
Copyright ©2006 Brooks/Cole A division of Thomson Learning, Inc. Introduction to Probability and Statistics Twelfth Edition Chapter 4 Probability and Probability.
ENGG 2040C: Probability Models and Applications Andrej Bogdanov Spring Random variables part two.
ENGG 2040C: Probability Models and Applications Andrej Bogdanov Spring Conditional probability.
PROBABILITY. Counting methods can be used to find the number of possible ways to choose objects with and without regard to order. The Fundamental Counting.
Probability True or False? Answers.
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.
ENGG 2040C: Probability Models and Applications Andrej Bogdanov Spring Random variables part one.
Chapter 9 Review. 1. Give the probability of each outcome.
ENGG 2040C: Probability Models and Applications Andrej Bogdanov Spring Axioms of Probability part two.
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.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.
3. Conditional probability
Probability Basic Concepts Start with the Monty Hall puzzle
ENGG 2040C: Probability Models and Applications Andrej Bogdanov Spring Axioms of Probability part one.
Probability Basics Section Starter Roll two dice and record the sum shown. Repeat until you have done 20 rolls. Write a list of all the possible.
Sixth lecture Concepts of Probabilities. Random Experiment Can be repeated (theoretically) an infinite number of times Has a well-defined set of possible.
Combinatorics Sep. 23, 2013.
Express as a fraction the probability that the outcome for rolling two number cubes has a sum less than 7. Probability COURSE 3 LESSON 6-9 Make a table.
Part I: Theory Ver Chapter 2: Axioms of Probability.
Andrej Bogdanov ENGG 2430A: Probability and Statistics for Engineers Spring Axioms of Probability.
Unit 4: Probability Day 2: Basic Probability. Standards and Benchmarks Select and apply counting procedures, such as the multiplication and addition.
Probability Experiments Probability experiment An action, or trial, through which specific results (counts, measurements, or responses) are obtained. Outcome.
Section 1.3 Each arrangement (ordering) of n distinguishable objects is called a permutation, and the number of permutations of n distinguishable objects.
Solutions to the HWPT problems. 1.How many distinguishable arrangements are there of the letters in the word PROBABILITY? Answer: 11!/(2! 2!) 2.A and.
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.
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 ?
Probability and Statistics for Engineers Huang Xin 2016 Jan 20.
FTCE 5-9 Test Prep Center for Teaching and Learning.
ENGG 2040C: Probability Models and Applications Andrej Bogdanov Spring Random variables part one.
3/7/20161 Now it’s time to look at… Discrete Probability.
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.
The Pigeonhole Principle
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.
Sequences, Series, and Probability
Minds on! If you choose an answer to this question at random, what is the probability you will be correct? A) 25% B) 50% C) 100% D) 25%
4.5 – Finding Probability Using Tree Diagrams and Outcome Tables
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.
Probability Probability underlies statistical inference - the drawing of conclusions from a sample of data. If samples are drawn at random, their characteristics.
Warm Up Which of the following are combinations?
Probability.
Basic Probability Rules
1. Probabilistic Models.
Probability of two events
e is the possible out comes for a model
Independence and Counting
Presentation transcript:

ENGG 2040C: Probability Models and Applications Andrej Bogdanov Spring Combinatorial Analysis

Alice Bob Range of signal Example

Alice Bob Some relay antennas may be defective Example

Alice Bob Example

Alice Bob Example No connection

Example Can Alice and Bob make a connection? Assumptions 1.Each antenna is defective half the time 2. Antenna defects are independent of one another

Solution 1.Connection can be made if no two consecutive antennas are defective 2.By our assumption there are 16 possible configurations, all equally likely Let’s call such configurations good

Solution Alice and Bob can communicate 8/16 = 50% of the time

Counting To solve a probability problem, we often need to count the number of possible outcomes. number of good antenna configurations number of all possible antenna configurations In example we saw, the solution was

Sample spaces A sample space is a set of possible outcomes. Examples outcomes = { H, T } outcomes = { 1, 2, 3, 4, 5, 6 }

Sample spaces Examples a pair of coins outcomes = { HH, HT, TH, TT } a pair of dice outcomes = { 11, 12, 13, 14, 15, 16, 21, 22, 23, 24, 25, 26, 31, 32, 33, 34, 35, 36, 41, 42, 43, 44, 45, 46, 51, 52, 53, 54, 55, 56, 61, 62, 63, 64, 65, 66 }

Basic principle of counting You perform two experiments. Experiment 1 has n possible outcomes. For each such outcome, experiment 2 has m possible outcomes. Then together there are nm possible outcomes. Examples Tossing two coins: 2×2 = 4 outcomes. Tossing two dice: 6×6 = 36 outcomes. Tossing a die and a coin: 6×2 = 12 outcomes.

Basic principle of counting You perform r experiments. Experiment 1 has n 1 possible outcomes. For each outcome of experiment 1, experiment 2 has n 2 possible outcomes. For each outcome of experiments 1 and 2, experiment 3 has n 3 possible outcomes Then together there are n 1 n 2 …n r outcomes …

Quiz You toss two dice. How many ways are there for the two dice to come out different? A 15 ways B 25 ways C 30 ways

Quiz 11, 12, 13, 14, 15, 16, 21, 22, 23, 24, 25, 26, 31, 32, 33, 34, 35, 36, 41, 42, 43, 44, 45, 46, 51, 52, 53, 54, 55, 56, 61, 62, 63, 64, 65, 66 Solution 1: Solution 2: First die has 6 possible outcomes. For each one of them, second die has 5 possible outcomes Together there are 6×5 = 30 outcomes. C 30 ways

Permutations You toss six dice. How many ways are there for all six dice to come out different? Answer: 6×5×4×3×2×1 = 720 In general, the number of ordered arrangements of n different objects is n × (n  1) × … × 1 = n!

Equally likely outcomes If we toss k dice, there are 6 k possible outcomes Let’s assume all outcomes are equally likely For two dice, the chance both come out different is 6×5 6×6 ≈ 83% For six dice, the chance they all come out different is 6!6 ≈ 1.5%

Problems for you to solve Toss two dice. Assuming equally likely outcomes, what are the chances that (a) The second one is bigger? (c) The sum is even? (b) The sum is equal to 7?

Problem for you to solve There are 3 brothers. Assuming equally likely outcomes, what are the chances that their birthdays are (a) All on the same day of the week? (b) All on different days of the week? MTWTFSSMTWTFSS MTWTFSSMTWTFSS

Arrangements You have r red balls and b blue balls Balls of same color are identical How many possible arrangements of the balls? Example: r = 3, b = 2 outcomes = { RRRBB, RRBRB, RRBBR, RBRRB, RBRBR, RBBRR, BRRRB, BRRBR, BRBRR, BBRRR }

How to count arrangements Let’s first pretend all balls are different R 1, R 2, R 3, B 1, B 2 They can be arranged in 5! possible ways.

How to count arrangements RRRBB Now any arrangement of the actual balls, e.g. could arise from R1R2R3B1B2R1R2R3B1B2 R1R2R3B2B1R1R2R3B2B1 R2R1R3B1B2R2R1R3B1B2 R2R1R3B2B1R2R1R3B2B1 R1R3R2B1B2R1R3R2B1B2 R1R3R2B2B1R1R3R2B2B1 R2R3R1B1B2R2R3R1B1B2 R2R3R1B2B1R2R3R1B2B1 R3R1R2B1B2R3R1R2B1B2 R3R1R2B2B1R3R1R2B2B1 R3R2R1B1B2R3R2R1B1B2 R3R2R1B2B1R3R2R1B2B1 There are 3! arrangements of the R s For each of them, 2! arrangement of the B s By counting principle, 2! 3! possibilities

How to count arrangements # arrangements for identical balls # arrangements for different balls # ways to get each arrangement = = 5! 3! 2! = 10 In general for r red balls and b blue balls the number of arrangements is (r + b)! / (r! b!) If there are k different ball colors and n i identical balls of color i the number of arrangements is (n 1 + … + n k )! n 1 ! n 2 ! … n k !

Problem for you to solve In how many ways can you arrange 10 red and 10 blue balls so the first two balls are of the same color? Assuming equally likely outcomes, what are the chances that the first two balls are of the same color in a sequence of 10 red and 10 blue balls?

Combinations In how many ways can you choose 3 objects out of 5 objects {1, 2, 3, 4, 5} ? Take 3 red balls, 2 blue balls. In an arrangement, the positions of the red balls describe the 3 objects: So we have 5! / (3! 2!) ways to choose the 3 objects. In general, k objects out of n can be chosen in n!n! k! (n - k)! C(n, k) = ways.

Problems for you to solve There are 10 students and you need to choose two committees with 3 students in each. (a) In how many ways can you choose? (b) … so that the committees do not overlap? (c) … with at least one person in both? (d) … with exactly one person in both?

Example There are r red balls and b blue balls. No two red balls should be consecutive. In how many ways can they be arranged? Solution The r red balls can occupy any of the b + 1 dashed slots This can be done in C(b + 1, r) ways

Answer check from itertools import * def no_consecutive_reds(red, blue): total = 0 bad = 0 for arrangement in combinations(range(red + blue), red): total = total + 1 for i in range(red - 1): # if the i-th and (i+1)-st red balls are consecutive if arrangement[i + 1] - arrangement[i] == 1: # this outcome is bad bad = bad + 1 break good = total - bad return good >>> no_consecutive_reds(5, 8) 126 C(8 + 1, 5) = 126

Problem for you to solve Assuming equally likely outcomes, what are the chances that among r red balls and b blue balls, no two red balls are consecutive?