UCSD CSE 21, Spring 2014 [Section B00] Mathematics for Algorithm and System Analysis
|
|
- Mavis Dickerson
- 5 years ago
- Views:
Transcription
1 UCSD CSE 21, Spring 2014 [Section B00] Mathematics for Algorithm and System Analysis Lecture 7 Class URL:
2 Lecture 7 Notes Goals for this week: Unit FN Functions Permutations: cycle notation, composition Counting functions Probability Random variables, expectation, variance Probability distributions Birthday paradox Random graphs Sterling numbers of the second kind Generated questions on WeBWorK New set on probability Next set on functions by Thursday Poker chips: many problems solved - well done! MT review Tuesday 4/29 (?) 6:30pm, room TBD There is no available classroom on Wednesday 4/30 Practice MT questions posted by ~4/25-26 (Fri-Sat) Draft examples: see the last slides Things to Know will be maintained
3 Let f: A B be a function Review: Functions f is into (1-1, injective): b B, there is at most one a A s.t. f(a) = b f is onto (surjective): b B, there is at least one a A s.t. f(a) = b f is 1-1 and onto (bijective): b B, there is exactly one a A s.t. f(a) = b For a finite set A, a bijection f: A A is a permutation
4 Representing Functions (Note: a relation from A to B is a subset of A B, i.e., a set of ordered pairs) FN-4 f: {1,2,3,4} {a,b,c,d} can be represented as a relation: {(1,b),(2,a),(3,c),(4,d)} or by using arrows (domain on left, codomain on right): a b c d
5 Injective, Surjective, Bijective? a b c a b c d a b c d
6 Boolean Functions of K Variables F : {0,1} K {0,1} Example: F(x,y) = x AND y x y F(x,y) How many Boolean functions of K variables are there?
7 Boolean Functions With Don t-cares F : {0,1} K {0,1,X} X = don t-care x y z F(x,y,z) X X How many Boolean functions of K variables are there when don tcares are allowed?
8 Residue (mod M) Function M = modulus Residue (mod M) = remainder after dividing by M f: Z {0, 1,, M 1} f(n) = n (mod 7) Is f an injection? Is f a surjection? Is f a bijection?
9 Representing Functions Two line notation: matrix-like, with domain elements on top row and codomain elements on bottom. Same idea as set of pairs, different notation
10 Representing Permutations f: A A = {(1,2),(2,3),(3,1),(4,6),(5,7),(6,5),(7,4),(8,8)} 2-line Matrix notation Cycle notation: use only if f is a permutation! = (1 2 3)( )(8) -1 = (3 2 1)( )(8)
11 Composition Composition of permutations: from right to left Denoted with symbol Given A = {1,2,3,4,5,6}, write the permutation (1,2,3) (2,3,4) (3,4,5) (4,5,6) in cycle form Notation: (4,5,6) is the same as (1)(2)(3)(4,5,6) we leave out the length-1 cycles Observe: Answer: (4)(56)(3)(21) = (56)(21)
12 Checkpoint Give the two-line (matrix) notation for the permutation g: {1, 2, 3, 4} {1, 2, 3, 4}, x g(x) 1 2 A B C D E. None of the above.
13 Checkpoint Give the (one-line) cycle notation for the permutation g: {1, 2, 3, 4} {1, 2, 3, 4}, x g(x) 1 2 A. (1,2,3,4) 2 3 B. (2,3,4,1) 3 4 C. (1,2)(2,3)(3,4)(4,1) 4 1 D. (1,2,3)(4) E. None of the above.
14 Checkpoint What is the composition of the following two permutations on {1, 2, 3, 4, 5}? f = (1, 2, 3)(4, 5) g = (1)(2)(3, 4, 5) f g =? A. (1, 2, 3)(4, 5) B. (1)(2)(3, 4, 5) C. (1, 2, 4, 3)(5) D. (1, 2, 3, 5)(4) E. None of the above.
15 Counting Functions Given two sets, how many ways can we make a mapping named f between them? What if f is an injection, surjection or bijection?
16 Counting Functions If we know A and B, how many functions are there from A to B? A: A B B: C( A, B ) C: A + B D: B A E: B! Each function is determined by how we assign elements of B to elements of A. We can think of this as a list: f(a 1 ), f(a 2 ), f(a 3 ), A slots, with B choices for each slot Product Rule: B A functions from A to B
17 Counting Injections How many injections are there from A into B? (assume A < B ) A: A B B: C( A, B ) C: A + B D: P( B, A ) E: B! Again, think of this as a list: f(a 1 ), f(a 2 ), f(a 3 ), Injectivity can t have repeated images B choices for the first slot B - 1 choices for the second slot Product Rule: P( B, A ) injections from A into B
18 Counting Surjections How many surjections are there? (for surjections, will need to assume A > B ) (this is trickier!) Can use partitions and Stirling numbers of the second kind (will get to this) But we can already answer variants or subcases of this question, for arbitrary A and B ( How many functions from A to B have exactly k elements in the image? ) Example: How many functions from {1, 2, 3, 4} to {a, b, c, d, e} have exactly two elements in the image? E.g., {(1,a), (2,a), (3,c), (4,c)}
19 Counting Functions How many functions f: {1, 2, 3, 4} {a, b, c, d, e} have exactly two elements in the image? Idea: Partition {1, 2, 3, 4} into exactly two nonempty subsets, then assign elements of the codomain as images for each of these subsets Case (4 = 1 + 3): pick one domain element to have a unique image (codomain element), then choose a second codomain element to which the other three domain elements are mapped C(4,1) 1 C(5,1) C(4,1) = 80 Case (4 = 2 + 2): Partition the domain into two subsets of size two; pick two codomain elements to which these subsets are mapped C(4,2) C(5,2) = 60 Total = = 140
20 A Probability Question What is the probability that a random function from {1, 2, 3, 4} to {a, b, c, d, e} has exactly two elements in its range? 5 4 = 625 total functions 140 / 625 = 0.224
21 Random Variables Definition. In a probability space (U,P), we say that X: U R is a random variable. Example. Flip a fair coin four times. Some associated random variables: X = number of heads that appear Y = result of second flip Z = number of switches from H to T or vice versa What are possible values of X? What are possible values of Y? What are possible values of Z? Each value of a given random variable corresponds to an event (subset of U).
22 Another Probability Question In a room with n people, what is the probability that two people have the same birthday? Assume that all possible birthdays are equally likely, and there are only 365 of them. Let A be the event that two people in the same room have the same birthday. P(A) = 1 P(A c )
23 Birthdays P(A) = 1 P(A c ) Let B i be the probability that person i has a different birthday than persons 1, 2,, i-1 Note: B 1 = 1
24 Birthdays Let s try to calculate P(A c ), the probability that no two people among persons 1,, n have the same birthday: P(A c ) = B 1 B 2 B n What is B 2? B 2 = because one birthday has been taken so far B i =
25 The Birthday Paradox Let s try to calculate P(A c ), the probability that no two people among 1,, n have the same birthday: P(A c ) = B 1 B 2 B n P(A c ) = ( ) ( ) ( = (1 =(! )! ) ( ) (1 ) (1 ) ) What is P(A c ) when n = 1? What is P(A c ) when n = 23?
26 Closing the Loop No birthday gets hit twice reminds you of an injection! Probability that a random function from {1, 2, 3,, n} to {1, 2, 3, 4,, 364, 365} is an injection is
27 Problems 7 P7.1 Seven vertices of a cube are marked by 0 and one vertex by 1. You may repeatedly select an edge and increase by 1 the numbers at the ends of that edge. Your goal is to reach (a) 8 equal numbers, (b) 8 numbers divisible by 3. For each of (a), (b) explain whether or not your goal is achievable. You must solve both (a) and (b) for credit. P7.2 (2n + 1) persons are located in a paintball arena so that their mutual distances are all distinct. For purposes of this problem, the paintball arena is a region in the Euclidean plane, and all distances are Euclidean distances. Simultaneously, each person shoots a paintball at his/her nearest neighbor. Prove each of the following. (Each part is worth a separate poker chip.) (a) At least one person is not shot at. (b) Nobody is shot more than five times. (c) No two paintballs have paths that cross each other. (d) The set of segments formed by the paintball paths does not contain a closed polygon.
28 Problems 7 (cont.) P7.3 A car must be driven completely around a circular track. There is just enough gasoline for the car to get around the track, but the gasoline has been distributed among some number of depots along the track. Prove that no matter how many depots there are, and no matter how the gasoline is distributed among the depots, there is always some depot where the car can start with an empty tank and, by using the gasoline at the depots it passes, get completely around the track.
29 Fun (from Lecture 6) If two sets can be put into 1-1 correspondence, their cardinalities are equal. Cardinality of infinite sets: very interesting! Elvis s Hotel : although it s always crowded, you still can find some room Elvis s Hotel has Rooms 1, 2, 3, Every room is occupied by a guest. One person arrives. Can he be accomodated? Five people arrive. Can they be accomodated? N people arrive. Can they be accomodated?
30 Fun (from Lecture 6) If two sets can be put into 1-1 correspondence, their cardinalities are equal. Which set has larger cardinality: R (reals) or (0,1)? SAME N (counting numbers) or N N = Q + (positive rationals)? N (counting numbers) or R + (positive reals)?
31 MT Practice Problems (draft ) A valid license plate must be made of 7 characters, coming from the set of 26 letters {A, B,, Z} and 10 digits {0,1,, 9}. All of the characters must be distinct and at most 2 letters can be used. How many valid license plates are there? How many five-digit numbers exist such that: // note: solve each of (a), (b), (c), (d) separately No digit appears more than once? The number is divisible by 5? The number is even? Exactly three of its digits are even? Note that a number cannot have a leading digit of 0. How many rearrangements are there of the letters in the word LOLLIPOP? Charles has twelve identical tennis balls, five identical bones, and two dog toys that he wants to distribute to his five dogs. If every dog must receive at least one tennis ball and two dog toys cannot be sorted to the same dog, how many ways can Charles distribute the items? There are N nickels and 3 dimes in a coin collection. How many ways can the coins be stacked such that every nickel is touching a dime? Give your answer in terms of N. What is the coefficient of x 3 y 2 in the expansion of (3x + 2y) 5? If f = (12)(34)(56), g = (135)(246), and h = (654321) are three permutations in cycle form, what is the cycle form of???? In how many ways can Oliver place ten distinctly colored balls into five distinctly colored urns if each urn can only hold two balls? Jane randomly removes three cards from a standard deck of cards. What is the probability that They form a triple, i.e., three of a kind? They are all the same color? They form a pair and a single? They form three singles of different suits? Every week, Billy buys a lottery ticket for $10 with a one-in-a-billion chance at winning $100,000,010 and a one-in-a-hundred chance at winning $110. What is his expected return After 10 weeks? After 10 weeks if he buys 3 lottery tickets every week?
32 MT Practice Problems (draft ) At every move, an ant travels one unit to the left or one nit to the right with equal probability. What is the chance that the ant is at its starting point after 2 moves? 4 moves? 6 moves? 2N moves? What is the probability that in a room of seven people, No two have the same birthday (assuming there are 365 equally likely, possible birthdays)? Some two have the same birthday? A total of five people are at a social event. If initially nobody has met anybody, in how many orders can the people meet each other if everyone is to meet everyone else? Marissa has three $10 bills, four $50 bills, and one $100 bill in her pocket. If she just ordered a five-gallon tub of boba for $110 at the local tea silo, what is the probability that she can pay for her purchases (possibly receiving change in return) if She draws two bills out at random? She draws three bills out at random? She draws four bills out at random? She draws five bills out at random? A team of N technicians has an N / (N+2) chance of fixing a router. If the company dispatches at random 1, 2, or 3 technicians to fix a router, what is the probability that The router gets fixed on the first dispatch of technicians? The router gets fixed in no more than two dispatches of technicians? John and Sarah play games of Rock, Paper, Scissors in which each randomly chooses Rock, Paper, or Scissors at every turn. Rock beats Scissors, which beats Paper, which in turn beats Rock. What is the expected number of games they play If they play until one person wins? If they play until John wins? If they play until Rock, Paper, and Scissors have each been chosen at least once? In how many ways can 5 boys and 5 girls sit in a row if each must sit next to at least one person of the same gender? In how many ways can 5 boys and 5 girls sit in a circle such that no two boys sit next to each other? Notice that two arrangements that are obtainable from each other by rotation are considered to be the same arrangement. John tosses a coin five times. If he gets heads, he moves a marker two units to the right. If he gets tails, he moves the marker one unit to the left. If the marker is initially at the center of a circular platform of radius five units, what is the probability that the marker falls off of the platform as a result of the five-move sequence?
33 MT Practice Problems (draft ) In order to get past pipes in his game of Flappy Bird, John found that he has to tap his phone twice in every two-second window (i.e., twice in [0,2 seconds), twice in [2,4 seconds), etc.) with the second tap being no less than 0.3 seconds after the first tap. If John taps two times at random in every two-second window, what is The probability that John gets past the first pipe? John s expected score, i.e., number of pipes he gets past? John s expected score if the second tap must be after the 1.5-second mark in every two-second window? CHALLENGE (harder than any MT question, could be a bonus type of question): Suppose John plays a different version of Flappy Bird and must tap his phone three times every three seconds, with the difference in time between successive taps being no less than 0.3 seconds in order to get past a pipe. If he taps three times at random in every three-second window, what is his new expected score? CHALLENGE (harder than any MT question, could be a bonus type of question): A beetle, starting at the origin on a coordinate plane, travels one unit upwards or one unit rightwards at every turn with equal probability. After 2N turns, the beetle is at location (N,N). What is the probability that the beetle has never once been at a location (x,y) such that y > x?
CSE 312: Foundations of Computing II Quiz Section #2: Inclusion-Exclusion, Pigeonhole, Introduction to Probability (solutions)
CSE 31: Foundations of Computing II Quiz Section #: Inclusion-Exclusion, Pigeonhole, Introduction to Probability (solutions) Review: Main Theorems and Concepts Binomial Theorem: x, y R, n N: (x + y) n
More informationSection 6.1 #16. Question: What is the probability that a five-card poker hand contains a flush, that is, five cards of the same suit?
Section 6.1 #16 What is the probability that a five-card poker hand contains a flush, that is, five cards of the same suit? page 1 Section 6.1 #38 Two events E 1 and E 2 are called independent if p(e 1
More informationAlgebra II- Chapter 12- Test Review
Sections: Counting Principle Permutations Combinations Probability Name Choose the letter of the term that best matches each statement or phrase. 1. An illustration used to show the total number of A.
More informationNovember 8, Chapter 8: Probability: The Mathematics of Chance
Chapter 8: Probability: The Mathematics of Chance November 8, 2013 Last Time Probability Models and Rules Discrete Probability Models Equally Likely Outcomes Crystallographic notation The first symbol
More informationProbability. Dr. Zhang Fordham Univ.
Probability! Dr. Zhang Fordham Univ. 1 Probability: outline Introduction! Experiment, event, sample space! Probability of events! Calculate Probability! Through counting! Sum rule and general sum rule!
More informationCombinatorics and Intuitive Probability
Chapter Combinatorics and Intuitive Probability The simplest probabilistic scenario is perhaps one where the set of possible outcomes is finite and these outcomes are all equally likely. A subset of the
More informationCSE 312: Foundations of Computing II Quiz Section #2: Inclusion-Exclusion, Pigeonhole, Introduction to Probability
CSE 312: Foundations of Computing II Quiz Section #2: Inclusion-Exclusion, Pigeonhole, Introduction to Probability Review: Main Theorems and Concepts Binomial Theorem: Principle of Inclusion-Exclusion
More informationName: Final Exam May 7, 2014
MATH 10120 Finite Mathematics Final Exam May 7, 2014 Name: Be sure that you have all 16 pages of the exam. The exam lasts for 2 hrs. There are 30 multiple choice questions, each worth 5 points. You may
More informationPermutations and Combinations Section
A B I L E N E C H R I S T I A N U N I V E R S I T Y Department of Mathematics Permutations and Combinations Section 13.3-13.4 Dr. John Ehrke Department of Mathematics Fall 2012 Permutations A permutation
More information18.S34 (FALL, 2007) PROBLEMS ON PROBABILITY
18.S34 (FALL, 2007) PROBLEMS ON PROBABILITY 1. Three closed boxes lie on a table. One box (you don t know which) contains a $1000 bill. The others are empty. After paying an entry fee, you play the following
More informationThe Teachers Circle Mar. 20, 2012 HOW TO GAMBLE IF YOU MUST (I ll bet you $5 that if you give me $10, I ll give you $20.)
The Teachers Circle Mar. 2, 22 HOW TO GAMBLE IF YOU MUST (I ll bet you $ that if you give me $, I ll give you $2.) Instructor: Paul Zeitz (zeitzp@usfca.edu) Basic Laws and Definitions of Probability If
More informationNovember 11, Chapter 8: Probability: The Mathematics of Chance
Chapter 8: Probability: The Mathematics of Chance November 11, 2013 Last Time Probability Models and Rules Discrete Probability Models Equally Likely Outcomes Probability Rules Probability Rules Rule 1.
More informationPROBABILITY TOPIC TEST MU ALPHA THETA 2007
PROBABILITY TOPI TEST MU ALPHA THETA 00. Richard has red marbles and white marbles. Richard s friends, Vann and Penelo, each select marbles from the bag. What is the probability that Vann selects red marble
More informationCounting and Probability Math 2320
Counting and Probability Math 2320 For a finite set A, the number of elements of A is denoted by A. We have two important rules for counting. 1. Union rule: Let A and B be two finite sets. Then A B = A
More informationThe next several lectures will be concerned with probability theory. We will aim to make sense of statements such as the following:
CS 70 Discrete Mathematics for CS Fall 2004 Rao Lecture 14 Introduction to Probability The next several lectures will be concerned with probability theory. We will aim to make sense of statements such
More informationThe study of probability is concerned with the likelihood of events occurring. Many situations can be analyzed using a simplified model of probability
The study of probability is concerned with the likelihood of events occurring Like combinatorics, the origins of probability theory can be traced back to the study of gambling games Still a popular branch
More informationIntroduction to Counting and Probability
Randolph High School Math League 2013-2014 Page 1 If chance will have me king, why, chance may crown me. Shakespeare, Macbeth, Act I, Scene 3 1 Introduction Introduction to Counting and Probability Counting
More informationTheory of Probability - Brett Bernstein
Theory of Probability - Brett Bernstein Lecture 3 Finishing Basic Probability Review Exercises 1. Model flipping two fair coins using a sample space and a probability measure. Compute the probability of
More informationSection The Multiplication Principle and Permutations
Section 2.1 - The Multiplication Principle and Permutations Example 1: A yogurt shop has 4 flavors (chocolate, vanilla, strawberry, and blueberry) and three sizes (small, medium, and large). How many different
More informationWeek 1: Probability models and counting
Week 1: Probability models and counting Part 1: Probability model Probability theory is the mathematical toolbox to describe phenomena or experiments where randomness occur. To have a probability model
More informationChapter 1. Probability
Chapter 1. Probability 1.1 Basic Concepts Scientific method a. For a given problem, we define measures that explains the problem well. b. Data is collected with observation and the measures are calculated.
More informationPUTNAM PROBLEMS FINITE MATHEMATICS, COMBINATORICS
PUTNAM PROBLEMS FINITE MATHEMATICS, COMBINATORICS 2014-B-5. In the 75th Annual Putnam Games, participants compete at mathematical games. Patniss and Keeta play a game in which they take turns choosing
More informationCounting Things Solutions
Counting Things Solutions Tom Davis tomrdavis@earthlink.net http://www.geometer.org/mathcircles March 7, 006 Abstract These are solutions to the Miscellaneous Problems in the Counting Things article at:
More informationChapter 1. Probability
Chapter 1. Probability 1.1 Basic Concepts Scientific method a. For a given problem, we define measures that explains the problem well. b. Data is collected with observation and the measures are calculated.
More informationCS100: DISCRETE STRUCTURES. Lecture 8 Counting - CH6
CS100: DISCRETE STRUCTURES Lecture 8 Counting - CH6 Lecture Overview 2 6.1 The Basics of Counting: THE PRODUCT RULE THE SUM RULE THE SUBTRACTION RULE THE DIVISION RULE 6.2 The Pigeonhole Principle. 6.3
More informationContents 2.1 Basic Concepts of Probability Methods of Assigning Probabilities Principle of Counting - Permutation and Combination 39
CHAPTER 2 PROBABILITY Contents 2.1 Basic Concepts of Probability 38 2.2 Probability of an Event 39 2.3 Methods of Assigning Probabilities 39 2.4 Principle of Counting - Permutation and Combination 39 2.5
More informationCS 237: Probability in Computing
CS 237: Probability in Computing Wayne Snyder Computer Science Department Boston University Lecture 5: o Independence reviewed; Bayes' Rule o Counting principles and combinatorics; o Counting considered
More informationIndependent Events. 1. Given that the second baby is a girl, what is the. e.g. 2 The probability of bearing a boy baby is 2
Independent Events 7. Introduction Consider the following examples e.g. E throw a die twice A first thrown is "" second thrown is "" o find P( A) Solution: Since the occurrence of Udoes not dependu on
More informationSUMMER MATH-LETES. Math for the Fun of It!
SUMMER MATH-LETES Math for the Fun of It! During this busy summer take some time to experience math! Here are some suggested activities for you to try during vacation. Also, take advantage of opportunities
More information1 = 3 2 = 3 ( ) = = = 33( ) 98 = = =
Math 115 Discrete Math Final Exam December 13, 2000 Your name It is important that you show your work. 1. Use the Euclidean algorithm to solve the decanting problem for decanters of sizes 199 and 98. In
More informationMathematical Foundations HW 5 By 11:59pm, 12 Dec, 2015
1 Probability Axioms Let A,B,C be three arbitrary events. Find the probability of exactly one of these events occuring. Sample space S: {ABC, AB, AC, BC, A, B, C, }, and S = 8. P(A or B or C) = 3 8. note:
More informationI. WHAT IS PROBABILITY?
C HAPTER 3 PROAILITY Random Experiments I. WHAT IS PROAILITY? The weatherman on 10 o clock news program states that there is a 20% chance that it will snow tomorrow, a 65% chance that it will rain and
More informationIntroduction to Mathematical Reasoning, Saylor 111
Here s a game I like plying with students I ll write a positive integer on the board that comes from a set S You can propose other numbers, and I tell you if your proposed number comes from the set Eventually
More informationCHAPTER 2 PROBABILITY. 2.1 Sample Space. 2.2 Events
CHAPTER 2 PROBABILITY 2.1 Sample Space A probability model consists of the sample space and the way to assign probabilities. Sample space & sample point The sample space S, is the set of all possible outcomes
More informationDiscrete mathematics
Discrete mathematics Petr Kovář petr.kovar@vsb.cz VŠB Technical University of Ostrava DiM 470-2301/02, Winter term 2018/2019 About this file This file is meant to be a guideline for the lecturer. Many
More informationPROBABILITY. 1. Introduction. Candidates should able to:
PROBABILITY Candidates should able to: evaluate probabilities in simple cases by means of enumeration of equiprobable elementary events (e.g for the total score when two fair dice are thrown), or by calculation
More information4.1 Sample Spaces and Events
4.1 Sample Spaces and Events An experiment is an activity that has observable results. Examples: Tossing a coin, rolling dice, picking marbles out of a jar, etc. The result of an experiment is called an
More informationCounting. Chapter 6. With Question/Answer Animations
. All rights reserved. Authorized only for instructor use in the classroom. No reproduction or further distribution permitted without the prior written consent of McGraw-Hill Education. Counting Chapter
More informationCounting Things. Tom Davis March 17, 2006
Counting Things Tom Davis tomrdavis@earthlink.net http://www.geometer.org/mathcircles March 17, 2006 Abstract We present here various strategies for counting things. Usually, the things are patterns, or
More informationProbability MAT230. Fall Discrete Mathematics. MAT230 (Discrete Math) Probability Fall / 37
Probability MAT230 Discrete Mathematics Fall 2018 MAT230 (Discrete Math) Probability Fall 2018 1 / 37 Outline 1 Discrete Probability 2 Sum and Product Rules for Probability 3 Expected Value MAT230 (Discrete
More informationCISC 1400 Discrete Structures
CISC 1400 Discrete Structures Chapter 6 Counting CISC1400 Yanjun Li 1 1 New York Lottery New York Mega-million Jackpot Pick 5 numbers from 1 56, plus a mega ball number from 1 46, you could win biggest
More informationElementary Combinatorics
184 DISCRETE MATHEMATICAL STRUCTURES 7 Elementary Combinatorics 7.1 INTRODUCTION Combinatorics deals with counting and enumeration of specified objects, patterns or designs. Techniques of counting are
More informationMATH Learning On The Go!!!!
MATH Learning On The Go!!!! Math on the Go Math for the Fun of It In this busy world, we spend a lot of time moving from place to place in our cars, on buses and trains, and on foot. Use your traveling
More information3 The multiplication rule/miscellaneous counting problems
Practice for Exam 1 1 Axioms of probability, disjoint and independent events 1 Suppose P (A 0, P (B 05 (a If A and B are independent, what is P (A B? What is P (A B? (b If A and B are disjoint, what is
More informationn! = n(n 1)(n 2) 3 2 1
A Counting A.1 First principles If the sample space Ω is finite and the outomes are equally likely, then the probability measure is given by P(E) = E / Ω where E denotes the number of outcomes in the event
More informationINDIAN STATISTICAL INSTITUTE
INDIAN STATISTICAL INSTITUTE B1/BVR Probability Home Assignment 1 20-07-07 1. A poker hand means a set of five cards selected at random from usual deck of playing cards. (a) Find the probability that it
More informationCardinality. Hebrew alphabet). We write S = ℵ 0 and say that S has cardinality aleph null.
Section 2.5 1 Cardinality Definition: The cardinality of a set A is equal to the cardinality of a set B, denoted A = B, if and only if there is a one-to-one correspondence (i.e., a bijection) from A to
More informationMultiple Choice Questions for Review
Review Questions Multiple Choice Questions for Review 1. Suppose there are 12 students, among whom are three students, M, B, C (a Math Major, a Biology Major, a Computer Science Major. We want to send
More information1. How many subsets are there for the set of cards in a standard playing card deck? How many subsets are there of size 8?
Math 1711-A Summer 2016 Final Review 1 August 2016 Time Limit: 170 Minutes Name: 1. How many subsets are there for the set of cards in a standard playing card deck? How many subsets are there of size 8?
More informationSTAT 430/510 Probability Lecture 1: Counting-1
STAT 430/510 Probability Lecture 1: Counting-1 Pengyuan (Penelope) Wang May 22, 2011 Introduction In the early days, probability was associated with games of chance, such as gambling. Probability is describing
More informationWith Question/Answer Animations. Chapter 6
With Question/Answer Animations Chapter 6 Chapter Summary The Basics of Counting The Pigeonhole Principle Permutations and Combinations Binomial Coefficients and Identities Generalized Permutations and
More informationLecture 18 - Counting
Lecture 18 - Counting 6.0 - April, 003 One of the most common mathematical problems in computer science is counting the number of elements in a set. This is often the core difficulty in determining a program
More informationUniversity of Connecticut Department of Mathematics
University of Connecticut Department of Mathematics Math 070Q Exam A Fall 07 Name: TA Name: Discussion: Read This First! This is a closed notes, closed book exam. You cannot receive aid on this exam from
More informationDiscrete Structures for Computer Science
Discrete Structures for Computer Science William Garrison bill@cs.pitt.edu 6311 Sennott Square Lecture #23: Discrete Probability Based on materials developed by Dr. Adam Lee The study of probability is
More information2. The Extensive Form of a Game
2. The Extensive Form of a Game In the extensive form, games are sequential, interactive processes which moves from one position to another in response to the wills of the players or the whims of chance.
More informationProbability and Counting Techniques
Probability and Counting Techniques Diana Pell (Multiplication Principle) Suppose that a task consists of t choices performed consecutively. Suppose that choice 1 can be performed in m 1 ways; for each
More informationSection : Combinations and Permutations
Section 11.1-11.2: Combinations and Permutations Diana Pell A construction crew has three members. A team of two must be chosen for a particular job. In how many ways can the team be chosen? How many words
More informationAdvanced Intermediate Algebra Chapter 12 Summary INTRO TO PROBABILITY
Advanced Intermediate Algebra Chapter 12 Summary INTRO TO PROBABILITY 1. Jack and Jill do not like washing dishes. They decide to use a random method to select whose turn it is. They put some red and blue
More informationUNC Charlotte 2012 Comprehensive
March 5, 2012 1. In the English alphabet of capital letters, there are 15 stick letters which contain no curved lines, and 11 round letters which contain at least some curved segment. How many different
More informationClass Examples (Ch. 3)
Class Examples (Ch. 3) 1. A study was recently done that emphasized the problem we all face with drinking and driving. Four hundred accidents that occurred on a Saturday night were analyzed. Two items
More informationNAME DATE PERIOD. Study Guide and Intervention
9-1 Section Title The probability of a simple event is a ratio that compares the number of favorable outcomes to the number of possible outcomes. Outcomes occur at random if each outcome occurs by chance.
More informationa) 2, 4, 8, 14, 22, b) 1, 5, 6, 10, 11, c) 3, 9, 21, 39, 63, d) 3, 0, 6, 15, 27, e) 3, 8, 13, 18, 23,
Pre-alculus Midterm Exam Review Name:. Which of the following is an arithmetic sequence?,, 8,,, b),, 6, 0,, c), 9,, 9, 6, d), 0, 6,, 7, e), 8,, 8,,. What is a rule for the nth term of the arithmetic sequence
More informationFinite Mathematics MAT 141: Chapter 8 Notes
Finite Mathematics MAT 4: Chapter 8 Notes Counting Principles; More David J. Gisch The Multiplication Principle; Permutations Multiplication Principle Multiplication Principle You can think of the multiplication
More information6.041/6.431 Spring 2009 Quiz 1 Wednesday, March 11, 7:30-9:30 PM.
6.04/6.43 Spring 09 Quiz Wednesday, March, 7:30-9:30 PM. Name: Recitation Instructor: TA: Question Part Score Out of 0 3 all 40 2 a 5 b 5 c 6 d 6 3 a 5 b 6 c 6 d 6 e 6 f 6 g 0 6.04 Total 00 6.43 Total
More informationProblem Set 8 Solutions R Y G R R G
6.04/18.06J Mathematics for Computer Science April 5, 005 Srini Devadas and Eric Lehman Problem Set 8 Solutions Due: Monday, April 11 at 9 PM in Room 3-044 Problem 1. An electronic toy displays a 4 4 grid
More informationChapter 2. Permutations and Combinations
2. Permutations and Combinations Chapter 2. Permutations and Combinations In this chapter, we define sets and count the objects in them. Example Let S be the set of students in this classroom today. Find
More informationRaise your hand if you rode a bus within the past month. Record the number of raised hands.
166 CHAPTER 3 PROBABILITY TOPICS Raise your hand if you rode a bus within the past month. Record the number of raised hands. Raise your hand if you answered "yes" to BOTH of the first two questions. Record
More informationCIS 2033 Lecture 6, Spring 2017
CIS 2033 Lecture 6, Spring 2017 Instructor: David Dobor February 2, 2017 In this lecture, we introduce the basic principle of counting, use it to count subsets, permutations, combinations, and partitions,
More informationMath is Cool Masters
Individual Multiple Choice Contest 1 Evaluate: ( 128)( log 243) log3 2 A) 35 B) 42 C) 12 D) 36 E) NOTA 2 What is the sum of the roots of the following function? x 2 56x + 71 = 0 A) -23 B) 14 C) 56 D) 71
More informationLAMC Junior Circle February 3, Oleg Gleizer. Warm-up
LAMC Junior Circle February 3, 2013 Oleg Gleizer oleg1140@gmail.com Warm-up Problem 1 Compute the following. 2 3 ( 4) + 6 2 Problem 2 Can the value of a fraction increase, if we add one to the numerator
More informationTopics to be covered
Basic Counting 1 Topics to be covered Sum rule, product rule, generalized product rule Permutations, combinations Binomial coefficients, combinatorial proof Inclusion-exclusion principle Pigeon Hole Principle
More informationHonors Precalculus Chapter 9 Summary Basic Combinatorics
Honors Precalculus Chapter 9 Summary Basic Combinatorics A. Factorial: n! means 0! = Why? B. Counting principle: 1. How many different ways can a license plate be formed a) if 7 letters are used and each
More informationEECS 203 Spring 2016 Lecture 15 Page 1 of 6
EECS 203 Spring 2016 Lecture 15 Page 1 of 6 Counting We ve been working on counting for the last two lectures. We re going to continue on counting and probability for about 1.5 more lectures (including
More informationCombinatorics: The Fine Art of Counting
Combinatorics: The Fine Art of Counting Lecture Notes Counting 101 Note to improve the readability of these lecture notes, we will assume that multiplication takes precedence over division, i.e. A / B*C
More informationand problem sheet 7
1-18 and 15-151 problem sheet 7 Solutions to the following five exercises and optional bonus problem are to be submitted through gradescope by 11:30PM on Friday nd November 018. Problem 1 Let A N + and
More information2 A fair coin is flipped 8 times. What is the probability of getting more heads than tails? A. 1 2 B E. NOTA
For all questions, answer E. "NOTA" means none of the above answers is correct. Calculator use NO calculators will be permitted on any test other than the Statistics topic test. The word "deck" refers
More informationPERMUTATIONS AND COMBINATIONS
8 PERMUTATIONS AND COMBINATIONS FUNDAMENTAL PRINCIPLE OF COUNTING Multiplication Principle : If an operation can be performed in 'm' different ways; following which a second operation can be performed
More informationCSE 312 Midterm Exam May 7, 2014
Name: CSE 312 Midterm Exam May 7, 2014 Instructions: You have 50 minutes to complete the exam. Feel free to ask for clarification if something is unclear. Please do not turn the page until you are instructed
More informationSTAT 430/510 Probability
STAT 430/510 Probability Hui Nie Lecture 1 May 26th, 2009 Introduction Probability is the study of randomness and uncertainty. In the early days, probability was associated with games of chance, such as
More informationProbability. Ms. Weinstein Probability & Statistics
Probability Ms. Weinstein Probability & Statistics Definitions Sample Space The sample space, S, of a random phenomenon is the set of all possible outcomes. Event An event is a set of outcomes of a random
More informationProbability and Statistics. Copyright Cengage Learning. All rights reserved.
Probability and Statistics Copyright Cengage Learning. All rights reserved. 14.2 Probability Copyright Cengage Learning. All rights reserved. Objectives What Is Probability? Calculating Probability by
More informationEssentials. Week by. Week. Calculate! What is the largest product you can compute on your calculator? largest quotient?
Week by Week MATHEMATICS Essentials Grade WEEK 5 Calculate! What is the largest product you can compute on your calculator? largest quotient? Is the answer the same for all the calculators in your class?
More informationSection Introduction to Sets
Section 1.1 - Introduction to Sets Definition: A set is a well-defined collection of objects usually denoted by uppercase letters. Definition: The elements, or members, of a set are denoted by lowercase
More informationCMath 55 PROFESSOR KENNETH A. RIBET. Final Examination May 11, :30AM 2:30PM, 100 Lewis Hall
CMath 55 PROFESSOR KENNETH A. RIBET Final Examination May 11, 015 11:30AM :30PM, 100 Lewis Hall Please put away all books, calculators, cell phones and other devices. You may consult a single two-sided
More informationUCSD CSE 21, Spring 2014 [Section B00] Mathematics for Algorithm and System Analysis
UCSD CSE 21, Spring 2014 [Section B00] Mathematics for Algorithm and System Analysis Lecture 3 Class URL: http://vlsicad.ucsd.edu/courses/cse21-s14/ Lecture 3 Notes Goal for today: CL Section 3 Subsets,
More informationDiscrete Mathematics. Spring 2017
Discrete Mathematics Spring 2017 Previous Lecture Binomial Coefficients Pascal s Triangle The Pigeonhole Principle If a flock of 20 pigeons roosts in a set of 19 pigeonholes, one of the pigeonholes must
More informationCPCS 222 Discrete Structures I Counting
King ABDUL AZIZ University Faculty Of Computing and Information Technology CPCS 222 Discrete Structures I Counting Dr. Eng. Farag Elnagahy farahelnagahy@hotmail.com Office Phone: 67967 The Basics of counting
More informationCompound Probability. Set Theory. Basic Definitions
Compound Probability Set Theory A probability measure P is a function that maps subsets of the state space Ω to numbers in the interval [0, 1]. In order to study these functions, we need to know some basic
More informationOlympiad Combinatorics. Pranav A. Sriram
Olympiad Combinatorics Pranav A. Sriram August 2014 Chapter 2: Algorithms - Part II 1 Copyright notices All USAMO and USA Team Selection Test problems in this chapter are copyrighted by the Mathematical
More informationReading 14 : Counting
CS/Math 240: Introduction to Discrete Mathematics Fall 2015 Instructors: Beck Hasti, Gautam Prakriya Reading 14 : Counting In this reading we discuss counting. Often, we are interested in the cardinality
More informationNovember 6, Chapter 8: Probability: The Mathematics of Chance
Chapter 8: Probability: The Mathematics of Chance November 6, 2013 Last Time Crystallographic notation Groups Crystallographic notation The first symbol is always a p, which indicates that the pattern
More informationProbability Theory. Mohamed I. Riffi. Islamic University of Gaza
Probability Theory Mohamed I. Riffi Islamic University of Gaza Table of contents 1. Chapter 1 Probability Properties of probability Counting techniques 1 Chapter 1 Probability Probability Theorem P(φ)
More information1. The chance of getting a flush in a 5-card poker hand is about 2 in 1000.
CS 70 Discrete Mathematics for CS Spring 2008 David Wagner Note 15 Introduction to Discrete Probability Probability theory has its origins in gambling analyzing card games, dice, roulette wheels. Today
More informationThe topic for the third and final major portion of the course is Probability. We will aim to make sense of statements such as the following:
CS 70 Discrete Mathematics for CS Spring 2006 Vazirani Lecture 17 Introduction to Probability The topic for the third and final major portion of the course is Probability. We will aim to make sense of
More informationCombinatorics: The Fine Art of Counting
Combinatorics: The Fine Art of Counting Week 6 Lecture Notes Discrete Probability Note Binomial coefficients are written horizontally. The symbol ~ is used to mean approximately equal. Introduction and
More informationChapter 5 - Elementary Probability Theory
Chapter 5 - Elementary Probability Theory Historical Background Much of the early work in probability concerned games and gambling. One of the first to apply probability to matters other than gambling
More informationDiscrete Structures Lecture Permutations and Combinations
Introduction Good morning. Many counting problems can be solved by finding the number of ways to arrange a specified number of distinct elements of a set of a particular size, where the order of these
More informationCSE 21 Practice Final Exam Winter 2016
CSE 21 Practice Final Exam Winter 2016 1. Sorting and Searching. Give the number of comparisons that will be performed by each sorting algorithm if the input list of length n happens to be of the form
More informationUnit Nine Precalculus Practice Test Probability & Statistics. Name: Period: Date: NON-CALCULATOR SECTION
Name: Period: Date: NON-CALCULATOR SECTION Vocabulary: Define each word and give an example. 1. discrete mathematics 2. dependent outcomes 3. series Short Answer: 4. Describe when to use a combination.
More information1. Answer: 250. To reach 90% in the least number of problems involves Jim getting everything
. Answer: 50. To reach 90% in the least number of problems involves Jim getting everything 0 + x 9 correct. Let x be the number of questions he needs to do. Then = and cross 50 + x 0 multiplying and solving
More information