Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Chapter 5 Discrete Probability Distributions Introduction • Many decisions in real-life situations are made by assigning probabilities to all possible outcomes pertaining to the situation, then evaluating the results • Decisions can be made using statistics such as mean, variance, and standard deviation 5.1 – Probability Distributions • Random Variable • Variable whose values are determined by chance • Two types of random variables 1. Discrete variables • Finite number of possible values or an infinite number of values that can be counted 2. Continuous variables • Obtained from data that can be measured rather than counted Probability Distribution • Discrete probability distribution • Consists of values a random variable can assume and corresponding probabilities of values • Probabilities are determined theoretically or by observation Examples • 5-1 • Construct a probability distribution for rolling a single die • 5-2 • Represent graphically probability distribution for sample space for tossing three coins Examples • 5-3 • The baseball World Series is played by the winner of the National League and the American League. The first team to win four games wins the World Series. In other words, the series will consist of four to seven games, depending on the individual victories. The data shown consist of the number of games played in the WS from 1965 to 2005. The number of games played is represented by the variable X. • Find the probability P(X) for each X, construct a probability distribution, and draw a graph for the data Example 5-3 X Number of games played 4 8 5 7 6 9 7 16 Requirements for a PD Two Requirements for a Probability Distribution 1. The sum of the probabilities of all the events in the sample space must equal 1; that is, 𝑃 𝑋 = 1 2. The probability of each event in the sample space must be between or equal to 0 and 1. That is, 0 ≤ 𝑃(𝑋) ≤ 1 Example 5-4 • Determine whether each distribution is a probability distribution X P(X) X 0 5 10 15 20 1/5 1/5 1/5 1/5 1/5 0 2 4 6 -1.0 1.5 0.3 0.2 X 1 2 3 4 P(X) ¼ 1/8 1/16 9/16 P(X) X P(X) 2 3 7 0.5 0.3 0.4 5.2 – Mean, Variance, Standard Deviation, and Expectation • Mean, variance, and standard deviation for a probability distribution are computed differently from mean, variance, and standard deviation for samples Mean • Suppose two coins are tossed repeatedly • What is the mean number of heads? • ¼*2 + ½*1 + ¼*0 = 1 Formula for the Mean of a Probability Distribution • The mean of a random variable with a discrete probability distribution is 𝜇 = 𝑋1 ∗ 𝑃 𝑋1 + 𝑋2 ∗ 𝑃 𝑋2 + ⋯ + 𝑋𝑛 ∗ 𝑃 𝑋𝑛 𝜇= 𝑋 ∗ 𝑃(𝑋) • Where X1, X2, …, Xn are the outcomes and P(X1), P(X2), … , P(Xn) are the corresponding probabilities Examples • 5-5 • Find the mean of the number of spots that appear when a standard die (6-sided) is tossed • 5-6 • In a family with two children, find the mean of the number of children who will be girls • 5-7 • If three coins are tossed, find the mean of the number of heads that occur Example 5-8 • The probability distribution shown represents the number of trips of five nights or more that American adults take per year. • Find the mean Number of heads X Probability P(X) 0 0.06 1 0.70 2 0.20 3 0.03 4 0.01 Variance & Standard Deviation • Long and tedious formula: 𝜎2 = [ 𝑋 − 𝜇 2 ∗𝑃 𝑋 ] Formula for the Variance of a Probability Distribution • Find the variance of a probability distribution by multiplying the square of each outcome by its corresponding probability, summing those products, and subtracting the square of the mean. The formula for the variance of a probability distribution is 𝜎 2 = 𝑋 2 ∗ 𝑃 𝑋 − 𝜇2 • The standard deviation of a probability distribution is 𝜎 = 𝜎2 or 𝜎= 𝑋2 ∗ 𝑃 𝑋 − 𝜇2 Examples • 5-9 • Compute the variance and standard deviation for the probability distribution in example 5-5 • 5-10 • A box contains 5 balls. Two are numbered 3, one is numbered 4, and two are numbered 5. the balls are mixed and one is selected at random. After a ball is selected, its number is recorded. Then it is replaced. If the experiment is repeated many times, find the variance and standard deviation of the numbers on the balls. Expectation • Expected value is used in various types of games of chance, in insurance, and in other areas, such as decision theory • Expected value • Theoretical average of a discrete random variable in a probability distribution. The formula is 𝜇 = 𝐸 𝑋 = 𝑋 ∗ 𝑃(𝑋) • Note: in gambling games, if the expected value of the game is zero, the game said to be fair. Positive expected value means game favors player Example 5-12 • One thousand tickets are sold at $1 each for a color TV valued at $350. What is the expected value of the gain if you purchase one ticket? Example 5-14 • A financial adviser suggests that his client select one of two types of bonds in which to invest $5000. Bond X pays a return of 4% and has a default rate of 2%. Bond Y has a 2.5% return and a default rate of 1%. Find the expected rate of return and decide which bond would be a better investment. When the bond defaults, the investor loses all the investment. 5.3 – Binomial Distribution • Many probability problems have two outcomes or can be reduced to two outcomes Binomial Experiments • Binomial experiment • Probability experiment that satisfies the following four requirements: 1. There must be a fixed number of trials 2. Each trial can have only two outcomes or outcomes that can be reduced to two outcomes. These outcomes can be considered as either success or failure 3. The outcomes of each trial must be independent of one another 4. The probability of a success must remain the same for each trial Binomial Distribution • Binomial distribution • Outcomes of a binomial experiment and the corresponding probabilities of these outcomes Notation for Bin. Distribution • P(S) • P(F) probability of success probability of failure • p • q numerical probability of success numerical probability of failure • P(S) = p and • n • X number of trials number of successes in n trials Note: 0 ≤ X ≤ 𝑛 and X = 0, 1, 2, 3, …, n P(F) = 1 – p = q Bin. Probability Formula • In a binomial experiment, the probability of exactly X successes in n trials is 𝑃 𝑋 = 𝑛! 𝑛−𝑋 !∗𝑋! ∗ 𝑝 𝑋 ∗ 𝑞 𝑛−𝑋 Examples • 5 – 15 • A coin is tossed 3 times. Find the probability of getting exactly two heads • 5 – 16 • A survey found that one out of five Americans say he or she has visited a doctor in any given month. If 10 people are selected at random, find the probability that exactly 3 will have visited a doctor last month Example 5 - 17 • A survey from Teenage Research Unlimited found that 30% of teenage consumers receive their spending money from parttime jobs. If 5 teenagers are selected at random, find the probability that at least 3 of them will have part-time jobs Statistics for Bin. Distribution • The mean, variance, and standard deviation of a variable that has the binomial distribution can be found by using the following formulas • Mean: 𝝁=𝒏∗𝒑 • Variance: 𝝈𝟐 = 𝒏 ∗ 𝒑 ∗ 𝒒 • Standard Deviation: 𝝈= 𝒏∗𝒑∗𝒒 Examples • 5 – 21 • A coin is tossed 4 times. Find the mean, variance, and standard deviation of the number of heads that will be obtained • 5 – 22 • A dis is rolled 360 times. Find the mean, variance, and standard deviation of the number of 4s that will be rolled 5.4 – Poisson Distribution • Poisson distribution • A discrete probability distribution that is useful when n is large and p is small and when the independent variables occur over a period of time • Can be used when a density of items is distributed over a given area or volume, such as the number of plants per acre or the number of defects in a given length of videotape Formula for Poisson Dist. • The probability of X occurrences in an interval of time, volume, area, etc., for a variable where λ (lambda) is the mean number of occurrences per unit (time, volume, area, etc.) is 𝑃 𝑋; λ = 𝑒 −λ ∗λ𝑋 𝑋! where X = 0, 1, 2, … The letter e is a constant approximately equal to 2.7183 Examples • 5 – 27 • If there are 200 typographical errors randomly distributed in a 500-page manuscript, find the probability that a given page contains exactly 3 errors • 5 – 28 • A sales firm receives, on average, 3 calls per hour on its toll-free number. For any given hour, find the probability that it will receive the following: a) At most 3 calls b) At least 3 calls c) 5 or more calls Example 5 – 29 • If approximately 2% of the people in a room of 200 people are left-handed, find the probability that exactly 5 people there are left-handed