Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 5 Discrete Random Variables Probability Distributions

Similar presentations


Presentation on theme: "Chapter 5 Discrete Random Variables Probability Distributions"— Presentation transcript:

1 Chapter 5 Discrete Random Variables Probability Distributions

2 Discrete Random Variables Probability Distributions
Overview Random Variables Mean and Standard Deviation for Random Variables Binomial Probability Distributions Mean, Standard Deviation for the Binomial Distribution

3 Overview This chapter will deal with the construction of discrete probability distributions by combining the methods of descriptive statistics presented in Chapter 2 and 3 and those of probability presented in Chapter 4. Emphasize the combination of the methods in Chapter 3 (descriptive statistics) with the methods in Chapter 4 (probability). Chapter 3 one would conduct an actual experiment and find and observe the mean, standard deviation, variance, etc. and construct a frequency table or histogram Chapter 4 finds the probability of each possible outcome Chapter 5 presents the possible outcomes along with the relative frequencies we expect Page 194 of Essentials of Statistics, 3rd Edition

4 Combining Descriptive Methods
and Probabilities In this chapter we will construct probability distributions by presenting possible outcomes along with the relative frequencies we expect. page 194 of Essentials of Statistics, 3rd Edition

5 Random Variables A random variable is a variable whose value is a numerical outcome of a probability experiment. We usually denote random variables by capital letters near the end of the alphabet, such as X or Y Mathematically speaking, a random variable X is a function that assigns a number to every outcome of the sample space S

6 Random Variables There are two kinds of random variables
Discrete Random Variables Continuous Random Variables

7 Random Variables A random variable is discrete if it has a finite or countable number of possible outcomes that can be listed. x 2 10 6 4 8 A random variable is continuous if it has an infinite number of outcomes, represented by the intervals on a number line. x 2 10 6 4 8

8 Random Variables Example: Decide if the random variable X is discrete or continuous. a.) The distance your car travels on a tank of gas The distance your car travels is a continuous random variable because it is a measurement that cannot be counted. (All measurements are continuous random variables.) b.) The number of students in a statistics class The number of students is a discrete random variable because it can be counted.

9 Discrete Random Variables

10 More Discrete Random Variable Examples
Experiment Random Variable Possible Values Make 100 Sales Calls # Sales 0, 1, 2, ..., 100 Inspect 70 Radios # Defective 0, 1, 2, ..., 70 Answer 33 Questions # Correct 0, 1, 2, ..., 33 Count Cars at Toll Between 11:00 & 1:00 # Cars Arriving 0, 1, 2, ..., 

11 Notation If X a random variable, then its numerical values are denoted by the corresponding lower case letters x. The notation P (X = x) will be used to denote “probability of the event that makes X = x” This probability is denoted by p(x) that is, p(x) = P (X = x) is the probability distribution function (pdf in the TI-83 notation)

12 Discrete Probability Distributions
A discrete probability distribution for the discrete random variable X lists each possible value the variable X can assume, together with its probability. This probability distribution is often expressed in the format of a graph, table, or formula. In this course a discrete random variable X will always have a finite number of possible values.

13 Discrete Probability Distributions
The probability distribution of X lists the values and their probabilities as shown in the table The probabilities pi must satisfy two requirements: 1. Every probability pi is a number between 0 and 1 2. p1 + p2 +・ ・ ・+pk = 1

14 Probability Distributions and Histograms

15 Example The spinner below is divided into two sections. The probability of landing on the 1 is The probability of landing on the 2 is Let X be the number the spinner lands on. Construct a probability distribution for the random variable X. 2 1 x P (X = x) 1 0.25 2 0.75 Each probability is between 0 and 1. Sum of probabilities is 1.

16 Spin a 1 on the second spin.
Example Continued The spinner below is spun two times. The probability of landing on the 1 is The probability of landing on the 2 is Let X be the sum of the two spins. Construct a probability distribution for the random variable X. The possible sums are 2, 3, and 4. 2 1 P (sum of 2) = 0.25  0.25 = “and” Spin a 1 on the first spin. Spin a 1 on the second spin.

