Part 2: Named Discrete Random Variables

Slides:



Advertisements
Similar presentations
Chapter 5: Sampling Distributions, Other Distributions, Continuous Random Variables
Advertisements

DISCRETE RANDOM VARIABLES AND PROBABILITY DISTRIBUTIONS
Chapter 6 Some Special Discrete Distributions
Part VI: Named Continuous Random Variables
Flipping an unfair coin three times Consider the unfair coin with P(H) = 1/3 and P(T) = 2/3. If we flip this coin three times, the sample space S is the.
Continuous Vs. Discrete: Ex. 1
5.1 Sampling Distributions for Counts and Proportions.
Discrete Random Variables and Probability Distributions
1 1 Slide 2009 University of Minnesota-Duluth, Econ-2030 (Dr. Tadesse) Chapter 5: Probability Distributions: Discrete Probability Distributions.
Probability Distributions
Statistics for Managers Using Microsoft® Excel 5th Edition
Discrete Probability Distributions
Binomial Distributions
Discrete Probability Distributions
Probability Models Binomial, Geometric, and Poisson Probability Models.
Chapter 5 Probability Theory. Rule 1 : The probability P(A) of any event A satisfies 0 < P(A) < 1 Rule 2 : If S is the sample space in a probability model,
Discrete Probability Distributions Binomial Distribution Poisson Distribution Hypergeometric Distribution.
Chapter 5 Several Discrete Distributions General Objectives: Discrete random variables are used in many practical applications. These random variables.
Random Variables A random variable A variable (usually x ) that has a single numerical value (determined by chance) for each outcome of an experiment A.
Probability Models Chapter 17.
Chapter 5 Discrete Probability Distributions
Discrete Distributions
Engineering Statistics ECIV 2305 Chapter 3 DISCRETE PROBABILITY DISTRIBUTIONS  3.1 The Binomial Distribution  3.2 The Geometric Distribution  3.3 The.
Lesson 8 – R Taken from And modified slightlyhttp://
Probability Distribution
Chapter 17 Probability Models math2200. I don’t care about my [free throw shooting] percentages. I keep telling everyone that I make them when they count.
1 Chapter 8: The Binomial and Geometric Distributions 8.1Binomial Distributions 8.2Geometric Distributions.
Chapter 4 Probability Distributions
Chapter 7 Lesson 7.5 Random Variables and Probability Distributions
MTH3003 PJJ SEM I 2015/2016.  ASSIGNMENT :25% Assignment 1 (10%) Assignment 2 (15%)  Mid exam :30% Part A (Objective) Part B (Subjective)  Final Exam:
1 STAT 500 – Statistics for Managers STAT 500 Statistics for Managers.
Population distribution VS Sampling distribution
Random Variables and Probability Models
1 Topic 3 - Discrete distributions Basics of discrete distributions Mean and variance of a discrete distribution Binomial distribution Poisson distribution.
Part 3: Named Discrete Random Variables
Chapter 5 Discrete Probability Distributions. Introduction Many decisions in real-life situations are made by assigning probabilities to all possible.
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics Seventh Edition By Brase and Brase Prepared by: Mistah Flynn.
Probability Distribution
1 1 Slide University of Minnesota-Duluth, Econ-2030 (Dr. Tadesse) University of Minnesota-Duluth, Econ-2030 (Dr. Tadesse) Chapter 5: Probability Distributions:
Exam 2: Rules Section 2.1 Bring a cheat sheet. One page 2 sides. Bring a calculator. Bring your book to use the tables in the back.
At the end of the lesson, students can: Recognize and describe the 4 attributes of a binomial distribution. Use binompdf and binomcdf commands Determine.
Some Common Discrete Random Variables. Binomial Random Variables.
Chapter 4-5 DeGroot & Schervish. Conditional Expectation/Mean Let X and Y be random variables such that the mean of Y exists and is finite. The conditional.
Chapter 5 Discrete Random Variables Probability Distributions
Chapter 4. Random Variables - 3
Chapter 3 Discrete Random Variables and Probability Distributions  Random Variables.2 - Probability Distributions for Discrete Random Variables.3.
Chapter 17 Probability Models.
PROBABILITY AND STATISTICS WEEK 5 Onur Doğan. The Binomial Probability Distribution There are many experiments that conform either exactly or approximately.
AP Statistics Probability Models Chapter 17. Objectives: Binomial Distribution –Conditions –Calculate binomial probabilities –Cumulative distribution.
Part 2: Named Discrete Random Variables
Probability Distributions. Constructing a Probability Distribution Definition: Consists of the values a random variable can assume and the corresponding.
+ Binomial and Geometric Random Variables Textbook Section 6.3.
Part 2: Named Discrete Random Variables
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics Seventh Edition By Brase and Brase Prepared by: Lynn Smith.
Copyright © 2009 Pearson Education, Inc. Chapter 17 Probability Models.
The Poisson Distribution. The Poisson Distribution may be used as an approximation for a binomial distribution when n is large and p is small enough that.
Part 2: Named Discrete Random Variables
3.1 Discrete Random Variables Present the analysis of several random experiments Discuss several discrete random variables that frequently arise in applications.
Discrete Probability Distributions
Chapter Five The Binomial Probability Distribution and Related Topics
Binomial and Geometric Random Variables
Discrete Probability Distributions
Lesson Objectives At the end of the lesson, students can:
Discrete Probability Distributions
Simple Random Sample A simple random sample (SRS) of size n consists of n elements from the population chosen in such a way that every set of n elements.
PROBABILITY AND STATISTICS
Part 2: Named Discrete Random Variables
Geometric Poisson Negative Binomial Gamma
Review of Chapter 8 Discrete PDFs Binomial and Geometeric
IE 360: Design and Control of Industrial Systems I
Presentation transcript:

