Presentation is loading. Please wait.

Presentation is loading. Please wait.

7.1 – Discrete and Continuous Random Variables

Similar presentations


Presentation on theme: "7.1 – Discrete and Continuous Random Variables"— 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 X P(X) x1 x2 x3 … xk p1 p2 p3 …pk Properties: 1. Every probability pi is 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. Grade 1 2 3 4 P(X) 0.05 0.28 0.19 0.32 0.16

5

6 And all individual probabilities are less than 1
Example #1: Make a probability histogram of the following grades on a four-point scale. Grade 1 2 3 4 P(X) 0.05 0.28 0.19 0.32 0.16 Determine if this is a legitimate probability distribution. Yes, = 1 And all individual probabilities are less than 1

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

8 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 =

9 P(X > 0.2) bh = (.8)(1) = 0.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

10 b. P(X = 0.3) bh = (0)(1) = 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) =

11 c. P(0.1 < X < 0.7) bh = (0.6)(1) = 0.6 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

12 d. P(0.6 < X < 1.0) bh = (0.4)(1) = 0.4 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

13 e. P(0.6  X  1.0) bh = (0.4)(1) = 0.4 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

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

15 x –   Z = = 225 – 235 15 -10 15 = = -0.67 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 = x 225 =235 = -0.67

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

17 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 35 15 =235 x 270 = = 2.33

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

19 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 Z = x –  Z = x –  = 220 – 235 15 = 250 – 235 15 15 Z 220  = 34 -15 15 Z 250 = = = = -1 1

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

21 7.2 – Means and Variances of Random Variables

22 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

23 X = Xipi = X = (4,999x0.000035) + (49x0.00168) + (4x0.303) +
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)? # of matches 4 3 2 1 X = net gain $4,999 $49 $4 -$1 Probability .00168 .0303 .242 .726 X = Xipi = (4,999x ) + (49x ) + (4x0.303) + (0x0.242) + (-1x0.726) = X =

24 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

25 Example #2 Suppose the equation Y = X 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 = (48) = = 500

26 Let X = 625 represent the average SAT math score
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 = = 1215

27 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!!!

28 Variance: Standard Deviation:

29 Find the variance and the standard deviation.
Example #3 Find the variance and the standard deviation. # of matches 4 3 2 1 X = net gain $4,999 $49 $4 -$1 Probability .00168 .0303 .242 .726

30 If X is a random variable and a and b are fixed numbers, then
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:

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

32 X = Y = X = Y = Y – X = 2.00g 2.001g 0.002g 0.001g 2.001 – 2.00 =
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.002g 0.001g Y – X = 2.001 – 2.00 = 0.001

33 X = Y = 2.00g 2.001g X = Y = 0.002g 0.001g Y – X =

34 a. Find the missing probability.
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): Profit: 1 1.5 2.0 4 10 Probability: 0.1 0.2 0.4 0.1 a. Find the missing probability.

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): Profit: 1 1.5 2.0 4 10 Probability: 0.1 0.2 0.4 b. Find the mean and standard deviation of the profit X = Xipi = (1x0.1) + (1.5x0.2) + (2x0.4) + (4x0.2) + (10x0.1)= X = 3

36 b. Find the mean and standard deviation of the profit
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): Profit: 1 1.5 2.0 4 10 Probability: 0.1 0.2 0.4 b. Find the mean and standard deviation of the profit

37 X = 0.9X – 0.2 = Y = Y = Y = Y = Y =
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 = Y = Y = 0.9X – 0.2 = 0.9(3) – 0.2 Y = 0.9(2.5199) Y = 2.5 Y = 2.2691

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: Errors 1 2 3 4 Probability 0.1 0.2 0.3 The number of word errors has this distribution: Errors 1 2 3 Probability 0.4 0.3 0.2 0.1 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 W = N = W = N = W+N = W+ N = W+N = Word Errors Non-Word Errors
2.1 1 W = N = 1.1358 1 W+N = W+ N = = 3.1 W+N =


Download ppt "7.1 – Discrete and Continuous Random Variables"

Similar presentations


Ads by Google