CSCI 115 Chapter 3 Counting. CSCI 115 §3.1 Permutations.

Slides:



Advertisements
Similar presentations
CHAPTER 40 Probability.
Advertisements

Chapter 2 Probability. 2.1 Sample Spaces and Events.
Probability Theory Part 1: Basic Concepts. Sample Space - Events  Sample Point The outcome of a random experiment  Sample Space S The set of all possible.
Chapter 3 Probability.
Elementary Probability Theory
Chapter 4 Probability.
Math 310 Section 7.1 Probability. What is a probability? Def. In common usage, the word "probability" is used to mean the chance that a particular event.
Statistics Lecture 5. Last class: measures of spread and box-plots Last Day - Began Chapter 2 on probability. Section 2.1 These Notes – more Chapter.
PROBABILITY (6MTCOAE205) Chapter 2 Probability.
Chapter 4 Probability Copyright © 2014 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin.
Problem A newly married couple plans to have four children and would like to have three girls and a boy. What are the chances (probability) their desire.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 2 Probability.
Applied Discrete Mathematics Week 9: Relations
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 4 and 5 Probability and Discrete Random Variables.
Counting and Probability Sets and Counting Permutations & Combinations Probability.
Chapter 1 Basics of Probability.
5.1 Basic Probability Ideas
Copyright © 2000 by the McGraw-Hill Companies, Inc. Barnett/Ziegler/Byleen College Algebra: A Graphing Approach Chapter Six Sequences, Series, and Probability.
10/1/20151 Math a Sample Space, Events, and Probabilities of Events.
Chapter 8 Probability Section R Review. 2 Barnett/Ziegler/Byleen Finite Mathematics 12e Review for Chapter 8 Important Terms, Symbols, Concepts  8.1.
Topics to be covered: Produce all combinations and permutations of sets. Calculate the number of combinations and permutations of sets of m items taken.
Using Probability and Discrete Probability Distributions
Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Chapter 4 Probability.
Chapter 8: Probability: The Mathematics of Chance Lesson Plan Probability Models and Rules Discrete Probability Models Equally Likely Outcomes Continuous.
Chapter 8 With Question/Answer Animations 1. Chapter Summary Applications of Recurrence Relations Solving Linear Recurrence Relations Homogeneous Recurrence.
CSCI 115 Chapter 3 Counting. CSCI 115 §3.1 Permutations.
3. Counting Permutations Combinations Pigeonhole principle Elements of Probability Recurrence Relations.
Section 2.6 Probability and Expectation Cryptanalyzing the Vigenere cipher is not a trivial process. A probabilistic method that allows one to determine.
Probability & Statistics I IE 254 Exam I - Reminder  Reminder: Test 1 - June 21 (see syllabus) Chapters 1, 2, Appendix BI  HW Chapter 1 due Monday at.
BINOMIALDISTRIBUTION AND ITS APPLICATION. Binomial Distribution  The binomial probability density function –f(x) = n C x p x q n-x for x=0,1,2,3…,n for.
Ch Counting Techniques Product Rule If the first element or object of an ordered pair can be used in n 1 ways, and for each of these n1 ways.
Section 10.1 Introduction to Probability. Probability Probability is the overall likelihood that an event can occur. A trial is a systematic opportunity.
Daniel Meissner Nick Lauber Kaitlyn Stangl Lauren Desordi.
Chapter 12 Probability. Chapter 12 The probability of an occurrence is written as P(A) and is equal to.
2-1 Sample Spaces and Events Random Experiments Figure 2-1 Continuous iteration between model and physical system.
Basic Concepts of Probability Coach Bridges NOTES.
Computing Fundamentals 2 Lecture 6 Probability Lecturer: Patrick Browne
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 4 Counting methods and the pigeonhole principle.
Stats Probability Theory Summary. The sample Space, S The sample space, S, for a random phenomena is the set of all possible outcomes.
Copyright © Cengage Learning. All rights reserved. Elementary Probability Theory 5.
Discrete Structures By: Tony Thi By: Tony Thi Aaron Morales Aaron Morales CS 490 CS 490.
Probability: Terminology  Sample Space  Set of all possible outcomes of a random experiment.  Random Experiment  Any activity resulting in uncertain.
Chapter 8: Probability: The Mathematics of Chance Lesson Plan Probability Models and Rules Discrete Probability Models Equally Likely Outcomes Continuous.
7.2 Solving Linear Recurrence Relations Some of these recurrence relations can be solved using iteration or some other ad hoc technique. However, one important.
BIA 2610 – Statistical Methods
Chapter 4 Probability, Randomness, and Uncertainty.
Quick review of some key ideas CEE 11 Spring 2002 Dr. Amelia Regan These notes draw liberally from the class text, Probability and Statistics for Engineering.
+ Chapter 5 Overview 5.1 Introducing Probability 5.2 Combining Events 5.3 Conditional Probability 5.4 Counting Methods 1.
4-3 Addition Rule This section presents the addition rule as a device for finding probabilities that can be expressed as P(A or B), the probability that.
3.4 Elements of Probability. Probability helps us to figure out the liklihood of something happening. The “something happening” is called and event. The.
Chapter 2: Probability. Section 2.1: Basic Ideas Definition: An experiment is a process that results in an outcome that cannot be predicted in advance.
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Chapter 5 Discrete Random Variables.
Chapter 8: Probability: The Mathematics of Chance Lesson Plan Probability Models and Rules Discrete Probability Models Equally Likely Outcomes Continuous.
Chapter 7 Sets & Probability Section 7.3 Introduction to Probability.
Counting Techniques (Dr. Monticino). Overview  Why counting?  Counting techniques  Multiplication principle  Permutation  Combination  Examples.
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Chapter 4 Probability.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Lecture Slides Elementary Statistics Eleventh Edition and the Triola Statistics Series by.
AP Statistics From Randomness to Probability Chapter 14.
PROBABILITY AND STATISTICS WEEK 2 Onur Doğan. Introduction to Probability The Classical Interpretation of Probability The Frequency Interpretation of.
Lecture Slides Elementary Statistics Twelfth Edition
Introduction To Probability
Math a - Sample Space - Events - Definition of Probabilities
Unit 8 Probability.
Chapter 3 Probability.
Chapter 4 Probability.
9. Counting and Probability 1 Summary
PROBABILITY AND STATISTICS
Chapter 4 Section 1 Probability Theory.
Mrs.Volynskaya Alg.2 Ch.1.6 PROBABILITY
Theoretical Probability
Presentation transcript:

