Discrete probability distributions Chapter 6 - Sullivan

Slides:



Advertisements
Similar presentations
Review and Preview and Random Variables
Advertisements

Chapter 7 Discrete Distributions. Random Variable - A numerical variable whose value depends on the outcome of a chance experiment.
Random Variables A random variable is a variable (usually we use x), that has a single numerical value, determined by chance, for each outcome of a procedure.
Sections 4.1 and 4.2 Overview Random Variables. PROBABILITY DISTRIBUTIONS This chapter will deal with the construction of probability distributions by.
Probability Distributions
Chapter 4 Probability Distributions
Slide Slide 1 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley. Created by Tom Wegleitner, Centreville, Virginia Section 5-2.
Slide 1 Statistics Workshop Tutorial 4 Probability Probability Distributions.
Lecture Slides Elementary Statistics Twelfth Edition
Slide Slide 1 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley. Created by Tom Wegleitner, Centreville, Virginia Edited by.
Slide 1 Statistics Workshop Tutorial 7 Discrete Random Variables Binomial Distributions.
Probability Models Binomial, Geometric, and Poisson Probability Models.
1 Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. Discrete Distributions Chapter 5.
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.
Objective: Objective: Use experimental and theoretical distributions to make judgments about the likelihood of various outcomes in uncertain situations.
5-2 Probability Distributions This section introduces the important concept of a probability distribution, which gives the probability for each value of.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 4 and 5 Probability and Discrete Random Variables.
1 Overview This chapter will deal with the construction of probability distributions by combining the methods of Chapter 2 with the those of Chapter 4.
Slide Slide 1 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley. Lecture Slides Elementary Statistics Tenth Edition and the.
Chapter 5 Probability Distributions
Statistics 5.2.
Discrete Random Variables
1 Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. Random Variables  Random variable a variable (typically represented by x)
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Review and Preview This chapter combines the methods of descriptive statistics presented in.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. Chapter 5 Discrete Probability Distributions 5-1 Review and Preview 5-2.
Slide 1 Copyright © 2004 Pearson Education, Inc..
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Chapter 4 Probability Distributions
Sullivan – Fundamentals of Statistics – 2 nd Edition – Chapter 11 Section 1 – Slide 1 of 34 Chapter 11 Section 1 Random Variables.
Slide Slide 1 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley. Lecture Slides Elementary Statistics Tenth Edition and the.
1 Chapter 4. Section 4-1 and 4-2. Triola, Elementary Statistics, Eighth Edition. Copyright Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION.
DISCRETE PROBABILITY DISTRIBUTIONS
Binomial Probability Distribution
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Section 5-2 Random Variables.
Stat 13 Lecture 19 discrete random variables, binomial A random variable is discrete if it takes values that have gaps : most often, integers Probability.
Probability Distribution
Binomial Random Variables Binomial Probability Distributions.
1 Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. Random Variables  Random variable a variable (typically represented by x)
Sections 5.1 and 5.2 Review and Preview and Random Variables.
Warm Up Section Explain why the following is not a valid probability distribution? 2.Is the variable x discrete or continuous? Explain. 3.Find the.
Random Variables Learn how to characterize the pattern of the distribution of values that a random variable may have, and how to use the pattern to find.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. Section 5-1 Review and Preview.
CHAPTER 17 BINOMIAL AND GEOMETRIC PROBABILITY MODELS Binomial and Geometric Random Variables and Their Probability Distributions.
Chapter 16 Week 6, Monday. Random Variables “A numeric value that is based on the outcome of a random event” Example 1: Let the random variable X be defined.
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 5-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
1 Chapter 8 Random Variables and Probability Distributions IRandom Sampling A.Population 1.Population element 2.Sampling with and without replacement.
Lecture 7 Dustin Lueker.  Experiment ◦ Any activity from which an outcome, measurement, or other such result is obtained  Random (or Chance) Experiment.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Lecture Slides Elementary Statistics Eleventh Edition and the Triola Statistics Series by.
Chapter 5 Probability Distributions 5-1 Overview 5-2 Random Variables 5-3 Binomial Probability Distributions 5-4 Mean, Variance and Standard Deviation.
Chapter 5 Discrete Probability Distributions. Overview Introduction O 5-1 Probability Distributions O 5-2 Mean, Variance, Standard Deviation, and Expectation.
Binomial Distribution. Bernoulli Trials Repeated identical trials are called Bernoulli trials if: 1. There are two possible outcomes for each trial, denoted.
Probability Distributions. Constructing a Probability Distribution Definition: Consists of the values a random variable can assume and the corresponding.
Slide 1 Copyright © 2004 Pearson Education, Inc. Chapter 5 Probability Distributions 5-1 Overview 5-2 Random Variables 5-3 Binomial Probability Distributions.
CHAPTER 5 Discrete Probability Distributions. Chapter 5 Overview  Introduction  5-1 Probability Distributions  5-2 Mean, Variance, Standard Deviation,
Probability Distributions ( 확률분포 ) Chapter 5. 2 모든 가능한 ( 확률 ) 변수의 값에 대해 확률을 할당하는 체계 X 가 1, 2, …, 6 의 값을 가진다면 이 6 개 변수 값에 확률을 할당하는 함수 Definition.
Probability Distributions
Lecture Slides Elementary Statistics Twelfth Edition
Lecture Slides Elementary Statistics Eleventh Edition
Chapter 4 Probability Distributions
Chapter 5 Probability 5.2 Random Variables 5.3 Binomial Distribution
Discrete Probability Distributions
Elementary Statistics
Elementary Statistics
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.
Overview probability distributions
Lecture Slides Elementary Statistics Twelfth Edition
Lecture Slides Elementary Statistics Twelfth Edition
Random Variables Random variable a variable (typically represented by x) that takes a numerical value by chance. For each outcome of a procedure, x takes.
Lecture Slides Essentials of Statistics 5th Edition
Lecture Slides Essentials of Statistics 5th Edition
Presentation transcript:

