Stat 211 Week Five. The Binomial Distribution

Similar documents
Chapter 8 Solutions Page 1 of 15 CHAPTER 8 EXERCISE SOLUTIONS

The Binomial distribution

ECON 214 Elements of Statistics for Economists 2016/2017

CHAPTER 10: Introducing Probability

The binomial distribution

Chapter 3 - Lecture 5 The Binomial Probability Distribution

Stat 20: Intro to Probability and Statistics

Math 14 Lecture Notes Ch Mean

Math 361. Day 8 Binomial Random Variables pages 27 and 28 Inv Do you have ESP? Inv. 1.3 Tim or Bob?

CHAPTER 6 Random Variables

Econ 6900: Statistical Problems. Instructor: Yogesh Uppal

Statistical Methods for NLP LT 2202

Probability Distributions for Discrete RV

Probability & Sampling The Practice of Statistics 4e Mostly Chpts 5 7

Lesson 97 - Binomial Distributions IBHL2 - SANTOWSKI

Opening Exercise: Lesson 91 - Binomial Distributions IBHL2 - SANTOWSKI

Stat511 Additional Materials

MA 1125 Lecture 18 - Normal Approximations to Binomial Distributions. Objectives: Compute probabilities for a binomial as a normal distribution.

Random Variables. 6.1 Discrete and Continuous Random Variables. Probability Distribution. Discrete Random Variables. Chapter 6, Section 1

Probability Distributions

Chapter 4. Section 4.1 Objectives. Random Variables. Random Variables. Chapter 4: Probability Distributions

The binomial distribution p314

Sec$on 6.1: Discrete and Con.nuous Random Variables. Tuesday, November 14 th, 2017

6.1 Discrete and Continuous Random Variables. 6.1A Discrete random Variables, Mean (Expected Value) of a Discrete Random Variable

Chapter 6: Random Variables. Ch. 6-3: Binomial and Geometric Random Variables

Discrete Probability Distribution

Chapter 5 Basic Probability

A random variable (r. v.) is a variable whose value is a numerical outcome of a random phenomenon.

The Binomial Distribution

Examples: Random Variables. Discrete and Continuous Random Variables. Probability Distributions

Probability mass function; cumulative distribution function

Stochastic Calculus, Application of Real Analysis in Finance

Part 1 In which we meet the law of averages. The Law of Averages. The Expected Value & The Standard Error. Where Are We Going?

Marquette University MATH 1700 Class 8 Copyright 2018 by D.B. Rowe

Discrete Probability Distributions

The Normal Probability Distribution

Part V - Chance Variability

Chapter 7. Random Variables

The Binomial Distribution

HHH HHT HTH THH HTT THT TTH TTT

MA 1125 Lecture 12 - Mean and Standard Deviation for the Binomial Distribution. Objectives: Mean and standard deviation for the binomial distribution.

The Binomial Probability Distribution

Chapter 6: Random Variables

Probability and Statistics. Copyright Cengage Learning. All rights reserved.

Chapter 5. Sampling Distributions

Module 4: Probability

Statistics 6 th Edition

Elementary Statistics Lecture 5

Statistics for Business and Economics: Random Variables (1)

Statistics for Managers Using Microsoft Excel 7 th Edition

Part 10: The Binomial Distribution

The Binomial and Geometric Distributions. Chapter 8

5.4 Normal Approximation of the Binomial Distribution

We use probability distributions to represent the distribution of a discrete random variable.

Statistical Methods in Practice STAT/MATH 3379

Business Statistics 41000: Probability 4

Section 6.3 Binomial and Geometric Random Variables