17 Spin a 2 on the second spin. Spin a 1 on the second spin.
Example Continued 2 1 P (sum of 3) = 0.25  0.75 = “and” Spin a 1 on the first spin. Spin a 2 on the second spin. “or” P (sum of 3) = 0.75  0.25 = X = Sum of spins P (X =x) 2 0.0625 3 4 “and” Spin a 2 on the first spin. Spin a 1 on the second spin. 0.375

18 Spin a 2 on the second spin.
Example Continued 2 1 P (sum of 4) = 0.75  0.75 = “and” Spin a 2 on the first spin. Spin a 2 on the second spin. X = Sum of spins P (X =x) 2 0.0625 3 0.375 4 Each probability is between 0 and 1, and the sum of the probabilities is 1. 0.5625

19 Example Continued Graph the probability distribution using a histogram. X = Sum of spins P (X =x) 2 0.0625 3 0.375 4 0.5625 Sum of Two Spins 0.4 0.3 0.2 x Probability 0.6 0.1 0.5 2 3 4 Sum p(x)

20 Probability Distribution
Another Quick Example Experiment: Toss 2 Coins. X= Count # of Tails Probability Distribution Values of X Probabilities, p (x ) p(0) = P(X = 0) = 1/4 = .25 p(1) = P(X = 1) = 2/4 = .50 p(2) = P(X = 2) = 1/4 = .25

21 Visualizing The Discrete Probability Distribution
Table X = # Tails .25 1 .50 2 p(x) = P(X=x) Graph .00 .25 .50 1 2 x p(x) Experiment is tossing 1 coin twice. Function

22 More Coins What is the probability distribution of the discrete random variable X that counts the number of heads in four tosses of a coin? We can derive this distribution if we make two reasonable assumptions. The coin is balanced, so each toss is equally likely to give H or T. The coin has no memory, so tosses are independent. That is, the outcome of a toss does not depend on the outcome of the previous ones.

23 The outcome of four tosses is a sequence of heads and tails such as HTTH. There are 16 possible outcomes. The picture below gives the sample space along with the value of X for each outcome.

24

25 The Table for this Probability Distribution

26 Probability Histogram for this Distribution

27 Some Probability Calculations
The probability of tossing at least two heads is The probability of tossing at least one head is found by use of the complement rule

28 Mean and Standard Deviation of a Discrete Random Variable

29 Introducing the Mean of a Discrete Random Variable - Example
Probability distribution of X, the age of a randomly selected student Ages of eight students

30 Express the mean age of the eight students in terms of the probability distribution of the random variable X.

31 Express the mean age of the eight students in terms of the probability distribution of the random variable X.

32 Express the mean age of the eight students in terms of the probability distribution of the random variable X.

33 Express the mean age of the eight students in terms of the probability distribution of the random variable X.

34 Express the mean age of the eight students in terms of the probability distribution of the random variable X.

35 Express the mean age of the eight students in terms of the probability distribution of the random variable X.

36 Mean of a Discrete Random Variable

37 Mean of a Discrete Random Variable
The mean of a discrete random variable is given by μ = Σ xP(X=x) Each value of x is multiplied by its corresponding probability and the products are added. Example: Find the mean of the probability distribution for the sum of the two spins. x P (x) 2 0.0625 3 0.375 4 0.5625 xP (x) 2(0.0625) = 0.125 3(0.375) = 1.125 4(0.5625) = 2.25 Σ xP(X=x) = 3.5 The mean for the two spins is 3.5.

38 Interpretation The following interpretation is commonly known as the law of averages and in mathematical circles as the law of large numbers.

39 Variance of a Discrete Random Variable
The variance of a discrete random variable is given by  2 = Σ(x – μ)2P (X = x) Example: Find the variance of the probability distribution for the sum of the two spins. The mean is 3.5. x p (x) 2 0.0625 3 0.375 4 0.5625 x – μ –1.5 –0.5 0.5 (x – μ)2 2.25 0.25 p(x)(x – μ)2  0.141  0.094 ΣP(X=x)(x – 2)2  0.376