Discrete probability distributions Chapter 6 - Sullivan Prof. Felix Apfaltrer fapfaltrer@bmcc.cuny.edu Office:N518 Phone: 212-220 8000 x 74 21 Office hours: Tue, Thu 1:30-3 pm

Random variables and distributions MAT - 150 APFALTRER Random variables and distributions A random variable is a variable (typically represented by x) that has a single numerical value, determined by chance, for each outcome of a procedure. A probability distribution is a graph, table, or a formula that gives the probability for each value of the random variable. Gender of children: A study consists of randomly selecting 14 newborn babies and counting the number of girls in the sample. If we assume that having a boy or a girl is equally likely, and let x = number of girls among the 14 babies then x is a random variable because its value depends on chance. The possible values are x =0,1,2,3,…,11,12,13,14. A probability distribution is shown to the left. Notes are added here and I wonder if I can see them

Discrete and Continuous Random Variables (r.v.’s) MAT - 150 APFALTRER Discrete and Continuous Random Variables (r.v.’s) A discrete random variable has either a finite or countable number of values. Countable means it might be infinite, but you can still “count” them (there are gaps between them). A continuous random variable has infinitely many values without gaps between them (like interval subsets of the real numbers). Examples: Discrete random variables: Number of eggs a hen lays per day. cannot lay 2.3 eggs one day! R.v.: # not known for sure in advance! Number of people attending the Columbus Day Parade. Discrete r.v.: counting the number of people. Random: we do not know in advance exactly how many are going. (but we might have an estimate) The sum of the faces when we roll two dice. The points in hand of Black Jack. The average number of eggs per hen per day in a farm with 10 hens. Continuous random variables: Amount of milk a cow produces a day. Continuous r.v.: She might yield 1.345 gallons, or 1.34512 (no gaps in measurement). The humidity at a given day. Continuous r.v.: Percentage of humidity can be 75.34%. The daily closing value of the Dow Jones Industrial Average index. The daily ocean temperature at a marine laboratory investigating whales. Notes are added here and I wonder if I can see them