Part 2: Named Discrete Random Variables http://www.answers.com/topic/binomial-distribution

Chapter 13: Bernoulli Random Variables http://www.boost.org/doc/libs/1_42_0/libs/math/doc/sf_and_dist/html/ math_toolkit/dist/dist_ref/dists/bernoulli_dist.html

Bernoulli distribution: Summary Things to look for: one trial, success or failure Variable: 𝑋= 0 𝑜𝑢𝑡𝑐𝑜𝑚𝑒 𝑖𝑠 𝑎 𝑓𝑎𝑖𝑙𝑢𝑟𝑒 1 𝑜𝑢𝑡𝑐𝑜𝑚𝑒 𝑖𝑠 𝑎 𝑠𝑢𝑐𝑐𝑒𝑠𝑠 Parameter: p = P(S), q = P(F) = 1 – p Mass: P(X = 1) = p, P(X = 0) = q 𝔼(X) = p Var(X) = pq

Bernoulli Distribution Do the following follow a Bernoulli distribution? If so, a) What is a failure and what is a success? b) Determine p and q, c) Calculate E and Var. Rolling a fair 4-sided die and observing whether the number showing is a 1 or not. The number of births of girls in a county hospital on any specific day. If a patient takes a drug to see if it is effective or not.

Bernoulli Distribution(cont) In a drug trial, some patients with the same condition are given a drug and some are given a placebo to see if the drug is effective or not. In quality control we want to see if a particular product is ‘defective’. We take random samples from an assembly line and check each sample to see if the product is defective. We look at the percentage that a basketball player makes her shots. We want to know how many baskets it takes until she misses a shot.

Bernoulli Distribution(cont) At a certain point in a card game, if you get spade, you with $4, if you get a 2 (except the 2♠), you lose $5, if you get the A♥, you win $20, and if you get any other card, the game ends with no money being exchanged. What is your expected gain or loss? You and 3 friends are playing using the rules above using your own deck. We are interested if a player receives any of the cards listed. What is the expected value of the number people getting one of the above cards? What is the variance of the number of people getting one of the above cards?

Chapter 14: Binomial Random Variables http://www.vosesoftware.com/ModelRiskHelp/index.htm#Distributions /Discrete_distributions/Binomial_distribution.htm

Binomial Distribution: Situation In each case, identify whether the situation is binomial are not. If it is binomial, state what the parameters are, n and p. Rolling a fair 4-sided die 5 times and observing whether the number showing is a 1 or not. In quality control we want to see if a particular product is ‘bad’. We take random samples from an assembly line that uses different machines to product the product. We draw 2 cards from a deck without replacement. We are interested in knowing if the cards are red or not.

Binomial distribution: Summary Things to look for: BInS Variable: X = # of success in n trials (0 ≤ X ≤ n) Parameters: n: number of trials (n = 1  Bernoulli) p = P(S) = constant, q = P(F) = 1 – p Mass: 𝑃 𝑋=𝑥 = 𝑛 𝑥 𝑝 𝑥 𝑞 𝑛−𝑥 , 𝑥=0, 1, ⋯, 𝑛 𝔼(X) = np Var(X) = npq

