Probability and combinatorics Notes from www.math.uah.edu/stat/www.math.uah.edu/stat/ Virtual Laboratories in Probability and Statistics.

Slides:



Advertisements
Similar presentations
Probability Part II.
Advertisements

Beginning Probability
Probability: The Study of Randomness Chapter Randomness Think about flipping a coin n times If n = 2, can have 2 heads (100% heads), 1 heads and.
Probability Unit 3.
Probability What Are the Chances?. Section 1 The Basics of Probability Theory Objectives: Be able to calculate probabilities by counting the outcomes.
Section 5.1 and 5.2 Probability
Section 7A: Fundamentals of Probability Section Objectives Define outcomes and event Construct a probability distribution Define subjective and empirical.
MA-250 Probability and Statistics Nazar Khan PUCIT Lecture 13.
SECTION 4.1 BASIC IDEAS Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 3 Probability.
Probability. The probability of an event occurring is between 0 and 1 If an event is certain not to happen, the probability is 0 eg: the probability of.
Introduction to Probability
Probability.
1 Discrete Math CS 280 Prof. Bart Selman Module Probability --- Part a) Introduction.
Basics of probability Notes from:
Statistical Inference Most data comes in the form of numbers We have seen methods to describe and summarise patterns in data. Most data are samples (subsets)
Probability Distributions
Visualizing Events Contingency Tables Tree Diagrams Ace Not Ace Total Red Black Total
Section 1.1, Slide 1 Copyright © 2014, 2010, 2007 Pearson Education, Inc. Section 13.1, Slide 1 13 Probability What Are the Chances?
Probability Chapter 3. § 3.1 Basic Concepts of Probability.
Chapter 9 Introducing Probability - A bridge from Descriptive Statistics to Inferential Statistics.
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.
Probability and Counting Rules
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProbability.
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProbability.
Aim: Final Review Session 3 Probability
Combinatorics 3/15 and 3/ Counting A restaurant offers the following menu: Main CourseVegetablesBeverage BeefPotatoesMilk HamGreen BeansCoffee.
5.1 Basic Probability Ideas
Section 1.1, Slide 1 Copyright © 2014, 2010, 2007 Pearson Education, Inc. Section 13.1, Slide 1 13 Probability What Are the Chances?
Advanced Math Topics Chapters 4 and 5 Review. 1) A family plans to have 3 children. What is the probability that there will be at least 2 girls? (assume.
Chapter 1 Probability and Distributions Math 6203 Fall 2009 Instructor: Ayona Chatterjee.
Chapter 7 Random Variables I can find the probability of a discrete random variable. 6.1a Discrete and Continuous Random Variables and Expected Value h.w:
1 9/23/2015 MATH 224 – Discrete Mathematics Basic finite probability is given by the formula, where |E| is the number of events and |S| is the total number.
Probability Review and Counting Fundamentals Ginger Holmes Rowell, Middle TN State University Tracy Goodson-Espy and M. Leigh Lunsford, University of AL,
Aim: How do we find the probability of a simple event? Complete Worksheet.
Topics to be covered: Produce all combinations and permutations of sets. Calculate the number of combinations and permutations of sets of m items taken.
Section 7.2. Section Summary Assigning Probabilities Probabilities of Complements and Unions of Events Conditional Probability Independence Bernoulli.
Random Variables. A random variable X is a real valued function defined on the sample space, X : S  R. The set { s  S : X ( s )  [ a, b ] is an event}.
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.
Probability Part 3 – What is Probability?. Probability Warm-up How many ways can a dinner patron select 3 appetizers and 2 vegetables if there are 6 appetizers.
Chapter 4 Lecture 3 Sections: 4.4 – 4.5. Multiplication Rule Recall that we used addition for the P(A or B). the word “or” in P(A or B) suggests addition.
Section 11.4 Tree Diagrams, Tables, and Sample Spaces Math in Our World.
12.4 Counting Outcomes and Theoretical Probability.
Computing Fundamentals 2 Lecture 6 Probability Lecturer: Patrick Browne
Independent Events OBJ: Find the probability of independent events.
Random Variables Presentation 6.. Random Variables A random variable assigns a number (or symbol) to each outcome of a random circumstance. A random variable.
Probability Basic Concepts Start with the Monty Hall puzzle
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.
Introducing probability BPS chapter 9 © 2006 W. H. Freeman and Company.
+ Chapter 5 Overview 5.1 Introducing Probability 5.2 Combining Events 5.3 Conditional Probability 5.4 Counting Methods 1.
Binomial Distribution. Bernoulli Trials Repeated identical trials are called Bernoulli trials if: 1. There are two possible outcomes for each trial, denoted.
AP Statistics Chapter 8 Section 1. A gaggle of girls The Ferrell family have 3 children: Jennifer, Jessica, and Jaclyn. If we assume that a couple is.
Introduction to probability (3) Definition: - The probability of an event A is the sum of the weights of all sample point in A therefore If A1,A2,…..,An.
Chapter 4 Some basic Probability Concepts 1-1. Learning Objectives  To learn the concept of the sample space associated with a random experiment.  To.
12.3 Probability of Equally Likely Outcomes
Probability and Sample Space…….
Probability and Counting Rules
ICS 253: Discrete Structures I
Probability – part 1 Prof. Carla Gomes Rosen 1 1.
Introduction to Probability
Section 5.1 Basic Ideas.
Probability and Counting Rules
PROBABILITY.
PROBABILITY AND STATISTICS
Probability Probability underlies statistical inference - the drawing of conclusions from a sample of data. If samples are drawn at random, their characteristics.
Chapter 3 Probability.
Section 6.2 Probability Models
Tree diagrams and tables
Chapter 4 Probability.
Sets, Combinatorics, Probability, and Number Theory
Presentation transcript:

Probability and combinatorics Notes from Virtual Laboratories in Probability and Statistics

Discrete probability distributions List of mutually exclusive and exhaustive outcomes of some process and their probabilities Example - 1 coin toss Outcome:HeadTail Probability:1/2 Example - 1 fair die throw #spots: Probability:1/6 This is an example of a discrete uniform distribution

Uniform distribution and counting Atoms12... N Probability:1/N P(A) = N(A)/N e.g. A = get less than 3 when you roll a dice P(A) = P(1) + P(2) = 2/6 So calculation of probabilities  counting But counting can be complicated. Need rules

Multiplication rule for ordered events Flying from LA to NY and back How many airline combinations are possible? E.g. (American, United), (United, American), (United, United) These are called ordered pairs Rule: If the first element of the pair can happen in n 1 ways and for each of these ways, the second element can happen n 2 ways, then the total no. of possibilities is n 1 n 2

Probabilities using product rule A license number consists of two letters (uppercase) followed by five digits. 1.How many different license numbers are there? 2.If a license number is chosen at random, find the probability that the digits are all less than 5. Total license nos. = 26*26*10 5 Valid license nos.=26*26*4 5 P(all digits < 5) = Valid license nos./Total license nos. = (4/10) 5 =

Obstetricians and paediatricians Family needs to choose from 2 clinics: Clinic 1 has 2 obs and 2 paed Clinic 1 has 2 obs and 3 paed How many combos are possible? Unequal nos. of possibilities

Tree diagrams Total ways = O1O1 O2O2 O3O3 O4O4 P1P1 P2P2 P1P1 P1P1 P3P3 P4P4 P5P5 P3P3 P4P4 P5P5

Permutations Sample space S with n elements Want to choose an ordered sequence of k No of ways possible= nPk nPk= n(n-1)(n-2)…(n-k+1) In statistics this is called sampling without replacement A special form of pigeonhole principle

Arrangement problem Twelve books, consisting of 5 math books, 4 science books and 3 history books are randomly arranged on a bookshelf. 1.How many outcomes are there? 2.Find the probability that the books of each type are together. 3.Find the probability that the math books are together.

Combinations Consider a sample space S with n elements. A combination of size k from S is an (unordered) subset {x 1, x 2,..., x k } of S with k (distinct) elements C(n,k) = nPk/k! This is also sampling without replacement, but order is ignored

Games of chance A poker hand consists of 5 cards dealt without replacement and without regard to order from a deck of 52 cards. 1.Show that the number of poker hands is 2,598, Find the probability that a random poker hand is a full house (3 cards of one kind and 2 of another kind) 3.Find the probability that a random poker hand has 4 of a kind

Independence Events X and Y are said to be independent if the probability that X occurs is not affected by whether or not Y has occurred. Examples of independent events: It can be shown that independence implies: P(X and Y) = P(X)P(Y) (and not otherwise) This is called the multiplication rule for independent events.

Example: 2 security guards Guard 1: answers pager 80% of the time Guard 2: answers pager 50% of the time What is the probability i) they both respond to a call? ii) at least one responds to a call? X= event guard 1 answers; Y= guard 2 answers What can we say about X and Y?

