Presentation is loading. Please wait.

Presentation is loading. Please wait.

Statistical Applications Binominal and Poisson’s Probability distributions.10.20.30.40 0 1 2 3 4 E ( x ) =  =  xf ( x )

Similar presentations


Presentation on theme: "Statistical Applications Binominal and Poisson’s Probability distributions.10.20.30.40 0 1 2 3 4 E ( x ) =  =  xf ( x )"— Presentation transcript:

1 Statistical Applications Binominal and Poisson’s Probability distributions.10.20.30.40 0 1 2 3 4 E ( x ) =  =  xf ( x )

2 Learning Objectives l Evaluate discrete probability distributions from realistic data l Use the binominal distribution to evaluate simple probabilities l Evaluate probabilities using the Poisson’s distribution l Answer examination type question pertaining to these distributions After the session the students should be able to:

3 Recap- Types of data Discrete (A variable controlled by a fixed set of values) Continuous data (A variable measured on a continuous scale ) These data may be collected (ungrouped) and then grouped together in particular form so that can be easily inspected But how would we collect data?

4 Simple random sampling Stratified sampling Cluster sampling Quota sampling Systematic sampling Mechanical sampling Convenience sampling Recap: Sampling Techniques

5 Random Variables A random variable is a numerical description of the A random variable is a numerical description of the outcome of an experiment. outcome of an experiment. A random variable is a numerical description of the A random variable is a numerical description of the outcome of an experiment. outcome of an experiment. A discrete random variable may assume either a A discrete random variable may assume either a finite number of values or an infinite sequence of finite number of values or an infinite sequence of values. values. A discrete random variable may assume either a A discrete random variable may assume either a finite number of values or an infinite sequence of finite number of values or an infinite sequence of values. values. A continuous random variable may assume any A continuous random variable may assume any numerical value in an interval or collection of numerical value in an interval or collection of intervals. intervals. A continuous random variable may assume any A continuous random variable may assume any numerical value in an interval or collection of numerical value in an interval or collection of intervals. intervals.

6 Examples Question Random Variable x Type Familysize x = Number of dependents reported on tax return reported on tax returnDiscrete Distance from home to store x = Distance in miles from home to the store site home to the store site Continuous Own dog or cat x = 1 if own no pet; = 2 if own dog(s) only; = 2 if own dog(s) only; = 3 if own cat(s) only; = 3 if own cat(s) only; = 4 if own dog(s) and cat(s) = 4 if own dog(s) and cat(s) Discrete

7 Discrete Probability Distributions The probability distribution for a random variable The probability distribution for a random variable describes how probabilities are distributed over describes how probabilities are distributed over the values of the random variable. the values of the random variable. The probability distribution for a random variable The probability distribution for a random variable describes how probabilities are distributed over describes how probabilities are distributed over the values of the random variable. the values of the random variable. We can describe a discrete probability distribution We can describe a discrete probability distribution with a table, graph, or equation. with a table, graph, or equation. We can describe a discrete probability distribution We can describe a discrete probability distribution with a table, graph, or equation. with a table, graph, or equation.

8 Discrete Probability Distributions cont… The probability distribution is defined by a The probability distribution is defined by a probability function, denoted by f ( x ), which provides probability function, denoted by f ( x ), which provides the probability for each value of the random variable. the probability for each value of the random variable. The probability distribution is defined by a The probability distribution is defined by a probability function, denoted by f ( x ), which provides probability function, denoted by f ( x ), which provides the probability for each value of the random variable. the probability for each value of the random variable. The required conditions for a discrete probability The required conditions for a discrete probability function are: function are: The required conditions for a discrete probability The required conditions for a discrete probability function are: function are: f ( x ) > 0  f ( x ) = 1

9 Discrete Uniform Probability Distribution The discrete uniform probability function is The discrete uniform probability function is f ( x ) = 1/ n where: n = the number of values the random variable may assume variable may assume the values of the random variable random variable are equally likely are equally likely

10 Relative frequency Say a shop uses past knowledge to produce a tabular representation of the probability distribution for TV sales: Number Number Units Sold of Days Units Sold of Days 0 80 1 50 1 50 2 40 2 40 3 10 3 10 4 20 4 20 200 200 x f ( x ) x f ( x ) 0.40 0.40 1.25 1.25 2.20 2.20 3.05 3.05 4.10 4.10 1.00 1.00 80/200