Probability histogram Very similar to relative frequency histogram Instead of percent (relative frequency) probability is shown. The values 0, 1, 2, …, 13, 14, are at the center of the rectangles -> base = 1 area = height*base = height

Requirements of Probability Distributions MAT - 150 APFALTRER Requirements of Probability Distributions ∑P(x) = 1 where x assumes all possible values. 0 ≤ P(x) ≤ 1 for every individual value of x. Discussion: x takes all possible values, so it represents all options in the sample space For table ‘girls’, sum is 0.999, almost 1 except for rounding errors. All P(x) between 0 and 1 because they are probabilities! Example: Does the table represent a probability distribution? All values between 0 and 1. Good! ∑P(x) = 0.2+0.3+0.4+0.5 = 1.4 . Uups! is not 1. Therefore, it is not a probability distribution. Notes are added here and I wonder if I can see them Does the function P(x) = x/9 represent a probability distribution? P(2) =2/9, P(3) =3/9, P(4) =4/9, ∑P(x) = 2/9 + 3/9 + 4/9 = (2+3+4)/9 = 9/9 = 1 It is 1. Therefore, the function does represent a probability distribution. P(x) = x/9 for x = 2,3, & 4

Mean, Variance and Standard Deviation for Distributions MAT - 150 APFALTRER Mean, Variance and Standard Deviation for Distributions  = ∑ x•P(x) mean  2 = ∑ (x –  )2•P(x) variance = ∑ [ x 2 •P(x) ] –  2 variance (alternative formula)  = √ ∑ [ x 2 •P(x) ] –  2 standard deviation Rationale: Notes are added here and I wonder if I can see them

Mean, Variance for Distributions (round-off and unusual values) MAT - 150 APFALTRER Mean, Variance for Distributions (round-off and unusual values) Round off at 1 more decimal than data! Minimum usual value  – 2 Maximum usual value  + 2 Example: In previous calculation,  = 7,  =1.9. Minimum usual value:  – 2 = 7 – 2(1.9) = 3.2 Maximum usual value:  + 2 = 7 + 2(1.9) = 10.8 For the group of 14 babies, the usual values for the number of girls fall between 3.2 and 10.8. Notes are added here and I wonder if I can see them Rare event rule: If, under a given assumption, the probability of an event is extremely low, we conclude that the assumption is most likely incorrect. With probabilities: x successes among n trials are unusually high if P(x or more) <0.05 x successes among n trials are unusually low if P(x or less) <0.05 Example (Gender Selection): Getting 13 or more girls. P(13 or more girls) =P(13)+P(14) = 0.001+0.000 = 0.001 unusually high.

Expected Value Example (NJ pick 3 game): MAT - 150 APFALTRER Expected Value The mean of a discrete random variable (expected value) denoted by E or μX , and it represents the average value of the outcomes. μX = E = E[X] = ∑ { x•P(x) } Example (NJ pick 3 game): Bet $ 0.50 and select a 3 digit number between 000 and 999. If you get the number, you collect $275. Your net gain is then $274.50. Suppose that you bet $0.50 on the number 007. What is your expected value of gain or loss? A: Each outcome is equally likely. P(win) = 1/1000 = 0.001 P(loss) = 999/1000 = 0.999 E[X] = ∑ x•P(x) = ∑ x•P(x) =274.50 • 0.001 + (-0.50) • 0.999 win loss = 0.2745 - 0.4995 = - 0.225 On average you will be loosing 22.5 cents every time you play. Notes are added here and I wonder if I can see them