Binomial r.v. (in class) A restaurant serves eight entrées of fish, 12 of beef, and 10 of poultry. If customers select from these entrées randomly, what is the probability that a) two of the next four customers order fish entrées? b) at most one of the next four customers orders fish? c) at least one of the next four customers orders fish? d)* How many customers would the restaurant have to serve to be sure that there is a 90% chance that at least one of them orders a fish entrée? e) What is the expected number of customers (in the next 4 customers) that will order fish? f) What is the standard deviation of the number of people who order fish?

Shapes of Histograms Symmetric Right skewed Left skewed

g)What is the mass, graph of mass, graph of CDF? X 1 2 3 4 else pX(x) 0.289 0.421 0.229 0.056 0.005

Probability histograms for binomial distributions with different p’s with n = 8

Chapter 15: Geometric Random Variables http://raven.iab.alaska.edu/~ntakebay/teaching/programming/probability/node8.html

Geometric distribution: Summary Things to look for: BIS Variable: X = # of trials until the first success (1 ≤ X) Parameters: p = P(S) = constant, q = P(F) = 1 – p Mass: P(X = x) = qx-1p, x = 1, 2, 3, … 𝔼 𝑋 = 1 𝑝 𝑉𝑎𝑟 𝑋 = 𝑞 𝑝 2

Example: Geometric Distribution Suppose that we roll an 20-sided die until a '1' is rolled. Let X be the number of times it takes to roll the '1'. Why is this a geometric distribution? What is the PMF of X? What is the probability that it will take exactly 10 rolls? If you decide in advance that you will roll the die 10 times, what is the probability that you will have exactly one ‘1’? How is this different from part c)? What is the expected number of rolls? What is the standard deviation of the number of rolls? *What does the mass look like? *What does the CDF look like?

Shape of Geometric PMF

Example: Geometric r.v. (cont) Suppose that we roll an 20-sided die until a '1' is rolled. Let X be the number of times it takes to roll the '1'. What is the probability that it will take no more than 10 rolls? What is the probability that it will take between 10 and 20 rolls (exclusive)? Determine the number of rolls so that the person has a 90% or greater chance of rolling a ‘1’?

Example: Geometric r.v. (cont) Suppose that we roll an 20-sided die until a '1' is rolled. Let X be the number of times it takes to roll the '1'. What is the probability that it will takes more than 10 rolls to roll the ‘1’? Assuming that it takes more than 20 rolls to roll the ‘1’. Find the probability that it will take more than 30 rolls to roll the ‘1’?

Chapter 16: Negative Binomial Random Variables http://www.vosesoftware.com/ModelRiskHelp/index.htm#Distributions /Discrete_distributions/Negative_Binomial.htm

Negative Binomial distribution: Summary Things to look for: BIS Variable: X = # of trials until the rth success (r ≤ X) Parameters: r = the desired number of successes p = P(S) = constant, q = P(F) = 1 – p Mass: 𝑃 𝑋 = 𝑥 = 𝑥−1 𝑟−1 𝑞𝑥_𝑟𝑝𝑟, 𝑥 =𝑟,𝑟+1, … 𝔼 𝑋 = 𝑟 𝑝 𝑉𝑎𝑟 𝑋 = 𝑞𝑟 𝑝 2

Example: Negative Binomial r.v. Suppose that we roll an n-sided die until a '1' is rolled. Let X be the number of times it takes to roll the ninth '1'. Why is this a Negative Binomial situation? What are the possible values of x? What is the PMF of X? What is the probability that it will take 40 rolls? What is the expected number of rolls? What is the standard deviation of the number of rolls?

Comparison: Binomial vs. Negative Binomial   Binomial Negative Binomial Question What is the prob. that that you will roll 9 “1’s in the first 40 rolls? What is the probability that 40th roll will be the 9th ‘1’? Distribution X ~ Binomial (n = 40, p = 0.05) X ~ NegBinomial (r = 9, p = 0.05) Meaning of X X = # of successes = 9 X = # of rolls until the 9th ‘1’ Probabiltiy 𝑃 𝑋=9 = 40 9 0.05 9 0.95 31 =1.09× 10 −4 𝑃 𝑋=40 = 39 8 0.05 9 0.95 31 =2.45× 10 −5

Chapter 17: Poisson Random Variables http://www.boost.org/doc/libs/1_35_0/libs/math/doc/sf_and_dist/html /math_toolkit/dist/dist_ref/dists/poisson_dist.html

Examples of Poisson R.V.’s The number of patients that arrive in an emergency room (or any other location) between 6:00 pm and 7:00 pm (or any other period of time) with a rate of 5 per hour. The number of alpha particles emitted per minute by a radioactive substance with a rate of 10 per minute. The number of cars that are located on a particular section of highway at a given time with an average value of 7 per mile .

