REPEATED TRIALS. p(e 1 ) p(e 2 )... p(e k )

Similar documents
Discrete Random Variables

Math 1313 Experiments, Events and Sample Spaces

Introductory Probability

Lecture 6. Probability events. Definition 1. The sample space, S, of a. probability experiment is the collection of all

Chapter 8 Sequences, Series, and Probability

Senior Math Circles November 19, 2008 Probability II

Discrete Random Variables

Sets and Set notation. Algebra 2 Unit 8 Notes

Chapter 2: Discrete Distributions. 2.1 Random Variables of the Discrete Type

MATH STUDENT BOOK. 12th Grade Unit 9

Lecture 6: The Pigeonhole Principle and Probability Spaces

Discrete Distributions

Lecture notes for probability. Math 124

ELEG 3143 Probability & Stochastic Process Ch. 2 Discrete Random Variables

Chapter 3. Discrete Random Variables and Their Probability Distributions

Example. If 4 tickets are drawn with replacement from ,

Elementary Discrete Probability

MATH Notebook 5 Fall 2018/2019

Discrete Probability. Chemistry & Physics. Medicine

F 99 Final Quiz Solutions

Probability 5-4 The Multiplication Rules and Conditional Probability

P (A B) P ((B C) A) P (B A) = P (B A) + P (C A) P (A) = P (B A) + P (C A) = Q(A) + Q(B).

1 The Basic Counting Principles

success and failure independent from one trial to the next?

Introduction to Statistical Data Analysis Lecture 3: Probability Distributions

Introduction to Probability, Fall 2009

Probability Theory and Applications

Probability Experiments, Trials, Outcomes, Sample Spaces Example 1 Example 2

Chapter 4a Probability Models