40 Variance of a Discrete Random Variable
The standard deviation of a discrete random variable is Example: Find the variance of the probability distribution for the sum of the two spins. The mean is 3.5. x p (x) 2 0.0625 3 0.375 4 0.5625 x – μ –1.5 –0.5 0.5 (x – μ)2 2.25 0.25 p(x)(x – μ)2  0.141  0.094

41 Expected Value The expected value of a discrete random variable is equal to the mean of the random variable. Expected Value = E(x) = μ = ΣxP(X=x) Example: At a raffle, 500 tickets are sold for $1 each for a prize of $100. What is the expected value of your gain? Your gain for the $100 prize is $100 – $1 = $99. Write a probability distribution for the possible gains.

42 Expected Value At a raffle, 500 tickets are sold for $1 each for a prize of $100. What is the expected value of your gain? Gain, x P (x) E(x) = ΣxP(x) $99 $-1 Winning no prize Because the expected value is negative, you can expect to lose $0.80 for each ticket you buy.

43 Binomial Distributions

44 Factorial Notation

45 Binomial Experiments The interpretation for this number is the following: The binomial coefficient represents the number of different ways in which x objects can be selected from a list of n distinct objects when the order of the selection is not important

46 Binomial Experiments A binomial experiment is a probability experiment that satisfies the following conditions. 1. The experiment is repeated for a fixed number of trials, where each trial is independent of other trials. 2. There are only two possible outcomes of interest for each trial. The outcomes can be classified as a success s, or as a failure f . 3. The probability of a success p = P (s ) is the same for each trial. p is called the success probability. 4. The random variable X counts the number of successful trials.

47 Notation for Binomial Experiments
Symbol Description n The number of times a trial is repeated. p = P (s ) The probability of success in a single trial. q = P (f ) The probability of failure in a single trial q = 1– p. The random variable represents a count of the number of successes in n trials: The possible values of X are: x = 0, 1, 2, 3, … , n. X

48 Example: Decide whether the experiment is a binomial experiment
Example: Decide whether the experiment is a binomial experiment. If it is, specify the values of n, p, and q, and list the possible values of the random variable X. If it is not a binomial experiment, explain why. You randomly select a card from a deck of cards, and note if the card is an Ace. You then put the card back and repeat this process 8 times. This is a binomial experiment. Each of the 8 selections represent an independent trial because the card is replaced before the next one is drawn. There are only two possible outcomes: either the card is an ace or not.

49 Example: Decide whether the experiment is a binomial experiment
Example: Decide whether the experiment is a binomial experiment. If it is, specify the values of n, p, and q, and list the possible values of the random variable X. If it is not a binomial experiment, explain why. You roll a die 10 times and note the number the die lands on. This is not a binomial experiment. While each trial (roll) is independent, there are more than two possible outcomes: 1, 2, 3, 4, 5, and 6.

50 More Binomial Experiments
# of reds in 15 spins of roulette wheel # of defective items in a batch of 25 items # of correct on a 33 question exam # of customers who purchase out of 100 customers who enter a store

51 Binomial Probability Formula
In a binomial experiment, the probability of exactly x successes in n trials is Example: A bag contains 10 chips; 3 of the chips are red, 5 are white, and 2 are blue. Three chips are selected, with replacement. Find the probability that you select exactly one red chip. p = the probability of selecting a red chip q = 1 – p = 0.7 n = 3 x = 1

52 p = the probability of selecting a red chip
Example: A bag contains 10 chips. 3 of the chips are red, 5 are white, and 2 are blue. Four chips are selected, with replacement. Create a probability distribution for the number of red chips selected. p = the probability of selecting a red chip q = 1 – p = 0.7 x P (X=x) 0.240 1 0.412 2 0.265 3 0.076 4 0.008 n = 4 The binomial probability formula is used to find each probability. x = 0, 1, 2, 3, 4