CSCI 115 Chapter 3 Counting

CSCI 115 §3.1 Permutations

§3.1 – Permutations Theorem – Multiplication Principle of Counting –Suppose 2 tasks t 1 and t 2 are to be performed in sequence. If t 1 can be performed in n 1 ways, and t 2 can be performed in n 2 ways, then the sequence of tasks t 1 t 2 can be performed in n 1 n 2 ways.

§3.1 – Permutations Theorem –Suppose tasks t 1, t 2, …, t k are to be performed in sequence. If t 1 can be performed in n 1 ways, t 2 can be performed in n 2 ways and so on, then the sequence of tasks t 1 t 2 …t k can be performed in n 1 n 2 … n k ways.

§3.1 – Permutations Consider the following problem: –How many different sequences, each of length r, can be formed from the elements of a set A if: Elements can be repeated Elements in the sequence must be distinct –Number of permutations of n objects taken r at a time

§3.1 – Permutations Theorem –Let A be a set with n elements, r  Z +, with 1  r  n. The number of sequences of length r that can be formed from elements of A, allowing repetitions, is n r.

§3.1 – Permutations Theorem –Let A be a set with n elements, r  Z +, with 1  r  n. The number of permutations of n objects taken r at a time is: n. (n – 1). (n – 2)... (n – (r – 1)) and is denoted n P r. –Equivalently: n!. (n – r)! Factorials

CSCI 115 §3.2 Combinations

§3.2 – Combinations Consider the following problem: –Let A be any set with n elements, 1  r  n, r  Z +. How many different subsets of r elements are there? Number of combinations of n objects taken r at a time

§3.2 – Combinations Theorem –Let A be a set with |A| = n. Let r  Z + with 1  r  n. The number of combinations of n objects taken r at a time is n!. r!(n – r)! and is denoted n C r.

CSCI 115 §3.4 Elements of Probability

§3.4 – Elements of Probability Deterministic Experiment –Outcome should not change Finding acceleration due to gravity Probabilistic Experiment –Outcome can change Rolling a die and recording the outcome We will be discussing probabilistic experiments

§3.4 – Elements of Probability Sample space Event –Subset of sample space –Certain event –Impossible Event Mutually exclusive events

§3.4 – Elements of Probability Notation - Assigning probabilities to events –P(E) Frequency –If you have n experiments and E occurs n E times, then: f E = n E /n is the Frequency of occurrence of E in n trials f E  P(E) as n 

§3.4 – Elements of Probability Probability Spaces Axioms for a probability space A: –P1: 0  P(E)  1  E  A –P2: P(A) = 1 and P(  ) = 0 –P3: If E 1, E 2, …, E k are all mutually exclusive, then: P(E 1  E 2  …  E k ) = P(E 1 ) + P(E 2 ) + … + P(E k )

§3.4 – Elements of Probability Probability Spaces –Elementary Events (x i ) –Elementary Probability (P i = P({x i })) All the x i are mutually exclusive, and we have: –EP1: 0  P i  1 –EP2: P 1 + P 2 + … + P n = 1

§3.4 – Elements of Probability Equally likely outcomes –|A| = n, and all elementary events are equally likely, then: If E = {x 1, x 2, …, x k } then P(E) = k/n or P(E) = |E|/|A|

§3.4 – Elements of Probability Expected value –Sum of the value of each outcome times its probability –A way to calculate the ‘average’ value

CSCI 115 §3.5 Recurrence Relations

§3.5 – Recurrence Relations Recall sequences –Recursive –Explicit Recurrence relation –When an equivalent explicit formula is needed, the recursive formula is called a recurrence relation

§3.5 – Recurrence Relations Backtracking –‘Track’ the equation ‘back’ to an explicit formula –Does not always work

§3.5 – Recurrence Relations Linear Homogeneity –A recurrence relation is linearly homogenous of degree k if: a n = r 1 a n-1 + r 2 a n-2 + … + r k a n-k r i is constant  i –A recurrence relation that is linearly homogenous of degree k has the following characteristic equation: x k = r 1 x k-1 + r 2 x k-2 + … + r k The characteristic equation plays a role in determining the explicit formula

§3.5 – Recurrence Relations Theorem –If the characteristic equation x 2 – r 1 x – r 2 = 0 of the recurrence relation a n = r 1 a n-1 + r 2 a n-2 has 2 distinct roots s 1 and s 2, then a n = us 1 n + vs 2 n (where u and v depend on initial conditions) is the explicit formula for the sequence. –If the characteristic equation x 2 – r 1 x – r 2 = 0 of the recurrence relation a n = r 1 a n-1 + r 2 a n-2 has a single root s, then a n = us n + vns n (where u and v depend on initial conditions) is the explicit formula for the sequence.