Presentation is loading. Please wait.

Presentation is loading. Please wait.

Random Variables Jim Bohan Manheim Township School District Lancaster, Pennsylvania

Similar presentations


Presentation on theme: "Random Variables Jim Bohan Manheim Township School District Lancaster, Pennsylvania"— Presentation transcript:

1

2 Random Variables Jim Bohan Manheim Township School District Lancaster, Pennsylvania jim_bohan@mtwp.k12.pa.us

3 Definition of a Random Variable A variable is a random variable if its value is determined by a probability event. Random Variables are generally denoted by capital letters. For example: Let X be the random variable whose value is the outcome of flipping a coin. Therefore, X  {head, tail} Let Y be the random variable whose value is the outcome of rolling a die. Therefore, Y  {1, 2, 3, 4, 5, 6}

4 Combining Random Variables II t is common to add or subtract values of random variables. WW hen random variables are combined using arithmetic operations, it is important to understand exactly what the combination produces. FF or example: Let X  {1, 2, 3} and Y  {50, 60, 70} Then, X + Y  {51, 52, 53, 61, 62, 63, 71, 72, 73}. X + Y is the set of all possible sums of X and Y.

5 Probability & Random Variables Since a random variable takes on values based on a probability event, it is most appropriate to consider the probability that is associated with the value of the variable. Therefore, for example, it is important to link the probability of.5 with each of the values of the random X defined as the outcome of flipping a coin.

6 Another Example Let W be the random variable whose value is the outcome of the number of head from flipping three coins. The set of values and their probabilities is then

7 Probability Distributions A Probability Distribution is the set of the values and their corresponding probabilities of a random variable. For example, the Probability Distribution for the random variable W = number of heads on three dice is

8 Describing Probability Distributions We can calculate the mean and standard deviation of a probability distribution. For discrete random variables: For continuous random variables, the mean and standard deviation is usually given.

9 Operations on Random Variables Consider the random variable X whose values are the values of the roll of a die. Calculate its mean and variance:

10 Operations - continued Consider the random variable Y = X + X, that is, the sum of the values on two dice. List the distribution (values and probabilities) and calculate its mean and variance:

11 Summary of measures; X = value on one die Random VariableMeanVariance X X Y = X + X

12 Relationships – sum on two dice  Mean of the sum =  Variance of the sum =

13 Another Example Let H ={heights of husbands}. Let W={heights of their wives}. The values are in the table below:

14 Tasks 1.List all of the values in H – W: 2.Calculate the values of the mean and variance for H and for W. 3.Calculate the values of the mean and variance for H – W.

15 Summary of measures; H= heights of husbands W=heights of wives Random Variable MeanVariance H W H - W

16 Relationships – husbands & wives Mean of the sum = Variance of the sum =

17 A Variation Reconsider the data of the heights of the husbands and their wives. Let us consider the differences of heights of each married couple.

18 Recalculate all of the means… Random Variable MeanVariance H W H - W

19 An Unexpected Change  Clearly the mean of the differences = the difference of the means of the individual random variables.  However, the variance of the differences is NOT the sum of the variances of the individual random variables. Why does the variance rule fail?

20 The Reason When we only considered the married couples, then the random variable of the husband’s height and the random variable of the wife’s height were not independent! The rule for means appears to be true but the rule on variances is contingent on whether the random variables are independent.

21 The Rules for Combing Random Variables Means:  The mean of a sums = the sum of the means.  The mean of the difference = the difference of the means Variances:  The variance of the sum or difference = the sum of the variances when the variables are independent.  The variance of the sum or difference cannot be determined from the variances of the variables when the variables are not independent.


Download ppt "Random Variables Jim Bohan Manheim Township School District Lancaster, Pennsylvania"

Similar presentations


Ads by Google