



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Let X be a random variable with a finite range { x 1 , x 2 ,..., xn } such that each of the n
for i = 1,2,..., n. Then X is called a discrete uniform random variable.
Example 1. Roll one fair six-sided die and let X be the face value. Then Range X = {1, 2,
3, 4, 5, 6}. There are 6 values in the range, and P ( X = k ) = 1/6 for each k ∈ Range X. So X is discrete uniform.
Example 2. Roll two dice and let X be the sum of the two dice. Then Range X = {2,... ,12}, so there are 11 values in range; but, each does not occur with probability 1/11 (e.g.; P ( X = 2) = 1/36 and P ( X = 7) = 1/6 ). So, X is not discrete uniform. It is however still a discrete random variable since the range is a finite set.
Example 3. On European Roulette wheels, there is only one zero. So, roll the wheel and let X be number that lands. Then Range X = {0, 1,... , 36}. There are 37 values in the
range and P ( X = k ) = 1/37 for each k ∈ Range X. Thus X is discrete uniform.
Example 4. Draw a card from a standard deck (no jokers) and let X be the card value, where J, Q, K = 10 and Ace = 11. Then Range X = {2,... , 11}. But X is not uniform
because P ( X = 2) = 1/13 ≠ P ( X = 10) = 4/13.
Expected Value
If X is discrete uniform with range { x 1 , x 2 ,..., xn }, then the expected value (mean, or
average value) is simply the normal average:
= E [ X ] = k P ( X = k ) k ∈ Range X
i = 1
n
n
x 1 + x 2 +... + xn n
Note : When the range is {1, 2,.. ., n }, then =
1 + 2 +... + n n
n ( n + 1) 2 n
n + 1 2
Example 5. What is the average roll of one fair six-sided die? Because X is discrete
uniform with range {1, 2, 3, 4, 5, 6}, we have =
Variance
Again let X be a discrete uniform random variable with range { x 1 , x 2 ,..., xn }. To
compute the variance, we first note that the expected value of X^2 is simply
E [ X^2 ] = k^2 P ( X = k ) k ∈ Range X
x 12 + x 22 +... + xn^2 n
Then,
(^2) = Var ( X ) = E [ X (^2) ] − ( E [ X ]) (^2) = x 12 +^ x 22 +...^ +^ xn
2
n
x 1 + x 2 +... + xn n
2
n
xi^2 i = 1
n
We often say that the variance is “ the average of the squares minus the square of the average .”
In particular, when the range is {1, 2,.. ., n }, then
(^2) + 22 + ... + n 2
n
n + 1 2
n ( n + 1)(2 n + 1) 6 n
n + 1 2
2
( n + 1)(2 n + 1) 6
( n + 1)^2 4
( n + 1)[2(2 n + 1) − 3( n + 1)] 12
( n + 1)( n − 1) 12
n^2 − 1 12
As usual, the standard deviation is = 2.
Non-uniform discrete random variables also can be treated as uniform by simply listing the values in increasing order and repeating those that occur more than once. The next example illustrates this concept.
Enter data into L1 Sort data then enter 1–Var Stats L
Output Scroll down
We see that = 780/31 ≈ 25.16129, the median is 25 (which is the 16th
measurement when all 31 measurements are listed in increasing order, and ≈ 3..
The calculator does not compute the mode for us. But by scrolling down the sorted list, we can observe that four different measurements each occur 4 times which is the most that any measurement occurs. Thus, we have modes of 21, 25, 27, and 28.
Note : (i) Because we have a measurement for each person in the class, the displayed value x is actually the true population mean. If the data were only a random sample from a larger population, then we would use x ≈ 25.16129 to denote the sample mean and we would use S ≈ 4.0174 to denote the sample deviation.
(ii) From the displayed values, we also can compute 2 and by
n
xi^2 − 2 =
i = 1 31
n ∑ −^
2 ≈ 15.
and = 2 ≈ 3.952106618.
(iii) Other statistics shown are the minimum value 18, the maximum 34, the first quartile Q1 = 21, and the third quartile Q3 = 28. The first quartile is the median of the first 15 values, and the third quartile is the median of the upper 15 values.
Frequency Charts
Often data sets with many measurements are given in a frequency chart that gives the number of occurrences for each measurement.
Measurement (^) x 1 x 2 x 3.. (^) xm Frequency (^) k 1 k 2 k 3.. (^) km
Then n = k 1 +... + km is the total number of measurements. So the mean is actually a
weighted average given by
k 1 x 1 +... + km xm n
In computing the variance 2 , only the measurements are squared in the first part, not the frequencies:
(^2) = k 1 x 12 +^ ...^ +^ kmxm^2 n
Example 8. Suppose all the households in a neighborhood are surveyed as to how many children lived at home. The responses are below:
Number of children 0 1 2 3 4 5 6 Number of households 60 42 86 59 22 4 2
Find the mean , the median, the mode, and the standard deviation.
Calculator Solution. We enter the measurements under list L1 and the frequencies under list L2. Then enter the command 1–Var Stats L1, L.
We see that there are 275 measurements, with the average number of children per household being = 511/275 ≈ 1.8582. Because 275/2 = 137.5, the median is the 138th measurement which is a 2. The mode is also 2 since it occurs most often. Lastly,
2 ≈ 1.78716 and = 2 ≈ 1.33685.