Tree models to calculate probabilities

DISCRETE DISTRIBUTIONS Example - Family of 3 children. Let X = number of girls Possible values: X = 3 GGG X = 2 GGB GBG BGG X = 1 BBG BGB GBB X = 0 BBB Assume the 8 outcomes are equally likely so that x P(X = x)1/83/8 3/81/8 P(X  x)

Probability Distribution of a Discrete r.v. The probabilities may be written as: P(X i =x i ) is also referred to as the density function f(x) The cumulative distribution function (c.d.f.) is defined as

Example - Bernoulli trials Each trial is an 'experiment' with exactly 2 possible outcomes, "success" and "failure" with probabilities p and 1-p. Let X = 1 if success, 0 if failure Probability distribution is x 0 1 P(X = x)p 1-p Results for Bernoulli trials can be simulated using S-PLUS e.g. simulate results of a drug trial drug, success (cure) has probability p = 0.3 for each patient, 100 patients in trial. result _ rbinom(100, size=1, prob=p) result is a 100 vector that looks like 1,0,0,1,0,1,…...

Example-Binomial Experiment Generalisation of Bernoulli trials X ~ Bin(n,p)  X = # of successes in n Bernoulli trials e.g. X = # of heads in 10 tosses of a coin, n =, p = e.g. X = # of boys in a family of 5 children, n=, p = e.g. X = # of sixes in 100 rolls of a dice, n=, p= possible values for X = probability distribution for X (q = 1-p) P(X = k) =

Shape of the Binomial Distribution The shape of the binomial distribution depends on the values of n and p. probdistr_ dbinom(x=0:n, size=n, prob=p)

Example - 2 dice are thrown Let X denote the sum of the results. Outcomes: Assume the 36 outcomes are equally likely so each has probability = 1/36 Possible values of X are 2, 3,..., 12 e.g. P(X = 4) = P(1,3 or 2,2 or 3,1) = 3/36. The probability distribution is x P(X=x)1/362/363/36...3/362/361/36