1 / 53

Part II: Discrete Random Variables

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.

Download Presentation

Part II: Discrete Random Variables

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Part II: Discrete Random Variables http://neveryetmelted.com/categories/mathematics/

  2. Chapter 6: Random Variables; Discrete Versus Continuous http://math.sfsu.edu/beck/quotes.html

  3. 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?

  4. 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.

  5. 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}

  6. 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

  7. 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.

  8. Plots for 3 cards Example

  9. Histogram: interpretation of PMF Simulated 1000 times Theoretical Simulated 10,000 times

  10. 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-)

  11. 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).

  12. Example 7.10: (cont) CDF mass

  13. 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?

  14. 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.

  15. PMF Example (cont)

  16. PMF Example (cont)

  17. PMF Example (cont)

  18. PMF Example (cont)

  19. PMF Example (cont)

  20. 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

  21. 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.

  22. Example: Table for family example

  23. Joint mass for family example

  24. Joint CDF for family example

  25. Joint and marginal mass for family example

  26. Joint CDF for family example

  27. Alternative joint mass for family example

  28. a) Suppose that one of the families is selected at random. What is the probability that there are 2 children?

  29. a) Suppose that one of the families is selected at random. What is the probability that there are 2 children?

  30. 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

  31. 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?

  32. Joint CDF for family example a) What is the probability that there are fewer than 2 boys and fewer than 2 girls?

  33. 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?

  34. Joint and marginal mass for family example

  35. Joint CDF for family example

  36. 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?

  37. 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.

  38. Example: Conditional mass: X (Boys) and Y (Girls)

  39. Table : Conditional PMF of X (Girls) for each possible value of Y (Boys)

  40. Chapters 9: Expected Values of Discrete Random Variables http://www.cartoonstock.com/directory/a/average_family_gifts.asp

  41. 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).

  42. 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).

  43. 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?

  44. Chapter 10: Expected Values of Sums of Random Variables http://faculty.wiu.edu/JR-Olsen/wiu/stu/m206/front.htm

  45. 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?

  46. 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() = µ.

  47. 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?

  48. Chapter 11: Expected Values of Functions of Discrete Random Variables; Variance of Discrete Random Variables http://fightingdarwin.blogspot.com/2011_12_01_archive.html

  49. 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)?

  50. 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?

More Related