Download presentation
Presentation is loading. Please wait.
Published byBetty Cannon Modified over 9 years ago
1
Modeling Discrete Variables Lecture 22, Part 1 Sections 6.4 Fri, Oct 13, 2006
2
Two Types of Variable Discrete variable – A variable whose set of possible values is a set of isolated points on the number line. Discrete variable – A variable whose set of possible values is a set of isolated points on the number line. Continuous variable – A variable whose set of possible values is a continuous interval of real numbers. Continuous variable – A variable whose set of possible values is a continuous interval of real numbers.
3
Example of a Discrete Variable Suppose that 10% of all households have no children, 30% have one child, 40% have two children, and 20% have three children. Suppose that 10% of all households have no children, 30% have one child, 40% have two children, and 20% have three children. Select a household at random and let X = number of children. Select a household at random and let X = number of children. What is the distribution of X? What is the distribution of X?
4
Example of a Discrete Variable Method 1: A list. Method 1: A list. We may list each value and its proportion. We may list each value and its proportion. X = 0 for 0.10 of the population. X = 0 for 0.10 of the population. X = 1 for 0.30 of the population. X = 1 for 0.30 of the population. X = 2 for 0.40 of the population. X = 2 for 0.40 of the population. X = 3 for 0.20 of the population. X = 3 for 0.20 of the population.
5
Example of a Discrete Variable Method 2: A table. Method 2: A table. We may present the information as a table. We may present the information as a table. Value of X Proportion 00.10 10.30 20.40 30.20
6
Graphing a Discrete Variable Method 3: A stick graph. Method 3: A stick graph. We may present the information as a stick graph. We may present the information as a stick graph. x Proportion 0123 0.10 0.20 0.30 0.40
7
Graphing a Discrete Variable Method 4: A histogram. Method 4: A histogram. We may present the information as a histogram. We may present the information as a histogram. x Proportion 0123 0.10 0.20 0.30 0.40
8
Discrete Random Variables Lecture 22, Part 2 Section 7.5.1 Fri, Oct 13, 2006
9
Random Variables Random variable – A variable whose value is determined by the outcome of a procedure where the outcome of at least one step in the procedure is left to chance. Random variable – A variable whose value is determined by the outcome of a procedure where the outcome of at least one step in the procedure is left to chance. Therefore, the random variable may take on a new value each time the procedure is performed, even though the procedure is exactly the same. Therefore, the random variable may take on a new value each time the procedure is performed, even though the procedure is exactly the same.
10
Random Variables A random variable is really the same thing as the variables we studied in Chapter 2 (page 85). A random variable is really the same thing as the variables we studied in Chapter 2 (page 85). A variable is a quantitative or qualitative characteristic that can be observed or measured for each member of a population. A variable is a quantitative or qualitative characteristic that can be observed or measured for each member of a population. So what makes it random? So what makes it random?
11
Examples of Random Variables Select one person at random from a group of 10 men and 20 women. Select one person at random from a group of 10 men and 20 women. Let X be the sex of the person selected. Let X be the sex of the person selected. What are the possible values of X? What are the possible values of X? What are the probabilities of those values? What are the probabilities of those values? Which step of the procedure is left to chance? Which step of the procedure is left to chance?
12
Examples of Random Variables Roll two dice. Roll two dice. Let X be the number of sixes that turn up. Let X be the number of sixes that turn up. What is the characteristic that is being observed? What is the characteristic that is being observed? What are the possible values of X? What are the possible values of X? What are the probabilities of those values? What are the probabilities of those values?
13
Examples of Random Variables Roll two dice. Roll two dice. Let X be the total of the two numbers. What is the characteristic that is being observed? Let X be the total of the two numbers. What is the characteristic that is being observed? What are the possible values of X? What are the possible values of X? What are their probabilities? What are their probabilities?
14
Examples of Random Variables A bus arrives at a bus stop every 15 minutes. You show up at a random time. A bus arrives at a bus stop every 15 minutes. You show up at a random time. Let X be the time you wait until the bus arrives. Let X be the time you wait until the bus arrives. What are the possible values of X? What are the possible values of X? What are their probabilities? What are their probabilities?
15
A Note About Probability The probability that something happens is the proportion of the time that it does happen out of all the times that it was given an opportunity to happen. The probability that something happens is the proportion of the time that it does happen out of all the times that it was given an opportunity to happen. Therefore, “probability” and “proportion” are synonymous in the context of what we are doing. Therefore, “probability” and “proportion” are synonymous in the context of what we are doing.
16
Discrete Probability Distribution Functions Discrete Probability Distribution Function (pdf) – A function that assigns a probability to each possible value of a discrete random variable. Discrete Probability Distribution Function (pdf) – A function that assigns a probability to each possible value of a discrete random variable.
17
Rolling Two Dice Roll two dice and let X be the number of sixes. Roll two dice and let X be the number of sixes. Draw the 6 6 rectangle showing all 36 possibilities. Draw the 6 6 rectangle showing all 36 possibilities. From it we see that From it we see that P(X = 0) = 25/36. P(X = 0) = 25/36. P(X = 1) = 10/36. P(X = 1) = 10/36. P(X = 2) = 1/36. P(X = 2) = 1/36. (1, 1)(1, 2)(1, 3)(1, 4)(1, 5)(1, 6) (2, 1)(2, 2)(2, 3)(2, 4)(2, 5)(2, 6) (3, 1)(3, 2)(3, 3)(3, 4)(3, 5)(3, 6) (4, 1)(4, 2)(4, 3)(4, 4)(4, 5)(4, 6) (5, 1)(5, 2)(5, 3)(5, 4)(5, 5)(5, 6) (6, 1)(6, 2)(6, 3)(6, 4)(6, 5)(6, 6)
18
Rolling Two Dice We can summarize this as a list (Method 1): We can summarize this as a list (Method 1): P(X = 0) = 25/36. P(X = 0) = 25/36. P(X = 1) = 10/36. P(X = 1) = 10/36. P(X = 2) = 1/36. P(X = 2) = 1/36.
19
Rolling Two Dice We can summarize this in a table (Method 2): We can summarize this in a table (Method 2): X P(X = x) 025/36 110/36 21/36
20
Example of a Discrete PDF We may present it as a stick graph (Method 3): We may present it as a stick graph (Method 3): x P(X = x) 012 5/36 15/36 25/36 30/36 20/36 10/36
21
Example of a Discrete PDF We may present it as a histogram (Method 4): We may present it as a histogram (Method 4): x P(X = x) 012 5/36 15/36 25/36 30/36 20/36 10/36
22
Rolling Two Dice Roll two dice and let X be the sum of the two numbers. Roll two dice and let X be the sum of the two numbers. From it we see that From it we see that P(X = 2) = 1/36. P(X = 2) = 1/36. P(X = 3) = 2/36. P(X = 3) = 2/36. P(X = 4) = 3/36. P(X = 4) = 3/36. P(X = 5) = 4/36. P(X = 5) = 4/36. P(X = 6) = 5/36. P(X = 6) = 5/36. etc. etc. (1, 1)(1, 2)(1, 3)(1, 4)(1, 5)(1, 6) (2, 1)(2, 2)(2, 3)(2, 4)(2, 5)(2, 6) (3, 1)(3, 2)(3, 3)(3, 4)(3, 5)(3, 6) (4, 1)(4, 2)(4, 3)(4, 4)(4, 5)(4, 6) (5, 1)(5, 2)(5, 3)(5, 4)(5, 5)(5, 6) (6, 1)(6, 2)(6, 3)(6, 4)(6, 5)(6, 6)
23
Example of a Discrete PDF Suppose that 10% of all households have no children, 30% have one child, 40% have two children, and 20% have three children. Suppose that 10% of all households have no children, 30% have one child, 40% have two children, and 20% have three children. Select a household at random and let X = number of children. Select a household at random and let X = number of children. Then X is a random variable. Then X is a random variable. What is the pdf of X? What is the pdf of X?
24
Example of a Discrete PDF We may present the pdf as a list. We may present the pdf as a list. P(X = 0) = 0.10. P(X = 0) = 0.10. P(X = 1) = 0.30. P(X = 1) = 0.30. P(X = 2) = 0.40. P(X = 2) = 0.40. P(X = 3) = 0.20. P(X = 3) = 0.20.
25
Example of a Discrete PDF We may present the pdf as a table. We may present the pdf as a table. x P(X = x) 00.10 10.30 20.40 30.20
26
Example of a Discrete PDF Or we may present it as a stick graph. Or we may present it as a stick graph. x P(X = x) 0123 0.10 0.20 0.30 0.40
27
Example of a Discrete PDF Or we may present it as a histogram. Or we may present it as a histogram. x P(X = x) 0123 0.10 0.20 0.30 0.40
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.