Examples of Poisson R.V. (extension) The number of misprints on a page of a book. The number of people in a community living to 100 years of age. The number of wrong telephone numbers that are dialed in a day. The number of packages of cat treats sold in a particular store each day. The number of vacancies occurring during a year in the Supreme Court.

Poisson distribution: Summary Things to look for: BIS* Variable: X = # of successes during the specified ‘period’ Parameters:  = the average rate of events Mass: 𝑃 𝑋 = 𝑥 = 𝑒 −𝜆 𝜆 𝑥 𝑥! , 𝑥 =0,1, … 𝔼(X) =  Var(X) = 

Example: Poisson Distribution (class) In any one hour period, the average number of phone calls per minute coming into the switchboard of a company is 2.5. a) Why is this story a Poisson situation? What is its parameter? b) What is the probability that exactly 2 phone calls are received in the next hour? c) Given that at least 1 phone call is received in the next hour, what is the probability that more than 3 are received? d) *What does the mass look like in this situation? e) *What does the CDF look like in this situation?

Shapes of Poisson

Example: Poisson Distribution In any one hour period, the average number of phone calls per minute coming into the switchboard of a company is 2.5. What is the probability that there will be exactly 6 phone calls in the next 2 hours? How many phone calls do you expect in the next 2 hours? What is the probability that there will exactly 6 phone calls in one out of the next three 2-hour time intervals?

Example: Poisson Distribution (2) - Class Every second on average, 5 neutrons, 3 gamma particles and 6 neutrinos hit the Earth in a certain location. Why is this story a Poisson situation? What is the expected number of particles to hit the Earth in that location in the next 5 seconds? What is the probability that exactly 20 particles will hit the Earth at that location in the next 2 seconds? What is the probability that exactly 20 particles will hit the Earth at that location tomorrow from 1 pm to 1:00:02 (2 seconds after 1 pm)?

Examples of Poisson R.V. (extension) - class For each of the following, is n large and p small? The number of misprints on a page of a book. The number of people in a community living to 100 years of age. The number of wrong telephone numbers that are dialed in a day. The number of packages of cat treats sold in a particular store each day. The number of vacancies occurring during a year in the Supreme Court.

Example: Poisson Approximation to a Binomial - class On my page of notes, I have 2150 characters. Say that the chance of a typo (after I proof it) is 0.001. Is the Poisson approximation to the binomial appropriate? What is the probability of exactly 3 typos on this page? What is the probability of at most 3 typos?

Poisson vs. Binomial P(X = x) Binomial Poisson 0.11636 0.11648 1 0.11636 0.11648 1 0.25042 0.25044 2 0.26935 0.26922 3 0.19305 0.19294 4 0.10372 0.10371 5 0.04456 0.04459 6 0.01595 0.01598 7 0.00489 0.00491 8 0.00131 0.00132 9 0.00031 0.00032

Poisson vs. Bionomial

Chapter 18: Hypergeometric Random Variables http://www.vosesoftware.com/ModelRiskHelp/index.htm#Distributions /Discrete_distributions/Hypergeometric_distribution.htm

Hypergeometric distribution: Summary Things to look for: Bn, without Replacement Variable: X = # of successes Parameters: N = total number of items in population M = total number of successes in population N – M = total number of failures in population n = items selected Mass: 𝑃 𝑋 = 𝑥 = 𝑀 𝑥 𝑁−𝑀 𝑛−𝑥 𝑁 𝑛 𝔼 𝑋 =𝑛 𝑀 𝑁 𝑉𝑎𝑟 𝑋 =𝑛 𝑀 𝑁 1− 𝑀 𝑁 𝑁−𝑛 𝑁−1

Example: Hypergeometric Distribution A quality assurance engineer of a company that manufactures TV sets inspects finished products in lots of 100. He selects 5 of the 100 TV’s at random and inspects them thoroughly. Let X denote the number of defective TV’s obtained. If, in fact 6 of the 100 TVs in the current lot are actually defective, find the mass of the random variable X.

Example: Hypergeometric Distribution (2) - class A textbook author is preparing an answer key for the answers in a book. In 500 problems, the author has made 25 errors. A second person checks seven of these calculations randomly. Assume that the second person will definitely find the error in an incorrect answer. Explain in words what X is in this story. What values can it take? Why is this a Hypergeometric distribution? What are the parameters? What is the probability that the second person finds exactly 1 error? What is the probability that the second person finds at least 2 errors? What is the expected number of errors that the second person will find? What is the standard deviation of the number or errors that the second person will find?

