530 likes | 731 Views
Part II: Discrete Random Variables. http://neveryetmelted.com/categories/mathematics/. Chapter 6: Random Variables; Discrete Versus Continuous. http://math.sfsu.edu/beck/quotes.html. Example : Random Variable.
E N D
Part II: Discrete Random Variables http://neveryetmelted.com/categories/mathematics/
Chapter 6: Random Variables; Discrete Versus Continuous http://math.sfsu.edu/beck/quotes.html
Example: Random Variable We are playing a very simplified version of blackjack in which each person is only dealt 2 cards. We are interested in the sum of the cards. a) is the sum of the cards a quantitative or qualitative variable? b) Is this a random variable? c) What is the sample space for this random variable? d) what are the possible values for the random variable?
Example: Random Variable • The lifetime of a light bulb • The number of students in class on any particular day • The length of time to wait for a bus • The number of seconds it takes for Mosby (one of my cats) to sit on my lap after I sit down in my chair.
Random Variable Discrete: Example Supposed that you draw 3 cards from a deck of cards and record whether the suit is black or red. Let Y be the total number of red cards. a) construct a table that shows the values of Y b) Explain why Y is a discrete random variable Identify the following events in words and as a subset of the sample space. c) {Y = 2} d) {Y 2} e) {Y 1}
Chapter 7: Probability Mass Functions and Cumulative Distribution Functions The 50-50-90 rule: Anytime You have a 50-50 chance of getting something right, there’s a 90% probability you’ll get it wrong. Andy Rooney http://brownsharpie.courtneygibbons.org/?p=161
Example: Mass and CDF Supposed that you draw 3 cards from a deck of cards and record whether the suit is black or red. Let X be the total number of red cards. • What is pX(2)? • Determine the mass of X. c) Construct a probability plot and histogram for X. d) What is the CDF of X? e) Construct a plot of the CDF.
Histogram: interpretation of PMF Simulated 1000 times Theoretical Simulated 10,000 times
Calculation of Probabilities from CDFs Let X be a random variable. Then for all real numbers a,b where a < b • P(a < X ≤ b) = FX(b) – FX(a) • P(a ≤X ≤ b) = FX(b) – FX(a-) • P(a < X < b) = FX(b-) – FX(a) • P(a ≤X < b) = FX(b-) – FX(a-)
Example 7.10: Coin Flipping Flip a coin until the first head appears. Let X denote the number of flips until the first head appears (including the head).
Example 7.10: (cont) CDF mass
Example 7.14*: CDF mass We want to know the probability that the next car that passes you on the road is blue (1), red (2), silver (3) or some other color (0). However, we misplaced the mass and only kept the CDF. Given the following CDF, what is the mass?
PMF: Example Supposed that you draw 3 cards from a deck of cards (with replacement) and record whether the suit is black or red. Let Y be the total number of red cards. Determine the PMF when • there are equal numbers of red and black cards. • if out of 100 cards, 30 are red and 70 are black. • for p red cards out of 100 cards.
Chapter 8: Jointly Distributed Random Variables; Independence and Conditioning The most misleading assumptions are the ones you don’t even know you’re making. Douglas Adams and Mark Carwardine http://math.stackexchange.com/questions/314072/joint-probability-mass-function
Joint PMF: Example Suppose that 15 percent of the 300 families in a certain community have no children, 20 percent have 1 child, 35 percent have 2 children, and 30 percent have 3 children. Further suppose that in each family, each child is equally likely (independent) to be a boy or a girl. Let B be the number of boys in a family chosen randomly from this community and G be the number of girls. The following is the table for this situation.
a) Suppose that one of the families is selected at random. What is the probability that there are 2 children?
a) Suppose that one of the families is selected at random. What is the probability that there are 2 children?
b) Suppose that one of the families is selected at random. What is the probability that there are fewer than 2 boys and fewer than 2 girls? X
b) Suppose that one of the families is selected at random. What is the probability that there are fewer than 2 boys and fewer than 2 girls?
Joint CDF for family example a) What is the probability that there are fewer than 2 boys and fewer than 2 girls?
Joint CDF for family example b) What is the probability that there are greater than 0 and at most 2 girls and greater than 0 and at most 2 boys?
Example 8.12: Independence Roll a 4-sided die and flip a fair coin. Let X be the result of the die roll. Let Y be 1 if the coin shows a “head” or 0 if the coin shows a “tails”. Are X and Y independent?
Independence of 3 or more random variables A finite number of discrete random variables, X1, X2, …, Xn are independent if the following is true: Definition 8.12: Remark 8.20: Remark 8.21: Consider a collection of events, A1, A2, …, An. For each j, let Xj be an indicator for event Aj. Then the Aj’s are independent events iff the Xj’s are independent random variables.
Table : Conditional PMF of X (Girls) for each possible value of Y (Boys)
Chapters 9: Expected Values of Discrete Random Variables http://www.cartoonstock.com/directory/a/average_family_gifts.asp
Example: Expectation A school class of 120 students are driven in 3 buses to a basketball game. There are 36 students in one of the buses, 40 students in another, and 44 on the third bus. When the buses arrive, one of the 120 students is randomly chosen. Let X denote the number of students on the bus of that randomly chosen student. Find E(X).
Example: Expectation An individual who has automobile insurance form a certain company is randomly selected. Let X be the number of moving violations for which the individual was cited during the last 3 years. The mass of X is Calculate E(X).
Example 9.10: Expectation The top five cards of a shuffled deck of cards are dealt to a player. What is the expected number of hearts that the player receives?
Chapter 10: Expected Values of Sums of Random Variables http://faculty.wiu.edu/JR-Olsen/wiu/stu/m206/front.htm
Example: Expected values of Sums An individual who has automobile insurance form a certain company is randomly selected. Let X be the number of moving violations for which the individual was cited during the last 3 years. The PMF of X is If the cost of insurance depends on the following function of accidents, g(x) = 400 + (100x- 15), what is the expected value of the cost of the insurance?
Example: Unbiased estimator Consider a finite population and a variable defined on it. Let µ denote the population mean – that is, the arithmetic mean of all possible observations of the variable for the entire population. Suppose that we don’t know µ and that we want to estimate it. To do so, we take a random sample of n members from the population. Let X1, X2, …, Xn denote the values of the variable for the n members selected and set as the sample mean. Show that is an unbiased estimator of µ -- that is E() = µ.
Example 10.10: Indicator Random Variables In a shuffled deck of cards, a student selects cards without replacement until the ace of spaces is drawn. How many cards does the student expect to draw?
Chapter 11: Expected Values of Functions of Discrete Random Variables; Variance of Discrete Random Variables http://fightingdarwin.blogspot.com/2011_12_01_archive.html
Example: Expected Value of a Function Consider a situation where a discrete random variable can have the values from -2 to 2. (Like a person can take a seat up to 2 places to the left of center (-2) and 2 places to the right of center (+2).) What is E(X2)?
Example: (2nd time) An individual who has automobile insurance form a certain company is randomly selected. Let X be the number of moving violations for which the individual was cited during the last 3 years. The PMF of X is • If the cost of insurance depends on the following function of accidents, g(x) = 400 + (100x - 15), what is the expected value of the cost of the insurance? • What is the expected value of X2?