Bernoulli Trials and Binomial Distribution

Similar documents
Bernoulli Trials and Binomial Distribution

Bernoulli Trials, Binomial and Cumulative Distributions

Density Curves & Normal Distributions

Binomial and Poisson Probability Distributions

STAT509: Discrete Random Variable

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

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.

EXAM. Exam #1. Math 3342 Summer II, July 21, 2000 ANSWERS

Inference for Proportions, Variance and Standard Deviation

Hypergeometric, Poisson & Joint Distributions

success and failure independent from one trial to the next?

Lecture 16. Lectures 1-15 Review

Topic 3: The Expectation of a Random Variable

CMPSCI 240: Reasoning Under Uncertainty

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

STT 315 Problem Set #3

Lecture 4: Random Variables and Distributions

CS 237: Probability in Computing

ST 371 (V): Families of Discrete Distributions

Introduction to Statistical Data Analysis Lecture 3: Probability Distributions

Discrete Probability Distributions

Discrete Distributions

4. Discrete Probability Distributions. Introduction & Binomial Distribution

Probability and Statistics Concepts

Inverse Normal Distribution and Sampling Distributions

Discrete Distributions

Chapter 3: Discrete Random Variable

Test 1 Review. Review. Cathy Poliak, Ph.D. Office in Fleming 11c (Department Reveiw of Mathematics University of Houston Exam 1)

Lecture 10. Variance and standard deviation

Expected Values, Exponential and Gamma Distributions

Guidelines for Solving Probability Problems

Copyright c 2006 Jason Underdown Some rights reserved. choose notation. n distinct items divided into r distinct groups.

Example 1. The sample space of an experiment where we flip a pair of coins is denoted by:

DEFINITION: IF AN OUTCOME OF A RANDOM EXPERIMENT IS CONVERTED TO A SINGLE (RANDOM) NUMBER (E.G. THE TOTAL

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

Lecture 2: Probability and Distributions

Random variables. Lecture 5 - Discrete Distributions. Discrete Probability distributions. Example - Discrete probability model

Some Special Discrete Distributions

Lecture 14. Text: A Course in Probability by Weiss 5.6. STAT 225 Introduction to Probability Models February 23, Whitney Huang Purdue University

Confidence Intervals for Two Means

Common Discrete Distributions

BINOMIAL DISTRIBUTION

1 INFO Sep 05

Lecture 2: Discrete Probability Distributions

Lecture 3. Discrete Random Variables

Probability: Why do we care? Lecture 2: Probability and Distributions. Classical Definition. What is Probability?

Outline PMF, CDF and PDF Mean, Variance and Percentiles Some Common Distributions. Week 5 Random Variables and Their Distributions

Binomial random variable

Expected Value - Revisited

Great Theoretical Ideas in Computer Science

Example continued. Math 425 Intro to Probability Lecture 37. Example continued. Example

Random Variables Example:

Discrete Probability Distributions

Estimation and Confidence Intervals

Bernoulli and Binomial Distributions. Notes. Bernoulli Trials. Bernoulli/Binomial Random Variables Bernoulli and Binomial Distributions.

Lecture 13. Poisson Distribution. Text: A Course in Probability by Weiss 5.5. STAT 225 Introduction to Probability Models February 16, 2014

Discrete probability distributions

Lecture 10: Probability distributions TUESDAY, FEBRUARY 19, 2019

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

Chapter 3: Probability 3.1: Basic Concepts of Probability

Lecture 2 Binomial and Poisson Probability Distributions

Lecture 20 Random Samples 0/ 13

Exponential, Gamma and Normal Distribuions

Chapter 7: Theoretical Probability Distributions Variable - Measured/Categorized characteristic

Review for Exam Spring 2018

The Normal Distribuions

Lecture 10: Bayes' Theorem, Expected Value and Variance Lecturer: Lale Özkahya

Gamma and Normal Distribuions

Notes for Math 324, Part 17

PubH 5450 Biostatistics I Prof. Carlin. Lecture 13

3 Multiple Discrete Random Variables

CSE 103 Homework 8: Solutions November 30, var(x) = np(1 p) = P r( X ) 0.95 P r( X ) 0.

Math 183 Statistical Methods

CS 361: Probability & Statistics

CSC Discrete Math I, Spring Discrete Probability

A Probability Primer. A random walk down a probabilistic path leading to some stochastic thoughts on chance events and uncertain outcomes.

Some Basic Concepts of Probability and Information Theory: Pt. 1

ANOVA: Comparing More Than Two Means

Statistics for Managers Using Microsoft Excel/SPSS Chapter 4 Basic Probability And Discrete Probability Distributions

Discrete Random Variables

Continuous-Valued Probability Review

1 Bernoulli Distribution: Single Coin Flip

Expected Values, Exponential and Gamma Distributions

7. Be able to prove Rules in Section 7.3, using only the Kolmogorov axioms.

POISSON RANDOM VARIABLES

Discrete Probability Distribution

Each trial has only two possible outcomes success and failure. The possible outcomes are exactly the same for each trial.

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

18.175: Lecture 13 Infinite divisibility and Lévy processes

Analysis of Engineering and Scientific Data. Semester

CS206 Review Sheet 3 October 24, 2018

MATH Solutions to Probability Exercises

Bernoulli and Binomial

Probability Density Functions and the Normal Distribution. Quantitative Understanding in Biology, 1.2

Conditional Probability

a zoo of (discrete) random variables

Random variables (discrete)

MAT X (Spring 2012) Random Variables - Part I

To find the median, find the 40 th quartile and the 70 th quartile (which are easily found at y=1 and y=2, respectively). Then we interpolate:

Transcription:

Bernoulli Trials and Binomial Distribution Sec 4.4-4.5 Cathy Poliak, Ph.D. cathy@math.uh.edu Office in Fleming 11c Department of Mathematics University of Houston Lecture 10-3339 Cathy Poliak, Ph.D. cathy@math.uh.edu Office in Fleming 11c Sec (Department 4.4-4.5 of Mathematics University of Lecture Houston 10 ) - 3339 1 / 16

Outline 1 Bernoulli Random Variables 2 Binomial Distribution Cathy Poliak, Ph.D. cathy@math.uh.edu Office in Fleming 11c Sec (Department 4.4-4.5 of Mathematics University of Lecture Houston 10 ) - 3339 2 / 16

Review Questions The following is a probability distribution: X -10 10 Probability 0.4 0.6 1. Determine the expected value (mean) of this probability distribution. a) 0 b) 2 c) -2 d) 10 2. Determine the variance of this probability distribution. a) 20 b) 100 c) 96 d) 0 Cathy Poliak, Ph.D. cathy@math.uh.edu Office in Fleming 11c Sec (Department 4.4-4.5 of Mathematics University of Lecture Houston 10 ) - 3339 3 / 16

