1 / 40

7.1 – Discrete and Continuous Random Variables

7.1 – Discrete and Continuous Random Variables. Random Variable:. A variable whose value is a numerical outcome of a random phenomenon. Discrete Random Variable:. X has a countable number of possible values. x 1. x 2. x 3. … x k. p 1. p 2. p 3. …p k. Properties:.

Download Presentation

7.1 – Discrete and Continuous 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. 7.1 – Discrete and Continuous Random Variables

  2. Random Variable: A variable whose value is a numerical outcome of a random phenomenon Discrete Random Variable: X has a countable number of possible values.

  3. x1 x2 x3 … xk p1 p2 p3 …pk Properties: 1. Every probability piis between 0 and 1 2. The sum of the probabilities add to 1

  4. Example #1: Make a probability histogram of the following grades on a four-point scale.

  5. Example #1: Make a probability histogram of the following grades on a four-point scale. • Determine if this is a legitimate probability distribution. Yes, 0.05 + 0.28 + 0.19 + 0.32 + 0.16 = 1 And all individual probabilities are less than 1

  6. Example #1: Make a probability histogram of the following grades on a four-point scale. = 0.19 b. P(X = 2) 0.52 = 0.19 + 0.28 + 0.05 = c. P(X  2) 0.33 = 0.28 + 0.05 = d. P(X < 2) 0.48 = 0.32 + 0.16 = e. P(X > 2)

  7. Continuous Random Variable: X takes all values in an interval of numbers. Probability distribution is a density curve, where the probability is the area under the curve. Properties: 1. Probability of an individual event, P(X = # ) = 0. 2. The height of the curve doesn’t represent the probability, the area does! 3. If it is normally distributed, then use the z-score, x -   Z =

  8. Example #2 Find the following probabilities for the Uniform distribution. 1 .9 .8 .7 .6 .5 .4 .3 .2 .1 • P(X > 0.2) bh = (.8)(1) = 0.8 .1 .2 .3 .4 .5 .6 .7 .8 . 9 1

  9. Example #2 Find the following probabilities for the Uniform distribution. 1 .9 .8 .7 .6 .5 .4 .3 .2 .1 b. P(X = 0.3) bh = (0)(1) = 0 .1 .2 .3 .4 .5 .6 .7 .8 . 9 1

  10. Example #2 Find the following probabilities for the Uniform distribution. 1 .9 .8 .7 .6 .5 .4 .3 .2 .1 c. P(0.1 < X < 0.7) bh = (0.6)(1) = 0.6 .1 .2 .3 .4 .5 .6 .7 .8 . 9 1

  11. Example #2 Find the following probabilities for the Uniform distribution. 1 .9 .8 .7 .6 .5 .4 .3 .2 .1 d. P(0.6 < X < 1.0) bh = (0.4)(1) = 0.4 .1 .2 .3 .4 .5 .6 .7 .8 . 9 1

  12. Example #2 Find the following probabilities for the Uniform distribution. 1 .9 .8 .7 .6 .5 .4 .3 .2 .1 e. P(0.6  X  1.0) bh = (0.4)(1) = 0.4 .1 .2 .3 .4 .5 .6 .7 .8 . 9 1

  13. Example #2 Find the following probabilities for the Uniform distribution. f. What is different about continuous and discrete values according to letters d and e? Continuous RV’s have a probability of zero when equal to one number, so the probability doesn’t change if less than or less than or equal to.

  14. Example #3 The amount of money spent by students for textbooks in a semester is a normally distributed random variable with a mean of $235 and a standard deviation of $15. • What percent of students spend less than $225 in a semester?  = 15 x–  Z = = 225 –235 15 -10 15 = =235 x 225 = -0.67

  15. P(Z < -0.67) = Normalcdf(lowerbound, upperbound, , ) OR: Normalcdf(-100000, 225, 235, 15) P(X < 225) = 0.2525

  16. Example #3 The amount of money spent by students for textbooks in a semester is a normally distributed random variable with a mean of $235 and a standard deviation of $15. b. What percent of students spend more than $270 on textbooks in any semester?  = 15 x–  Z = = 270 –235 15 =235 35 15 x 270 = = 2.33

  17. 1 – P(Z < 2.33) = 1 – 0.9901 = 0.0099 P(Z > 2.33) = OR: Normalcdf(lowerbound, upperbound, , ) Normalcdf(270, 1000000000, 235, 15) P(X > 270) = 0.0098

  18. Example #3 The amount of money spent by students for textbooks in a semester is a normally distributed random variable with a mean of $235 and a standard deviation of $15. c. What is the probability that a student spends between $220 and $250 in any semester?  = 15 x–  x–  Z = Z = 250 –235 15 220 –235 15 = = Z 220  = 34 15 15 -15 15 Z 250 = = = = 1 -1

  19. P(220 < X < 250) = P(-1 < Z < 1) = P(Z < 1) – P(Z < -1) = 0.8413 – 0.1587 = 0.6826 OR: Normalcdf(lowerbound, upperbound, , ) Normalcdf(220, 250, 235, 15) 0.6827 P(220 < X < 250) =

  20. 7.2 – Means and Variances of Random Variables

  21. Mean of a Discrete Random Variable: (Expected Value) To find the mean of the Random Variable X, multiply each possible outcome by its associated probability and sum all of the products. Notation: X = X1p1 + X2p2 + X3p3 + … + Xkpk = Xipi

  22. Example #1 How much would you expect to win or lose per ticket in this California Decco Lottery Game on average (over the long run)? X = Xipi = (4,999x0.000035) + (49x0.00168) + (-1x0.726) = (4x0.303) + (0x0.242) + X = -0.3475

  23. Rules for Means: • If X is a random variable and a and b are fixed numbers, then a±bX = a ± bX b. If X and Y are random variables, then x±y = X ± Y

  24. Example #2 • Suppose the equation Y = 20 + 10X converts a PSAT math score, X, into an SAT math score, Y. Suppose the average PSAT math score is 48. What is the average SAT math score? 20+100X = 20 + 10(48) = 20 + 480 = 500

  25. Let X = 625 represent the average SAT math score. Let Y = 590 represent the average SAT verbal score. What are the averages combined? X+Y = X+ Y = 625 + 590 = 1215

  26. Variance and Standard Deviation of the Discrete Random Variable To find the variance, subtract the mean (expected value) from each observation, square it and multiply it by its associated probability. The sum of these results is the variance. The Standard Deviation is simply the square root of the variance. They must be independent to use the rule!!!

  27. Variance: Standard Deviation:

  28. Example #3 Find the variance and the standard deviation.

  29. Rules for Variances: If X is a random variable and a and b are fixed numbers, then If X and Y are independent random variables, then: and and Therefore:

  30. Example #4 Consider a distribution with μX = 14, σX = 2. Multiply each value of X by 4 and then add 3 to each. Find the mean and standard deviation.

  31. Example #4 You have two scales for measuring weights in a chemistry lab. Both scales give answers that vary a bit in repeated weighings of the same item. If the true weight of a compound is 2.00 grams (g), the first scale produces reading X that have mean 2.00g and standard deviation 0.002g. The second scale’s readings Y have mean 2.001g and standard deviation 0.001g. What are the mean and standard deviation of the difference Y – X between the readings? (The readings are independent) X = Y = 2.00g 2.001g X = Y = 0.001g 0.002g Y – X = 2.001 – 2.00 = 0.001

  32. X = Y = 2.00g 2.001g X = Y = 0.001g 0.002g Y – X =

  33. Example #5 Rotter Partners is planning a major investment. The amount of profit X is uncertain, but a probabilistic estimate gives the following distribution (in millions of dollars): 0.1 a. Find the missing probability.

  34. Example #5 Rotter Partners is planning a major investment. The amount of profit X is uncertain, but a probabilistic estimate gives the following distribution (in millions of dollars): b. Find the mean and standard deviation of the profit X = (1x0.1) + (1.5x0.2) + Xipi = (2x0.4) + (4x0.2) + (10x0.1)= X = 3

  35. Example #5 Rotter Partners is planning a major investment. The amount of profit X is uncertain, but a probabilistic estimate gives the following distribution (in millions of dollars): b. Find the mean and standard deviation of the profit

  36. c. Rotter Partners owes its source of capital a fee of $200,000 plus 10% of the profits X. So, the firm actually retains: Y = 0.9X – 0.2 from the investment. Find the mean and standard deviation of Y. X = 3 0.9X – 0.2 = 0.9X – 0.2 = Y = Y = 0.9(3) – 0.2 Y = 0.9(2.5199) Y = 2.5 Y = 2.2691

  37. Calculator Tip: Expected Value And SD Stat – Calc – 1-VarStats – L1, L2

  38. Example #6 Typographical errors can be either “nonword errors” or “word errors.” A nonword error is not a real word, as when “the” is typed “teh.” A word error is a real word, but not the right word, as when “lose” is typed as “loose.” When undergraduate students are asked to write a 250-word essay (without spell-checking): The number of nonword errors has the following distribution: The number of word errors has this distribution: Find the mean and standard deviation of the total number of errors in an essay if the counts of word errors and nonword errors are independent.

  39. Word Errors Non-Word Errors N = W = 1 2.1 N = W = 1 1.1358 W+N = W+ N = 3.1 2.1 + 1 = W+N =

More Related