11 Mean Value The or mean or expected value, of a random variable is a measure of its central location. expected number of TVs sold in a day x f ( x ) xf ( x ) x f ( x ) xf ( x ) 0.40.00 0.40.00 1.25.25 1.25.25 2.20.40 2.20.40 3.05.15 3.05.15 4.10.40 4.10.40 E ( x ) = 1.20 E ( x ) = 1.20 E ( x ) =  =  xf ( x )

12 Mean cont… Graphical Representation of Probability Distribution.10.20.30. 40.50 0 1 2 3 4 Values of Random Variable x (TV sales) ProbabilityProbability

13 Variance & Standard deviation The variance summarizes the variability in the values of a random variable. Var( x ) =  2 =  ( x -  ) 2 f ( x ) NOTE: The standard deviation, , is defined as the positive NOTE: The standard deviation, , is defined as the positive square root of the variance. square root of the variance. NOTE: The standard deviation, , is defined as the positive NOTE: The standard deviation, , is defined as the positive square root of the variance. square root of the variance.

14 Binomial Distribution Four Properties of a Binomial Experiment 3. The probability of a success, denoted by p, does not change from trial to trial. not change from trial to trial. 3. The probability of a success, denoted by p, does not change from trial to trial. not change from trial to trial. 4. The trials are independent. 2. Two outcomes, success and failure, are possible on each trial. on each trial. 2. Two outcomes, success and failure, are possible on each trial. on each trial. 1. The experiment consists of a sequence of n identical trials. identical trials. 1. The experiment consists of a sequence of n identical trials. identical trials. stationaryassumption

15 Of interest is the number of success occurring in n trials Let x be the number of successes Binomial Probability Function where: where: f ( x ) = the probability of x successes in n trials f ( x ) = the probability of x successes in n trials n = the number of trials n = the number of trials p = the probability of success on any one trial p = the probability of success on any one trial Jacob Bernoulli

16 Binomial Probability Function cont… Evaluation of probabilities using the distribution function: Probability of a particular sequence of trial outcomes sequence of trial outcomes with x successes in n trials with x successes in n trials Probability of a particular sequence of trial outcomes sequence of trial outcomes with x successes in n trials with x successes in n trials Number of experimental outcomes providing exactly outcomes providing exactly x successes in n trials Number of experimental outcomes providing exactly outcomes providing exactly x successes in n trials

17 Binomial probability function alternative notation Evaluation of probabilities using the distribution function: No of combinations No of combinations Notice the pattern of numbers Notice the pattern of numbers Probability of a particular sequence of trial outcomes sequence of trial outcomes with x successes in n trials with x successes in n trials Probability of a particular sequence of trial outcomes sequence of trial outcomes with x successes in n trials with x successes in n trials Number of experimental outcomes providing exactly outcomes providing exactly x successes in n trials Number of experimental outcomes providing exactly outcomes providing exactly x successes in n trials

18 Mean and Variance It is useful to note that for a binominal distribution the following are valid: E ( x ) =  = np Var( x ) =  2 = np (1  p ) Expected Value Variance Standard Deviation

19 Example #1 : n Evans is concerned about a low retention rate for employees. In recent years, management has seen a turnover of 10% of the hourly employees annually. Thus, for any hourly employee chosen at random, management estimates a probability of 0.1 that the person will not be with the company next year.

20 Solution: Using the Binomial Probability Function Choosing 3 hourly employees at random, what is the probability that 1 of them will leave the company this year? Let : p = 0.1, n = 3, x = 1

21 Exercise #1 A milling machine is know to produce 9% defective components, if a random sample of 5 components are taken, evaluate the probability of no more than 2 components being defective

22 Exercise #1: Solution Find the required parameters, namely: p=0.09 n=5 X<3 Here you will need to use a little intelligence, i.e.: Now put the numbers into:

23 Exercise #1: Solution cont… Using this standard formula gives Notice the pattern: Top and bottom equal the top 4+1=5

24 Further example A machine produces on average 1 defective parts out of 8. 5 samples are collected from this machine. Find the probability that 2 of them are defective. Solution: Notice here the new nomenclature C 2 5