Review Questions Suppose a random variable X has a mean of 20, E(X) = 20 and standard deviation of 5, SD(X) = 5. We have a new random variable Y, where Y = 3X + 10. 3. What is the mean (epxected value) of Y? a) 20 b) 70 c) 60 d) 30 4. What is the standard deviation of Y? a) 15 b) 25 c) 75 d) 5 Cathy Poliak, Ph.D. cathy@math.uh.edu Office in Fleming 11c Sec (Department 4.4-4.5 of Mathematics University of Lecture Houston 10 ) - 3339 4 / 16

Introduction Question Wallen Accounting Services specializes in tax preparation for individual tax returns. Data collected from past records reveals that 9% of the returns prepared by Wallen have been selected for audit by the Internal Revenue Service (IRS). 1. What is the probability that a customer of Wallen will be selected for audit? a. 0.09 b. 0.91 c. 1 d. 0 2. What is the probabiity that a customer is not selected for audit? a. 0.09 b. 0.91 c. 1 d. 0 Cathy Poliak, Ph.D. cathy@math.uh.edu Office in Fleming 11c Sec (Department 4.4-4.5 of Mathematics University of Lecture Houston 10 ) - 3339 5 / 16

Bernoulli Random Variable A Bernoulli random variable has only two possible values, usually desginated as 1 and 0. Suppose we look at the i th cusotmer of Wallen Accounting services. Let X be the random variable that indicates that the customer is selected for audit. Thus X = 1 is the customer is selected for audit, X = 0 if not seclected for audit. Selected for audit is the "success" and not selected for audit is "failure." The probabiity of succes is p and the probabiltiy of failure is 1 p. e.g. a coin is flipped (heads or tails), someone is either audited or not audited, p = 0.09, 1 - p = 0.91. Cathy Poliak, Ph.D. cathy@math.uh.edu Office in Fleming 11c Sec (Department 4.4-4.5 of Mathematics University of Lecture Houston 10 ) - 3339 6 / 16

Probability Function for Bernoulli Variable p, if x = 1 f (x) = P(x) = 1 p, if x = 0 0, if x 0, 1 A compact way of writing this is: f (x) = P(x) = p x (1 p) 1 x Cathy Poliak, Ph.D. cathy@math.uh.edu Office in Fleming 11c Sec (Department 4.4-4.5 of Mathematics University of Lecture Houston 10 ) - 3339 7 / 16

The Bernoulli Process The Bernoulli process must possess the following properties: 1. The experiment consists of n repeated trials. 2. Each trial in an outcome that may be classified as a sucess or failure. 3. The probability of success, denoted by p, remains constant from trial to trial. 4. The repeated trials are independent. Cathy Poliak, Ph.D. cathy@math.uh.edu Office in Fleming 11c Sec (Department 4.4-4.5 of Mathematics University of Lecture Houston 10 ) - 3339 8 / 16