Example: Capture-Recapture Sampling Estimating the Size of a Population. Suppose that an unknown number, N, of bluegills inhabit a small lake and that we want to estimate that number. One procedure for doing so, often referred to as the capture-recapture method, is to proceed as follows: Capture and tag some of the fish, say 250 and then release the fish back into the lake and give them time to disperse. Capture some more of the animals, say 150, and determine the number that are tagged, say 16. These are the recaptures. Use the data to estimate N.

Example: Hoosier Lotto (class) The Lotto. In the Hoosier lotto, a player specifies six numbers of her choice from the numbers 1 – 48. In the lottery drawing, six winning numbers are chosen at random without replacement from the numbers 1 – 48. To win a prize, a lotto ticket must contain two or more of the winning numbers. Confirm the mass of X from the Hoosier lottery web site which is on the next page. (Homework) If the player buys one Lotto ticket, determine the probability that she wins a prize (at least 2 numbers correct). If the player buys one Lotto ticket per week for a year, determine the probability that she wins a prize at least once in the 52 tries. (Hint: What is this distribution?)

Example: Hoosier Lotto (cont) These are the odds from the Hoosier lottery (https://www.hoosierlottery.com/games/hoosier-lotto) 6 OF 6 1:12,271,512 5 OF 6 1:48,696 4 OF 6 1:950 3 OF 6 1:53 2 OF 6 1:7

Example: Powerball (BONUS) When playing Powerball, you receive a ticket with five (5) numbers from 1 – 59 and one (1) Powerball number from 1 – 35. Confirm the following odds (including the overall odds of winning):

Binomial Approximation to the Hypergeometric

Chapter 19: Discrete Uniform Random Variables http://www.milefoot.com/math/stat/pdfd-uniformdisc.htm

Discrete Uniform distribution: Summary Things to look for: equally likelihood situation Variable: X = the choice of the outcome Parameters: N = total number of possible outcomes Mass: 𝑃 𝑋 = 𝑥 = 1 𝑁 , 𝑥=1, 2, …, 𝑁 𝔼 𝑋 = 𝑁+1 2 𝑉𝑎𝑟 𝑋 = 𝑁 2 −1 12

Example: Discrete Uniform (class) A charitable organization is conducting a raffle in which the grand prize is a new car. Five thousand tickets, numbered 0001, 0002, …, 5000 are sold at $10 each. At the grand-prize drawing, one ticket stub will be selected at random from the 5000 ticket stubs a) Why is this a Discrete Uniform distribution, and what is the parameter? b) Explain in words what X is terms of the story? What values can it take on? c) Suppose that you hold tickets numbered 1003 – 1025. What is the probability that you win the grand prize? Calculate the following even though they don’t really mean anything. d) What is the expected value of the winning number? e) What is the standard deviation?

Chapter 20: Summary of Part III http://www.wolfram.com/mathematica/new-in-8/parametric-probability-distributions /univariate-discrete-distributions.html

Summary of Discrete Distributions X

Expected values and Variances for selected families of discrete random variables. Family Param(s) Expected Value Variance Bernoulli p q Binomial n,p np npq Geometric 1/p q/p2 Neg. Binomial r,p r/p qr/p2 Poisson l Hypergeometric N,n,p 𝑛 𝑀 𝑁 𝑛 𝑀 𝑁 1− 𝑀 𝑁 𝑁−𝑛 𝑁−1 Uniform discrete N 𝑁+1 2 𝑁 2 −1 12

Example: Determine the Distribution (class) For each of the following situations, state which distribution (and approximation distribution if applicable) would be appropriate and why. Also please state all parameters. Note: A possible answer is ‘none’. Exercises 20.1 – 20.9 (pp. 271 – 272) Typo is 20.6 Let X be the number of broken ice cream cones…. 20.a: Let X be the number of ice cream cones that you need to sample to find the 2nd waffle cone and the 3rd regular cone if they come from a large, independent population and 10% of the waffle cones are broken and 15% of the regular cones are broken. 20.b: Let X be the number of ice cream cones in your sample which are broken if you sample 50 of them from 2 boxes, one of which was roughly handled and the other was handled normally. Assume that 12% of the cones from the plant are broken and handling the box roughly breaks an additional 2%. 20.c: Let X be the number of broken ice cream cones that you give to your class of 20 if originally 12 of the 100 ice cream cones in the box are broken. To avoid jealousy, you give one ice cream cone per person whether they are broken or not.