Theorem 1.7 [Bayes' Law]: Assume that,,, are mutually disjoint events in the sample space s.t.. Then Pr( )

Section 2.4 Bernoulli Trials

1. When applied to an affected person, the test comes up positive in 90% of cases, and negative in 10% (these are called false negatives ).

Discrete Structures for Computer Science

Introduction to Probability 2017/18 Supplementary Problems

Discrete Probability

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 14

1 Normal Distribution.

Module 8 Probability

Statistics for Economists. Lectures 3 & 4

Binomial and Poisson Probability Distributions

Chapter 1: Revie of Calculus and Probability

4. The Negative Binomial Distribution

Business Statistics. Lecture 3: Random Variables and the Normal Distribution

2011 Pearson Education, Inc

MTH302 Quiz # 4. Solved By When a coin is tossed once, the probability of getting head is. Select correct option:

Lecture 2 Binomial and Poisson Probability Distributions

Probability, Conditional Probability and Bayes Rule IE231 - Lecture Notes 3 Mar 6, 2018

An-Najah National University Faculty of Engineering Industrial Engineering Department. Course : Quantitative Methods (65211)

Lesson One Hundred and Sixty-One Normal Distribution for some Resolution

Discrete Mathematics for CS Spring 2006 Vazirani Lecture 22

Probability and random variables. Sept 2018

Chapter 7: Section 7-1 Probability Theory and Counting Principles

Discrete Random Variables. Discrete Random Variables

Probability COMP 245 STATISTICS. Dr N A Heard. 1 Sample Spaces and Events Sample Spaces Events Combinations of Events...

Discrete Distributions

STAT 285 Fall Assignment 1 Solutions

Lecture 3. Discrete Random Variables

Week 6, 9/24/12-9/28/12, Notes: Bernoulli, Binomial, Hypergeometric, and Poisson Random Variables

Continuous-Valued Probability Review

Relationship between probability set function and random variable - 2 -

ELEG 3143 Probability & Stochastic Process Ch. 1 Probability

ST 371 (V): Families of Discrete Distributions

STAT2201. Analysis of Engineering & Scientific Data. Unit 3

CS206 Review Sheet 3 October 24, 2018

Chapter 1 (Basic Probability)

Random Variable. Discrete Random Variable. Continuous Random Variable. Discrete Random Variable. Discrete Probability Distribution

Chapter Learning Objectives. Random Experiments Dfiii Definition: Dfiii Definition:

What is Probability? Probability. Sample Spaces and Events. Simple Event

MgtOp 215 Chapter 5 Dr. Ahn

Week 12-13: Discrete Probability

Binomial Probability. Permutations and Combinations. Review. History Note. Discuss Quizzes/Answer Questions. 9.0 Lesson Plan

Suppose that you have three coins. Coin A is fair, coin B shows heads with probability 0.6 and coin C shows heads with probability 0.8.

Probability and Discrete Distributions

Lecture 16. Lectures 1-15 Review

Chapter 2 Random Variables

Probability. Chapter 1 Probability. A Simple Example. Sample Space and Probability. Sample Space and Event. Sample Space (Two Dice) Probability

Example. What is the sample space for flipping a fair coin? Rolling a 6-sided die? Find the event E where E = {x x has exactly one head}

UCSD CSE 21, Spring 2014 [Section B00] Mathematics for Algorithm and System Analysis

Discrete Probability Distributions

PROBABILITY.

With Question/Answer Animations. Chapter 7

RVs and their probability distributions

STAT:5100 (22S:193) Statistical Inference I

Lesson B1 - Probability Distributions.notebook

Probability Theory. Introduction to Probability Theory. Principles of Counting Examples. Principles of Counting. Probability spaces.

Math P (A 1 ) =.5, P (A 2 ) =.6, P (A 1 A 2 ) =.9r

STAT509: Discrete Random Variable

Chapter 5. Means and Variances

Chapter 2.5 Random Variables and Probability The Modern View (cont.)

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 12. Random Variables: Distribution and Expectation

CSC Discrete Math I, Spring Discrete Probability

Expected Value 7/7/2006

Introduction to Probability, Fall 2013

Discrete Random Variable Practice

ECE 450 Lecture 2. Recall: Pr(A B) = Pr(A) + Pr(B) Pr(A B) in general = Pr(A) + Pr(B) if A and B are m.e. Lecture Overview

Discrete Distributions

Random Variable. Random Variables. Chapter 5 Slides. Maurice Geraghty Inferential Statistics and Probability a Holistic Approach

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 16. Random Variables: Distribution and Expectation

F71SM STATISTICAL METHODS

CHAPTER 8: Polar 1. Convert to polar.

Transcription:

REPEATED TRIALS We first note a basic fact about probability and counting. Suppose E 1 and E 2 are independent events. For example, you could think of E 1 as the event of tossing two dice and getting a sum of 7. You could think of E 2 as the event of tossing two dice and getting a sum of 12. Now ask the question: What is the probability of tossing two dice and getting a sum of 7 on the first toss and getting a sum of 12 on the second toss? The number of ways you can have a success on the first toss is 6, since the two dice can land as (1, 6), (2, 5), (3, 4), (4, 3), (5, 1), (6, 1), and there are 36 ways the two dice can land. There is only way you can get a sum of 12. The total number of ways you can have a success is then 6 1 and the total number of ways the two dice can land twice is 36 36. So the probability of a success 6 1 (getting a 7 on the first toss and 12 on the second toss) is 36 36. Notice this is the same as p(e 1 ) p(e 2 ) since E 1 and E 2 are independent events. More generally, if E 1, E 2,..., E k are independent events, then the probability of E 1 followed by E 2,..., E k is p(e 1 ) p(e 2 )... p(e k ) Now suppose we play a game 5 times, where the probability of winning is p and the probability of losing is q = 1 p. We could think of the last example where the game is tossing two dice, and if the sum is 7 then you win, otherwise you lose. In this case p = 1 6 and q = 5 6. We now ask the following question: What is the probability of winning the first and third times, and losing the second, fourth, and fifth times you play the game? Since the probability of winning the first game is p, and the probability of losing the second game is q, hence the probability of winning the first game and then losing the second game is the product pq. Continuing this reasoning, the probability of winning the first, losing the second, winning the third, losing the fourth and losing the fifth game is pqpqq = p 2 q 3. More generally, suppose you are going to play the game n times and suppose you have specified k times when you win, hence you know the n k times when you lose. In our last example n = 5 and we specified k = 2 times, the first and

third times, when you win, hence you lose 5 2 = 3 times: the second, fourth, and fifth games. The probability of winning those k chosen times and losing the other times is then p k q n k. We now ask a more complicated question. Suppose you play a game n times where the probability of winning is p and the probability of losing is q = 1 p. What is the probability of winning exactly k times? We first count the number of ways of choosing exactly which k times you win the game. This is n C k. We just showed that p k q n k is the probability of winning k times in a specified order, hence the probability of winning k times in n trials is the product n C k p k q n k, which is the probability of winning k times in any order. If we denote p n (k) as the probability of winning exactly k times out of n games, where the probability of winning a game is p and the probability of losing is q = 1 p, then p n (k) = n C k p k q n k. Notation: Such repeated trials are also referred to as Bernoulli trials. EXAMPLES Problem: Suppose you toss a fair coin 6 times. What is the probability that the coin will land heads exactly 3 times? n = 6, k = 3, p = q = 1 2, so p n(k) = n C k p k q n k = 6 C 3 ( 1 2 )3 ( 1 2 )6 3 = 5 16 Problem: Suppose you toss a toss a pair of dice 6 times. What is the probability that the coin will get a sum of 7 exactly 3 times? n = 6, k = 3, p = 1 6, so p n(k) = n C k p k q n k = 6 C 3 ( 1 6 )3 ( 5 6 )6 3 0.0535837

Problem: Suppose you toss a fair coin 9 times. List the probabilities that the coin lands exactly 0 times, exactly 1 times, exactly 2 times,..., and exactly 9 times. Then construct a chart showing these probabilities. n k p n (k) = n C k p k q n k 9 0 9C 0 (1/2) 0 (1/2) 9 = 1/512.00195 9 1 9C 1 (1/2) 1 (1/2) 8 = 9/512.0176 9 2 9C 2 (1/2) 2 (1/2) 7 = 9/128.0703 9 3 9C 3 (1/2) 3 (1/2) 6 = 21/128.164 9 4 9C 4 (1/2) 4 (1/2) 5 = 63/256.246 9 5 9C 5 (1/2) 5 (1/2) 4 = 63/256.246 9 6 9C 6 (1/2) 6 (1/2) 3 = 21/128.164 9 7 9C 7 (1/2) 7 (1/2) 2 = 9/128.0703 9 8 9C 8 (1/2) 8 (1/2) 1 = 9/512.0176 9 9 9C 9 (1/2) 9 (1/2) 0 = 1/512.00195 Problem: 100 points are placed randomly in the interval (0, 10). What is the probability that exactly 20 of these points are in the interval (4, 6)? This can be considered as a problem in repeated trials. The first experiment is to place the first point, the second experiment is to place the second point, etc. Let p be the probability that a single point lands within the subinterval (4, 6). Then p = 2/10 = 1/5, the ratio of the lengths of the two intervals, and q is the probability of a failure = 4/5. In this problem n = 100 and k = 20. p n (k) = p 100 (20) = n C k p k q n k = 100 C 20 (1/5) 20 (4/5) 80.0993 More generally, the probability that k points placed randomly in an interval (a, b) lie within a subinterval (c, d) is p n (k) = n C k p k q n k where p = b a and q = 1 p. c d In our example, n = 100, k = 20, a = 0, b = 10, c = 4, and d = 6.

Problem: An apartment building has residents living on the second and third floors. The residents use an elevator to get to their apartments. There are 20 people living on the second floor. The third floor has more luxurious, larger apartments and there are 6 people living on the third floor. Six random residents use the elevator to get to their apartments. What is the probability that exactly 4 of the people exit on the second floor and that 2 people exit on the third floor? We consider each time one of the resident uses the elevator as a separate event. In fact we consider it as playing a game. We consider a resident exiting on the second floor as winning and exiting on the third floor as losing. The probability of winning is p = 20 6 and the probability of losing is q = 26 26 = 1 p. Our original question is equivalent to the following question: What is the probability of winning the game exactly k = 4 times when playing the game n = 6 times? We use the formula p n (k) = n C k p k q n k = 6 C 4 ( 20 26 )4 ( 6 26 )2 0.194. Problem: An apartment building has 11 residents. There are 7 residents on the second floor and 4 residents on the third floor. Six random residents use the elevator to get to their apartments. a) Make a table listing the probabilities that exactly k of the 6 residents exit on the second floor, for k = 0, 1, 2, 3, 4, 5, 6. b) Make a chart showing the probabilities. c) Make a graph with a smooth curve through the probabilities. Answers: a) Let p be the probability that a resident exits on the second floor. Then p = 7/11 since the number of ways of choosing a resident who lives on the second floor is 7 and the total number of ways of choosing a resident is 11. Then q = 1 p = 4/11. We consider the first resident using the elevator as the first trial, the second resident using the elevator as the second trial, etc. In this problem the number of trials n = 6. We then compute p n (k) = n C k p k q n k with n = 6 and k = 0, 1, 2, 3, 4, 5, 6. and list the results in a table:

n k p n (k) = n C k p k q n k 6 0 6C 0 (7/11) 0 (4/11) 6 0.00231 6 1 6C 1 (7/11) 1 (4/11) 5 0.0243 6 2 6C 2 (7/11) 2 (4/11) 4 0.106 6 3 6C 3 (7/11) 3 (4/11) 3 0.248 6 4 6C 4 (7/11) 4 (4/11) 2 0.325 6 5 6C 5 (7/11) 5 (4/11) 1 0.228 6 6 6C 6 (7/11) 6 (4/11) 0 0.0664 b) Enter the probabilities.00231,...,.0664 in to a column in an Excel spread sheet and use the chart wizard to create a column chart. Change the labels and get a chart representing the probabilities. Click here to see such a chart. c) Enter the probabilities.00231,...,.0664 in to a column in an Excel spread sheet and use the chart wizard to create a smooth curve (look under Custom Graphs and select Smooth Lines.) Change the labels and get a smooth curve through the probabilities. Click here to see such a chart. Problem: An apartment building has 11 residents. There are 7 residents on the second floor and 4 residents on the third floor. Six people use the elevator at random to go to their apartments. What is the probability that at most 3 of the residents exit on the second floor.? We use the notation p(0 k 3) to stand for the probability the number k of the 6 residents who exit on the second floor is between 0 and 3. The events that there are exactly k people who exit on the second floor are mutually exclusive, as k = 0, 1, 2, 3, so p(0 k 3) = p 6 (0)+p 6 (1)+p 6 (2)+p 6 (3) = 6 C 0 p 0 q 6 + 6 C 1 p 1 q 5 + 6 C 0 p 2 q 4 + 6 C 0 p 3 q 2 In the above, p is the probability of a success (a resident exits on the second floor) = 7/11 and q is the probability of a failure (a resident exits on the third floor ) = 4/11. You can use your calculator or computer to verify that p(0 k 3).381 In general, if the probability of a success is p and the probability of a failure is q (where p + q = 1), and if the experiment is performed n times, the probability