Audit Example Today, Wallen has six new customers. Assume the chances of these six customers being audited are independent. This is a sequence of Bernoulli trials. We are interested in calculation the probabiltiy of obtaining a certian number of people being selected for audit. Let X i indicate the i th customer being selected for audit. Let Y = X 1 + X 2 + X 3 + X 4 + X 5 + X 6. What does Y represent? What is the probability that Y = 0? What is the probabiltiy that Y = 1? What is the probabiltiy that Y = 2? What is the probability that Y = n where n = 0, 1, 2, 3, 4, 5, 6? Cathy Poliak, Ph.D. cathy@math.uh.edu Office in Fleming 11c Sec (Department 4.4-4.5 of Mathematics University of Lecture Houston 10 ) - 3339 9 / 16

Binomial Probability Distribution The distribution of the count X of successes in the Binomial setting has a Binomial probability distribution. Where the parameters for a binomial probability distribution is: n the number of observations p is the probability of a success on any one observation The possible values of X are the whole numbers from 0 to n. As an abbreviation we say, X B(n, p). Binomial probabilities are calculated with the following formula: P(X = k) = n C k p k (1 p) n k Cathy Poliak, Ph.D. cathy@math.uh.edu Office in Fleming 11c Sec (Department 4.4-4.5 of Mathematics University of Lecture Houston 10) - 3339 10 / 16

Stopping at an intersection Suppose that only 25% of all drivers come to a complete stop at an intersection with a stop sign when not other cars are visible. What is the probability that of the 20 randomly chosen drivers, 1. Exactly 6 will come to a complete stop? 2. No one will come to complete stop? 3. At least one will come to a complete stop? 4. At most 6 will come to a complete stop? Cathy Poliak, Ph.D. cathy@math.uh.edu Office in Fleming 11c Sec (Department 4.4-4.5 of Mathematics University of Lecture Houston 10) - 3339 11 / 16

Using R To find P(X =k) use dbinom(k,n,p). From previous example P(X = 6), k = 6, n = 20, p = 0..25 > dbinom(6,20,.25) [1] 0.1686093 To find P(X k) use pbinom(k,n,p). From previous example P(X 6) > pbinom(6,20,0.25) [1] 0.7857819 What is the probability that less than 6 will come to a complete stop? What is the probability of at least 6? Cathy Poliak, Ph.D. cathy@math.uh.edu Office in Fleming 11c Sec (Department 4.4-4.5 of Mathematics University of Lecture Houston 10) - 3339 12 / 16

Example #2 A fair coin is flipped 30 times. 1. What is the probability that the coin comes up heads exactly 12 times? P(X = 12), n = 30, p = 0.5 > dbinom(12,30,0.5) [1] 0.08055309 2. What is the probability that the coin comes up heads less than 12 times? P(X < 12) = P(X 11) > pbinom(11,30,0.5) [1] 0.1002442 3. What is the probability that the coin comes up heads more than 12 times? P(X > 12) = 1 P(X 12) > 1-pbinom(12,30,0.5) [1] 0.8192027 4. What is the probability that the coin comes up heads between 9 and 13 times, inclusive? P(9 X 13) = P(X 13) P(X 8) > pbinom(13,30,0.5)-pbinom(8,30,.5) [1] 0.28427 Cathy Poliak, Ph.D. cathy@math.uh.edu Office in Fleming 11c Sec (Department 4.4-4.5 of Mathematics University of Lecture Houston 10) - 3339 13 / 16

Mean and Variance of a Binomial Distribution If a count X has the Binomial distribution with number of observations n and probability of success p, the mean and variance of X are µ X = E[X] = np σ 2 X = Var[X] = np(1 p) Then the standard deviation is the square root of the variance. Cathy Poliak, Ph.D. cathy@math.uh.edu Office in Fleming 11c Sec (Department 4.4-4.5 of Mathematics University of Lecture Houston 10) - 3339 14 / 16

Example #3 Suppose it is known that 80% of the people exposed to the flu virus will contract the flu. Out of a family of five exposed to the virus, what is the probability that: 1. No one will contract the flu? 2. All will contract the flu? 3. Exactly two will get the flu? 4. At least two will get the flu? Cathy Poliak, Ph.D. cathy@math.uh.edu Office in Fleming 11c Sec (Department 4.4-4.5 of Mathematics University of Lecture Houston 10) - 3339 15 / 16

Example Continued Suppose it is known that 80% of the people exposed to the flu virus will contract the flu. Suppose we have a family of five that were exposed to the flu. 1. Find the mean 2. Find the variance of this distribution. Cathy Poliak, Ph.D. cathy@math.uh.edu Office in Fleming 11c Sec (Department 4.4-4.5 of Mathematics University of Lecture Houston 10) - 3339 16 / 16