Bernoulli Distribution MAT - 150 APFALTRER Bernoulli Distribution The Bernoulli probability distribution results from a procedure such that: there is one trial, like one flip of a coin there are only two outcomes (heads/tails, 0/1, red/white, success/failure) Examples: Tossing one coin (or bean) 1 trial outcomes: heads or tails Birth of one child: Outcomes: boy or girl Tossing one die, win if it’s 6, loose 1-5 outcomes: win or loose Suppose you pay $1 to play and get $3 back if ‘6’comes out. Weather tomorrow 1 trial (day) Outcomes: rain or shine Probabilities: P(X=heads)=0.5 P(X=tails)=0.5 P(girl)=0.513 = p success probability P(boy)=0.487 = q = (1– p) failure prob X=“number of girls” in one birth: 0 or1 = 0P(0)+1P(1) = 0 q + 1p = p  2 = 0 2P(0)+12P(1) – p 2 =p – p 2 =p(1 – p) = pq P( win) =1/6 = p , P(loose)=5/6 = q X=“number of wins” in one toss: 0 or 1  = 0P(0)+1P(1) = p = 1/6,  2 =pq= 5/36 Expectation: E[X] =3•1/6 + (-1)•6/6 = – 3/6 On average you will be loosing 50 cents per play Notes are added here and I wonder if I can see them

Binomial Distributions MAT - 150 APFALTRER Binomial Distributions A procedure has a binomial probability distribution if: each trial must have all outcomes in 2 categories the procedure has a fixed number of trials the trials are independent the probabilities must remain constant for each trial Notation for binomial probability distributions: 2 categories: S success (p prob. of success) F failure (q prob. of failure) Probabilities: P(S) = p P(F) = q =1– p n fixed number of trials x :: X = x X denotes the random variable, x denotes number of successes in n trials p probability of success (success is arbitrary, can be good or not) q probability of failure P(x) = P( X = x ) probability of getting exactly x successes among n trials P( X ≤ x ) probability of getting x or less successes among n trials B( n , p ) binomial distribution with n trials and probability of success p Notes are added here and I wonder if I can see them Note: B(n,p) = sum of n independent Bernoulli distributions with probability of success p X = Y1 + Y2 + …+ Yn  X =  Y1 +  Y2 +…+  Y n = p + p +…+ p = np  2X =  2Y1+ 2Y2 +…+ 2Y n = pq + pq +…+ pq = npq

Binomial Distributions: Examples MAT - 150 APFALTRER Binomial Distributions: Examples Remember: Poll and test samples usually done without replacement -> dependent If sample small enough (< 5% of population), then it is safe to assume independence (even though there is no independence) Multiple choice answers: (answered at random, options: a,b,c,d,e, 4 questions) P(3 answers correct) Binomially distributed? Number of trials fixed n = 4. Trials independent. (answers do not depend on previous ones). 2 outcomes: right, or wrong. One answer correct, p=1/5=0.2; q = 0.8. YES! Notes are added here and I wonder if I can see them Use binomial formula

Binomial Distributions: Examples Continued MAT - 150 APFALTRER Binomial Distributions: Examples Continued Use table A-1: Hence, P(3) = 0.0256 Question: What is the probability that at least 3 answers are correct? ‘at least 3 answers correct’ = {X≥3} = {X=3 or X= 4} P(X ≥ 3 ) = P(X = 3 ) + P(X = 4 ) = 0.0256 + 0.0016 = 0.0272 HW: Sullivan Review Chapter 6, SC p315 #1-5, 7, 8, 13, 15 Notes are added here and I wonder if I can see them Mean, variance and expectation:  X = np = 4 ( 0.2) = 0.8  2X = npq = 4 ( 0.2) (0.8) = 0.64 ->  X = 0.8 Suppose that someone you pay $1000 if the person that answers at random won’t answer 3 or more answers correctly, and that you receive $100 otherwise. What is your expected loss/gain? E[ X] = -1000 (0.0272) + 100 ( 1- 0.0272) = - 27.2 + 77.28 = 49.92

Homework Sullivan Review exercises chapter 6 P. 315 (softcover) 1-5, 7, 8, 13, 15