that the number k of successes is between k 1 and k 2, p n (k 1 k k 2 ) = n C k1 p k1 q n k1 + + n C k2 p k2 q n k2. If you are familiar with the summation notation, the formula may be written more compactly as: p n (k 1 k k 2 ) = k=k2 k=k 1 nc k p k q n k. The notation means let k = k 1, k = k 1 + 1,..., k = k 2 nc k p k q n k and add those terms. in the expression In our previous example, n = 6, p = 7/11, q = 4/11, k 1 = 0, k 2 = 3. A more useful problem: A company manufactures memory chips. The probability that a randomly selected memory chip, after it is shipped to a customer, is defective equals.015. An order of 1000 memory chips is received. What is the probability that the total number of defective memory chips received does not exceed 12? In this example the probability that a memory chip is defective p =.015 and q = 1 p =.985. Also, n = 1000, k 1 = 0 and k 2 = 12 Using our formula for the probability that the number of occurences k is between k 1 and k 1, p 1000 (0 k 12) = k=12 k=0 1000C k (.015) k (.985) 1000 k. If you use your calculator or computer, you can verify that the answer is approximately.27. THE BINOMIAL THEOREM We now ask the following question: Suppose you have an alphabet that has x consonants and y vowels. For example, x could be 20 and y could be 6. How many code words of length n are there? For example, n could be 4 and so you could be asking how many code words of length 4 are there. Recall a code is a sequence of four letters (repetitions allowed.)

First way of counting: There are x + y letters and so there are x + y ways to choose the first letter, and since repetitions are allowed, there are x + y ways to choose the second letter, etc. So in all there are (x + y) n ways to choose the n letters. Second way of counting: We count the number of ways that all n of the letters are consonants, then we count the number of ways that n 1 of the letters are consonants and 1 letter is a vowel, then we count the number of ways that n 2 of the letters are consonants and 2 letter are vowels, etc., and finally the number of ways that all the letters are vowels. The number of ways that all n of the letters are consonants is x n = n C n x n y 0 nc n 1 is the number of ways of choosing where the one vowel can be placed. After that, there are x n 1 ways to place the consonants, and y ways to place the vowel. Hence the number of ways that n 1 of the letters are consonants is nc n 1 x n 1 y 1. Continue in this fashion. These are mutually exclusive events, so we can find the total number of ways by taking the sum: nc n x n y 0 + n C n 1 x n 1 y 1 + n C n 2 x n 2 y 2 + nc 0 x 0 y n. Using our summation notation, the number of ways the ways you can form a code word of length n is n nc k x n k y k. k=0 You might notice that this is similar to the formula given earlier for p n (k 1 k k n ) with k 1 = 0 and k 2 = n (allowing all possible values of k) except that the p n (k 1 k k n ) represents probabilities, hence the terms p and q include denominators. The same quantity computed two different ways give us the famous Binomial Theorem (x + y) n = n nc k x n k y k. k=0

FINAL OBSERVATIONS: In the examples, you will notice that when you graph the probabilities {p n (k) = nckp k q n k } either using a bar (column) chart or a smooth curve through the points {(k, p n (k))}, that when p = q = 1/2 then you get a bell-shaped curve which is symmetric about a vertical line though the highest point. Such a curve is called a normal distribution. On the other hand, when p and q are not equal, then the curve becomes distorted, or skewed, and it is still called a distribution, but it is not a normal distribution. Finally, we proved the Binomial Theorem only for the case that x and y are integers. It is easy to extend the formula to rational numbers and then using a little analysis (beyond the scope of this course) to all numbers. END OF LECTURE