In this Concept, you will learn how to construct probability distributions of independent random variables, as well as find the mean and standard deviation for sums and differences of independent random variables.
For more information on linear transformations, or linear combinations, see (5.0) , see mrjaffesclass, Linear Combinations of Random Variables (6:41).
A probability distribution is the set of values that a random variable can take on. At this time, there are three ways that you can create probability distributions from data. Sometimes previously collected data, relative to the random variable that you are studying, can help to create a probability distribution. In addition to this method, a simulation is also a good way to create an approximate probability distribution. A probability distribution can also be constructed from the basic principles, assumptions, and rules of theoretical probability. The examples in this lesson will lead you to a better understanding of these rules of theoretical probability.
Sums and Differences of Independent Random Variables
Create a table that shows all the possible outcomes when two dice are rolled simultaneously. (Hint: There are 36 possible outcomes.)
|1||1, 1||1, 2||1, 3||1, 4||1, 5||1, 6|
|2||2, 1||2, 2||2, 3||2, 4||2, 5||2, 6|
|3||3, 1||3, 2||3, 3||3, 4||3, 5||3, 6||Die|
|4||4, 1||4, 2||4, 3||4, 4||4, 5||4, 6|
|5||5, 1||5, 2||5, 3||5, 4||5, 5||5, 6|
|6||6, 1||6, 2||6, 3||6, 4||6, 5||6, 6|
This table of possible outcomes when two dice are rolled simultaneously that is shown above can now be used to construct various probability distributions. The first table below displays the probabilities for all the possible sums of the two dice, and the second table shows the probabilities for each of the possible results for the larger of the two numbers produced by the dice.
|Sum of Two Dice,||Probability,|
When you roll the two dice, what is the probability that the sum is 4? By looking at the first table above, you can see that the probability is .
What is the probability that the larger number is 4? By looking at the second table above, you can see that the probability is .
The Regional Hospital has recently opened a new pulmonary unit and has released the following data on the proportion of silicosis cases caused by working in the coal mines. Suppose two silicosis patients are randomly selected from a large population with the disease.
|Worked in the mine||0.80|
|Did not work in the mine||0.20|
There are four possible outcomes for the two patients. With ‘yes’ representing “worked in the mines” and ‘no’ representing “did not work in the mines”, the possibilities are as follows:
|First Patient||Second Patient|
As stated previously, the patients for this survey have been randomly selected from a large population, and therefore, the outcomes are independent. The probability for each outcome can be calculated by multiplying the appropriate proportions as shown:
If represents the number silicosis patients who worked in the mines in this random sample, then the first of these outcomes results in , the second and third each result in , and the fourth results in . Because the second and third outcomes are disjoint, their probabilities can be added. The probability distribution for is given in the table below:
Suppose an individual plays a gambling game where it is possible to lose $2.00, break even, win $6.00, or win $20.00 each time he plays. The probability distribution for each outcome is provided by the following table:
The table can be used to calculate the expected value and the variance of this distribution:
Thus, the player can expect to win $2.60 playing this game.
The variance of this distribution can be calculated as shown:
The following probability distribution was constructed from the results of a survey at the local university. The random variable is the number of fast food meals purchased by a student during the preceding year (12 months). For this distribution, calculate the expected value and the standard deviation.
|Number of Meals Purchased Within 12 Months,||Probability,|
You must begin by estimating a mean for each interval, and this can be done by finding the center of each interval. For the first interval of , 6 is not included in the interval, so a value of 3 would be the center. This same procedure can be used to estimate the mean of all the intervals. Therefore, the expected value can be calculated as follows:
Likewise, the standard deviation can be calculated:
Thus, the expected number of fast food meals purchased by a student at the local university is 13.93, and the standard deviation is 14.43. Note that the mean should not be rounded, since it does not have to be one of the values in the distribution. You should also notice that the standard deviation is very close to the expected value. This means that the distribution will be skewed to the right and have a long tail toward the larger numbers.
Technology Note: Calculating mean and variance for probability distribution on TI-83/84 Calculator
Notice that the mean, which is denoted by in this case, is 13.93, and the standard deviation, which is denoted by , is approximately 14.43.
Linear Transformations of on Mean of and Standard Deviation of
If you add the same value to all the numbers of a data set, the shape and standard deviation of the data set remain the same, but the value is added to the mean. This is referred to as re-centering the data set. Likewise, if you rescale the data, or multiply all the data values by the same nonzero number, the basic shape will not change, but the mean and the standard deviation will each be a multiple of this number. (Note that the standard deviation must actually be multiplied by the absolute value of the number.) If you multiply the numbers of a data set by a constant and then add a constant , the mean and the standard deviation of the transformed values are expressed as follows:
These are called linear transformations , and the implications of this can be better understood if you return to the casino example.
The casino has decided to triple the prizes for the game being played. What are the expected winnings for a person who plays one game? What is the standard deviation? Recall that the expected value was $2.60, and the standard deviation was $6.45.
The simplest way to calculate the expected value of the tripled prize is (3)($2.60), or $7.80, with a standard deviation of (3)($6.45), or $19.35. Here, and . Another method of calculating the expected value and standard deviation would be to create a new table for the tripled prize:
The calculations can be done using the formulas or by using a graphing calculator. Notice that the results are the same either way.
This same problem can be changed again in order to introduce the Addition Rule and the Subtraction Rule for random variables. Suppose the casino wants to encourage customers to play more, so it begins demanding that customers play the game in sets of three. What are the expected value (total winnings) and standard deviation now?
Let and represent the total winnings on each game played. If this is the case, then is the expected value of the total winnings when three games are played. The expected value of the total winnings for playing one game was $2.60, so for three games the expected value is:
Thus, the expected value is the same as that for the tripled prize.
Since the winnings on the three games played are independent, the standard deviation of and can be calculated as shown below:
This means that the person playing the three games can expect to win $7.80 with a standard deviation of $11.17. Note that when the prize was tripled, there was a greater standard deviation ($19.36) than when the person played three games ($11.17).
The Addition and Subtraction Rules for random variables are as follows:
If and are random variables, then:
If and are independent, then:
Variances are added for both the sum and difference of two independent random variables, because the variation in each variable contributes to the overall variation in both cases. (Subtracting is the same as adding the opposite.) Suppose you have two dice, one die, , with the usual positive numbers 1 through 6, and another, , with the negative numbers through . Next, suppose you perform two experiments. In the first, you roll the first die, , and then the second die, , and you compute the difference of the two rolls. In the second experiment, you roll the first die and then the second die, and you calculate the sum of the two rolls.
Notice how the expected values and the variances for the two dice combine in these two experiments.
A chance process can be displayed as a probability distribution that describes all the possible outcomes, . You can also determine the probability of any set of possible outcomes. A probability distribution table for a random variable, , consists of a table with all the possible outcomes, along with the probability associated with each of the outcomes. The expected value and the variance of a probability distribution can be calculated using the following formulas:
For the random variables and and constants and , the mean and the standard deviation of a linear transformation are given by the following:
If the random variables and are added or subtracted, the mean is calculated as shown below:
If and are independent, then the following formulas can be used to compute the variance :
Beth earns $25.00 an hour for tutoring but spends $20.00 an hour for piano lessons. She saves the difference between her earnings for tutoring and the cost of the piano lessons. The numbers of hours she spends on each activity in one week vary independently according to the probability distributions shown below. Determine her expected weekly savings and the standard deviation of these savings.
|Hours of Piano Lessons,||Probability,|
|Hours of Tutoring,||Probability,|
represents the number of hours per week taking piano lessons, and represents the number of hours tutoring per week. The mean and standard deviation for each can be calculated as follows:
The expected number of hours Beth spends on piano lessons is 1.1 with a standard deviation of 0.831 hours. Likewise, the expected number of hours Beth spends tutoring is 2.6 with a standard deviation of 1.11 hours.
Beth spends $20 for each hour of piano lessons, so her mean weekly cost for piano lessons can be calculated with the Linear Transformation Rule as shown:
by the Linear Transformation Rule.
Beth earns $25 for each hour of tutoring, so her mean weekly earnings from tutoring are as follows:
by the Linear Transformation Rule.
Thus, Beth's expected weekly savings are:
by the Subtraction Rule.
The standard deviation of the cost of her piano lessons is:
by the Linear Transformation Rule.
The standard deviation of her earnings from tutoring is:
by the Linear Transformation Rule.
Finally, the variance and standard deviation of her weekly savings is:
- Find the expected value for the sum of two fair dice.
- Find the standard deviation for the sum of two fair dice.
- It is estimated that 70% of the students attending a school in a rural area take the bus to school. Suppose you randomly select three students from the population. Construct the probability distribution of the random variable, , defined as the number of students who take the bus to school. (Hint: Begin by listing all of the possible outcomes.)
- The Safe Grad Committee at a high school is selling raffle tickets on a Christmas Basket filled with gifts and gift cards. The prize is valued at $1200, and the committee has decided to sell only 500 tickets. What is the expected value of a ticket? If the students decide to sell tickets on three monetary prizes – one valued at $1500 dollars and two valued at $500 each, what is the expected value of the ticket now?
- A recent law has been passed banning the use of hand-held cell phones while driving, and a survey has revealed that 76% of drivers now refrain from using their cell phones while driving. Three drivers were randomly selected, and a probability distribution table was constructed to record the outcomes. Let represent those drivers who never use their cell phones while driving and represent those who do use their cell phones while driving. Calculate the expected value and the variance using your calculator.
- True or False? If and are random variables then is a random variable.
- Are these concepts applicable to real-life situations?
- Will knowing these concepts allow you estimate information about a population?
Suppose you have a six-sided fair die. Let the random variable X be the number that shows when you roll the die one time. Suppose in addition you have a fair four sided die with the numbers 1, 2, 3, 3. Let the random variable Y be the number that appears when you roll this die one time. Define a third random variable Z = X + Y.
- Write the probability distribution for X.
- Write the probability distribution for Y.
- Write the probability distribution for Z.
Suppose in a box there are 4 tickets. Each ticket has two numbers on it. Ticket one has the numbers 1 and 2; ticket two has the numbers 1 and 3; ticket three has the numbers 5 and 7; and ticket four has the numbers 4 and 2. Define the following two random variables: is the first number on the ticket and is the second number on the ticket.
- What is the probability that if you draw a ticket from random from the box that the first number will be a 1?
- Define a new random variable . What is the probability that this new random variable with have a value of 11?
- Consider the following distributions:
Find the probability distribution for the new random variable .
- Suppose there are six numbers in a box: 1, 2, 3, 4, 5, 6. You draw two numbers out of the box, without replacement. Find the distribution table for the random variable where represents the first number drawn and represents the second number drawn.
Linear Transformation Rule