53 Finding Probabilities
Example: The following probability distribution represents the probability of selecting 0, 1, 2, 3, or 4 red chips when 4 chips are selected. x P (X=x) 0.24 1 0.412 2 0.265 3 0.076 4 0.008 a.) Find the probability of selecting no more than 3 red chips. b.) Find the probability of selecting at least 1 red chip. a.) P (no more than 3) = P (x  3) = P (0) + P (1) + P (2) + P (3) = = 0.993 b.) P (at least 1) = P (x  1) = 1 – P (0) = 1 – 0.24 = 0.76

54 Graphing the distribution
Example: The following probability distribution represents the probability of selecting 0, 1, 2, 3, or 4 red chips when 4 chips are selected. Graph the distribution using a histogram. x P (X=x) 0.24 1 0.412 2 0.265 3 0.076 4 0.008 Selecting Red Chips 0.4 0.3 0.2 x Probability 0.1 0.5 3 1 Number of red chips 4 2 P (x)

55 Mean and Standard Deviation of a Binomial Distribution

56 Population Parameters of a Binomial Distribution
Mean: Variance: Standard deviation: Example: One out of 5 students at a local college say that they skip breakfast in the morning. Find the mean, variance and standard deviation if 10 students are randomly selected.

57 Thinking Challenge You’re taking a 33 question multiple choice test. Each question has 4 choices. Clueless on 1 question, you decide to guess. What’s the chance you’ll get it right? If you guessed on all 33 questions, what would your grade most likely be? pass? The ‘pass’ question is meant to be a ‘teaser’ and not answered.

58 Answer

59 Probability Distribution for Total Number of Right Answers

60 Another Thinking Challenge
You’re a telemarketer selling service contracts for Macy’s. You have sold 20 in your last 100 calls (p = .20). If you call 12 people tonight, what’s the probability of A. No sales? B. Exactly 2 sales? C. At most 2 sales? D. At least 2 sales? Let’s conclude this section on the binomial with the following Thinking Challenge.

61 Solution Using the Binomial probability formula:
A. p(0) = B. p(2) = .2835 C. p(at most 2) = p(0) + p(1) + p(2) = = .5584 D. p(at least 2) = p(2) + p(3)...+ p(12) = 1 - [p(0) + p(1)] = = .7251 From the Binomial Tables: A. p(0) = .0687 B. p(2) = .2835 C. p(at most 2) = p(0) + p(1) + p(2) = = .5584 D. p(at least 2) = p(2) + p(3)...+ p(12) = 1 - [p(0) + p(1)] = = .7251

62 More Discrete Probability Distributions

63 Geometric Distribution
A geometric distribution is a discrete probability distribution of a random variable X that satisfies the following conditions. 1. A trial is repeated until a success occurs. 2. The repeated trials are independent of each other. 3. The probability of a success p is constant for each trial. The probability that the first success will occur on trial x is p(x)=P (X = x) = p(q)x – 1, where q = 1 – p

64 Geometric Distribution
Example: A fast food chain puts a winning game piece on every fifth package of French fries. Find the probability that you will win a prize, A. with your third purchase of French fries, B. with your third or fourth purchase of French fries. p = 0.20 q = 0.80 A. x = 3 B. x = 3, 4 P (3) = (0.2)(0.8)3 – 1 P (3 or 4) = P (3) + P (4) = 0.128  0.230

65 Poisson Distribution The Poisson distribution is a discrete probability distribution of a random variable x that satisfies the following conditions. 1. The experiment consists of counting the number of times an event, x, occurs in a given interval. The interval can be an interval of time, area, or volume. 2. The probability of the event occurring is the same for each interval. 3. The number of occurrences in one interval is independent of the number of occurrences in other intervals. The probability of exactly x occurrences in an interval is where e  and μ is the mean number of occurrences.

66 Poisson Distribution Example: The mean number of power outages in the city of Brunswick is 4 per year. Find the probability that in a given year, A. there are exactly 3 outages, B. there are more than 3 outages. A. B.


Download ppt "Chapter 5 Discrete Random Variables Probability Distributions"

Similar presentations


Ads by Google