25 Poisson’s distribution This distributions is named after the famous French mathematician who formulated it: Siméon Denis Poisson A Poisson distributed random variable is often A Poisson distributed random variable is often useful in estimating the number of occurrences useful in estimating the number of occurrences over a specified interval of time or space over a specified interval of time or space A Poisson distributed random variable is often A Poisson distributed random variable is often useful in estimating the number of occurrences useful in estimating the number of occurrences over a specified interval of time or space over a specified interval of time or space It is a discrete random variable that may assume It is a discrete random variable that may assume an infinite sequence of values (x = 0, 1, 2,... ). an infinite sequence of values (x = 0, 1, 2,... ). It is a discrete random variable that may assume It is a discrete random variable that may assume an infinite sequence of values (x = 0, 1, 2,... ). an infinite sequence of values (x = 0, 1, 2,... ).

26 Poisson’s random variables They can be time dependent or not! Examples of a Poisson distributed random variable: Examples of a Poisson distributed random variable: the number of knotholes in 14 linear feet of the number of knotholes in 14 linear feet of pine board pine board the number of knotholes in 14 linear feet of the number of knotholes in 14 linear feet of pine board pine board the number of vehicles arriving at a the number of vehicles arriving at a toll booth in one hour toll booth in one hour the number of vehicles arriving at a the number of vehicles arriving at a toll booth in one hour toll booth in one hour

27 Poisson distribution function Just as with the binominal distribution this allows the calculation of probabilities! where: where: f(x) = probability of x occurrences in an interval  = mean number of occurrences in an interval  = mean number of occurrences in an interval e = 2.71828 e = 2.71828

28 Poisson’s cumulative distribution function By definition this is given by: Remembering this pattern helps in the evaluation of the required probabilities since each term in the series are respectively: P(X=0), P(X=1), P(X=2), P(X=3)

29 Example #2: Patients arrive at the Casualty department of a hospital at the average rate of 6 per hour on weekend evenings. What is the probability of 4 arrivals in 30 minutes on a weekend evening?

30 Example #2: Solution o Simply use the Poisson’s distribution function:  = 6/hour = 3/half-hour, x = 4 MERCY

31 Poisson’s distribution cont… n Poisson Distribution of Arrivals Poisson Probabilities 0.00 0.05 0.10 0.15 0.20 0.25 0 12345678910 Number of Arrivals in 30 Minutes Probability NB: The Poisson’s distribution has the very special property of the mean and variance being equal!  =  2 Also when n>50, i.e. large and np<5, i.e. small. Then this distribution approximates the Binominal.

32 Exercise #2: A serviceman is “beeped” each time there is a call for service. The number of beeps per hour is Poisson distributed with a mean of 2 per hour. Find the probability that he gets beeped 3 times in the next 2 hours. Solution: The units of interval need to be uniform. So, the mean beep rate will be 4 per 2 hour intervals. Application of the Poisson’s probability function, renders:

33 Further Example A garage workshop has an expensive machine tool which is used on average 1.6 times per 8-hour day for a four hour period. How many days in 60 day work period is the tool required no more than twice. Hence the required no. of days

34 Examination type questions 1.A machine is know to produce 10% defective components, if a random sample of 12 components are taken, evaluate the probability of: a) No components being defective [2] b) more than 3 components being defective [3] 2. If jobs arrive at a machine at random average intervals of 10/hr, estimate the probability of the machine remaining idle for a 1.5 hour period [4]. a) State the standard deviation of this distribution [1].

35 Further examination type questions 3. Over a long period of time it is known that 5% of the total production are below standard. If 6 are chosen at random, evaluate the probability that at least 2 are defective [5]. 4. A machine is known to produce 2% defective components. In a packet of 100 what is the probability of obtaining over 2 defective components [5].

36 Solutions: 1. Here a simple application of the Binominal is required thus: 2. Here let X be a Poisson RV, thus:

37 Solutions: 3. This is the binominal model: 4. We could use the binominal here but it is also a Poisson’s approximation with np=100×0.02, thus:

38 Alternative solution 4: 4. We could use the binominal here also, with n=100 and p=0.02: Note: It’s worth noticing the Poisson’s approximation if it turns up, “less calculations”!

39 Summary l Evaluate discrete probability distributions from realistic data l Use the binominal distribution to evaluate simple probabilities l Evaluate probabilities using the Poisson’s distribution l Answer examination type question pertaining to these distributions Have we met out learning objectives? Specifically are you able to:


Download ppt "Statistical Applications Binominal and Poisson’s Probability distributions.10.20.30.40 0 1 2 3 4 E ( x ) =  =  xf ( x )"

Similar presentations


Ads by Google