Binomial population distribution X ~ B(

Binomial Random Variables. Binomial Random Variables

Probability is the tool used for anticipating what the distribution of data should look like under a given model.

MA 1125 Lecture 14 - Expected Values. Wednesday, October 4, Objectives: Introduce expected values.

MATH 446/546 Homework 1:

CHAPTER 4 DISCRETE PROBABILITY DISTRIBUTIONS

Binomial Random Variables

12. THE BINOMIAL DISTRIBUTION

12. THE BINOMIAL DISTRIBUTION

Theoretical Foundations

Random Variables CHAPTER 6.3 BINOMIAL AND GEOMETRIC RANDOM VARIABLES

guessing Bluman, Chapter 5 2

Probability Distributions. Definitions Discrete vs. Continuous Mean and Standard Deviation TI 83/84 Calculator Binomial Distribution

5.2 Random Variables, Probability Histograms and Probability Distributions

The Central Limit Theorem. Sec. 8.2: The Random Variable. it s Distribution. it s Distribution

Section Distributions of Random Variables

Mathacle. PSet Stats, Concepts In Statistics Level Number Name: Date: Distribution Distribute in anyway but normal

Section 5 3 The Mean and Standard Deviation of a Binomial Distribution!

A random variable (r. v.) is a variable whose value is a numerical outcome of a random phenomenon.

Binomial and multinomial distribution

Chapter 11. Data Descriptions and Probability Distributions. Section 4 Bernoulli Trials and Binomial Distribution

Law of Large Numbers, Central Limit Theorem

chapter 13: Binomial Distribution Exercises (binomial)13.6, 13.12, 13.22, 13.43

I can use simulation to model chance behavior. I can describe a probability model for a chance process. I can use basic probability rules, including

Conditional Probability. Expected Value.

DESCRIBING DATA: MESURES OF LOCATION

Chapter 6: Random Variables

Probability Distributions: Discrete

MA : Introductory Probability

Binomial Distributions

MATH 118 Class Notes For Chapter 5 By: Maan Omran

Lecture 6 Probability

MATH1215: Mathematical Thinking Sec. 08 Spring Worksheet 9: Solution. x P(x)

Binomial Random Variable - The count X of successes in a binomial setting

Lecture 4: The binomial distribution

When we look at a random variable, such as Y, one of the first things we want to know, is what is it s distribution?

Mean, Median and Mode. Lecture 2 - Introduction to Probability. Where do they come from? We start with a set of 21 numbers, Statistics 102

When we look at a random variable, such as Y, one of the first things we want to know, is what is it s distribution?

Probability Distribution

A useful modeling tricks.

Binomial Distributions

CHAPTER 6 Random Variables

+ Chapter 7. Random Variables. Chapter 7: Random Variables 2/26/2015. Transforming and Combining Random Variables

Transcription:

Stat 211 Week Five The Binomial Distribution

Last Week E x E x = x p(x) = n p σ x = x μ x 2 p(x) We will see this again soon!!

Binomial Experiment We have an experiment with the following qualities : 1. A fixed number of trials. 2. Each trial has a result of either success or failure. 3. P(success) is the same for every trial. 4. Each trial is independent of all others. 5. X = # of successes So X count the successes.

Is it Binomial! Flip a coin 30 times, the side that lands upward is observed (we want to flip heads). 1. 30 trials 2. Success = Heads, Failure = Tails 3. P(Success) = 0.5 on every trial. 4. Trials are independent, flips don t affect each other. 5. X = Side that lands up (can equal an H or a T) Does not count number of successes.

Is it Binomial! Flip a coin 30 times, the side that lands upward is observed (we want to flip heads). This is NOT a Binomial Experiment!!!

Is it Binomial! Roll a die 24 times, the number of 6 s is observed. 1. 24 trials 2. Success = 6, Failure = Anything else 3. P(Success) = 1 on every trial. 6 4. Trials are independent, rolls don t affect each other. 5. X = # of 6 s = Number of successes

Is it Binomial! Roll a die 24 times, the number of 6 s is observed. This is a Binomial Experiment!!! We meet all of the criteria!

Binomial Distribution We let X = # successes in a binomial experiment. From this we say : X ~ Binomial(n, p) X ~ B (n, p) p = P(success per trial)

Mean and St. Dev. for Binomial Our mean for Binomial E x = μ x = n p Our standard deviation for Binomial SS x = σ x = n p (1 p)

Example of Mean/St. Deviation X ~ Binomial(n = 4, p = ½) E x = μ x = n p E x = μ x = 4 1 = 2 2 SS x = σ x = n p (1 p) SS x = σ x = 4 1 2 (1 1 2 ) = 1 = 1

Ideas from last week E x = μ x = x p(x) x p(x) 0 1 2 1 4 6 16 16 16 3 4 4 1 16 16 E x = 0 1 16 + 1 4 16 + 2 6 16 + 3 4 16 + 4 1 16 = 32 16 = 2

More Ideas from Last Week SS x = σ x = x μ x 2 p(x) x p(x) 0 1 2 1 16 4 16 3 4 V x = 0 2 2 1 + 1 2 2 4 16 16 + 2 2 2 6 + 3 2 2 4 + 4 2 2 1 16 16 6 16 4 16 1 16 V x = 4 16 + 4 16 + 0 16 + 4 16 + 4 16 = 16 16 = 1 SS x = V(x) = 1 = 1 16

Notice We get the same results both way!!! But, using the Binomial equations is way way way easier!!!! It is a shortcut.

Another Example X Binomial(n = 480, p = 1 6 ) μ x = E x = n p = 480 1 6 = 80 σ x = n p (1 p) = 480 1 6 5 6 = 66.7 σ x = 8.2

Binomial Probabilities What if we have a Binomial experiment and we want to calculate the probability of a certain number of successes (counted as X) of occurring? There s a formula for that!!! P X = x = n x px 1 p n x X = # successes x = # of successes of interest

Binomial Formula Explained P X = x = CCCCCCCCCCC, hoo mmmm wwww ccc ww haaa x mmmm sssssssss n x px 1 p n x ppppppppppp oo sssssss mmmmmmmmmm x ttttt ppppppppppp oo fffffff mmmmmmmmmm n x ttttt

Example of the Formula #1 A coin is tossed 3 times, find P(2 Heads). Sample space : {HHH, HHT, HTH, THH, TTH, THT, HTT, TTT} what we want! P 2 HHHHH = # sssssss ppppppppppppp # ttttt ppppppppppppp = 3 8

Example #1 Continues We want P(2 Heads), this is P(Successes = 2) or P(X = 2). The experiment is Binomial! (Use the formula!) X ~ B(n = 3, p = ½ ) P X = 2 = 3 2 1 2 2 1 2 1 = 3 1 2 1 2 1 = 3 2 8 The same as we saw with the other method.

Formula Example #2 X ~ Binomial(n = 10, p = 1 5 ) Find P(X = 3) P X = 3 = 10 3 1 5 3 4 5 7 = 120 1 125 16384 78125 = 0.201

Something a Little Different What if we aren t interested in an exact number of successes, but in a range of successes. For instance seven or fewer sucesses. We want P(X 7). One way is to add up all of the probabilities in this grouping. P X 7 = P(0 1 2 3 4 5 6 7) = P 0 + P 1 + P 2 + P 3 + P 4 + P 5 + P 6 + P 7 Each of the smaller components can be found with the formula.

Why That is Possible Finding the probabilities of each piece of the group comes from our probability laws. P(A B) = P(A) + P(B) P(A B) In our case the pieces are all mutually exclusive, so we can just add the probabilities of each component without worrying about any overlap.

Too Much Effort Doing a problem that way is possible but not feasible. There is an easier way!!! The table.

Using the Table Example #1 X ~ Binomial(n=10, p=0.5) P X 3 = P 0 + P 1 + P 2 + P 3 P 0 = 10 0 1 2 0 1 2 10 = 1 1 2 0 1 2 10 = 0.0009 P 1 = 10 1 1 2 1 1 2 9 = 10 1 2 1 1 2 9 = 0.0097 P 2 = 10 2 1 2 2 1 2 8 = 45 1 2 2 1 2 8 = 0.0439 P 3 = 10 3 1 2 3 1 2 7 = 120 1 2 3 1 2 7 = 0.117 P(X 3) = 0.0009 + 0.0097 + 0.0439 + 0.117 = 0.1715

Example #1 Continued Look in the table. P(X 3) = 0.1719. These are really close, but not perfect which is OK! Usually they will be close but not perfectly matched, this mainly happens due to rounding error in the first approach or due to any rounding in the table itself.

Using the Table Example #2 X ~ Binomial(n=10, p= ½ ) Find P(X 2) From the table we get 0.9730 The tables are important, we will being using several different tables throughout the remainder of the semester.

Forgoing the Formula X ~ Binomial(n=10, p= ½ ) Find P(X = 3) Suppose I don t want to use the formula, I can use the table instead. How? P(X=3) = P(0) + P(1) + P(2) + P(3) - P(0) - P(1) - P(2)

Forgoing the Formula X ~ Binomial(n=10, p= ½ ) Find P(X = 3) Suppose I don t want to use the formula, I can use the table instead. How? P(X=3) = P(0) + P(1) + P(2) + P(3) - P(0) - P(1) - P(2) This is the same as : P(X 3) P(X 2)

Forgoing the Formula Using the formula : P X = 3 = 10 3 Using the table : P(X 3) = 0.1719 P(X 2) = 0.0547 1 2 3 1 2 7 = 0.117 P(X = 3) = 0.1719 0.0547 = 0.1172 They are super duper close, YAY!!!

What about >? P(X > 2) (where n = 5) P(X > 2) = P(3 4 5) = P(3) + P(4) + P(5) We could do this in pieces, but that is a pain. (>.<) We need another way!!!

A better way for > Remember the sample space, in this case it is : {0, 1, 2, 3, 4, 5} P(Sample Space) = 1 = P(0) + P(1) + P(2) + P(3) + P(4) + P(5) Remember compliment. If we want P(not E) we use 1 P(E), we can use that here. P(X > 2) = 1 P(X 2)

Proof that it works!!! 1 P(X 2) P(Sample Space) P(X 2) = P(0) + P(1) + P(2) + P(3) + P(4) + P(5) - P(0) - P(1) - P(2) = P(0) + P(1) + P(2) + P(3) + P(4) + P(5) - P(0) - P(1) - P(2) = P(3) + P(4) + P(5) = P(X > 2)

Example for > (or even *gasp*) X ~ Binomial(n = 5, p = 0.3) P(X 3) = P(X > 2) = P(3) + P(4) + P(5) P 3 = 5 3 0.3 3 0.7 2 = 0.132 P 4 = 5 4 0.3 4 0.7 1 = 0.028 P 5 = 5 5 0.3 5 0.7 0 = 0.002 P(X 3) = 0.132 + 0.028 + 0.002 = 0.162 P(X 3) = 1 - P(X 2) = 1 0.8369 = 0.1613 close

What about in between? P 2 X 4 = P(X = 2) + P(X = 3) + P(X = 4) We could do this by hand but this would be difficult with larger numbers. We can also use the table. Let s think! P(X 4) = P(0) + P(1) + P(2) + P(3) + P(4) This contains all of what we want plus some extra. Subtract out what we don t want. P(0) + P(1) we don t want. This is the same as P(X 1).

Flipping Success and Failure The Binomial table has a maximum p of 0.5. Males have a 0.7 chance of marrying. We take a sample of 25 males. What is the probability that 20 or more males marry? P(X 20) =? X = # males that marry. Let Y = # males that do not marry.

Flipping Continued We want P(X 20), put it in terms of Y. P(X 20) = P(Y 5) X ~ Binomial(n = 25, p = 0.7) Y ~ Binomial(n = 25, p = 0.3) Use the table! P(Y 5) = 0.1935 = P(X 20)

Weird Words Probability questions are often word questions. More than > Less than < or more or less At most At least

Be Careful When Flipping P(X > 3) = 1 P(X 3) P(X 3) = 1 P(X 2) Think before you flip!!!!!

Extra Example A student is taking a multiple choice exam with 16 questions, and guessing at the answers. Each question has 4 possible answers, A, B, C, D. Each question is independent. Is this a binomial distribution? Fixed number of trials, n = 16 Either the answer is right or wrong. (success/failure) p = probability of success = ¼ Trials are independent. Let X = # of correct answers. Yes, this is binomial.

Extra Example A student is taking a 16 question multiple choice exam, and guessing at the answers. There are four choices per question, A, B, C,D. What is the expected number that he/she will get right? 16 questions 16 trials Probability of success per question = ¼ E(x) = n p = 16(¼) = 4 correct answers

Extra Example A student is taking a multiple choice exam with 16 questions, and guessing at the answers. Each question has 4 possible answers, A, B, C, D. Each question is independent. Is this a binomial distribution? What is the standard deviation? σ x = n p (1 p) = 16 σ x 1.732 1 3 = 3 4 4

Extra Example What is the probability that the student will get 8 questions correct? P(x= 8) = P(x 8) P(x 7) = 16 8 1 4 8 1 1 4 16 8 8 3 4 8 = 12870 1 4 = 0.0197

Extra Example What is the probability that the student will get less than 8 correct? P(x < 8) = P(x 7) = P(0) + P(1) + P(2) + + P(7) From the table we can find that P(x 7) = 0.9729

What is the probability that the student will get less than 8 correct? P(x < 8) = P(x 7) = P(0) + P (1) + P (2) + + P (7) From the table we can find that P(x 7) = 0.9729