Professional Documents
Culture Documents
> sum(p)
[1] 1
>
Look at the table of probabilities for the random variable. The
probability of obtaining 0 is .1 and the probability of obtaining 1 is
.15, and so on, upt to the culminating value of 3. The sum of those
numbers is exactly .60. There are no other values in the sample
space that are less than or equal to one other than those four values.
The answer is .60.
(Element 14, YES/NO scale) (Correct answer = "Yes", incorrect
answer = "No")
The answer is: 0. The list of values in the first row of the table is
the sample space. The number 1.5 is not in the sample space, so it
is not in the population and the probability of selecting it is zero.
Stated another way, the probabilities in the second row (after you
complete the table) sums to 1, and there is no “left-over”
probability to assign to the value 1.5.
(Element 15, YES/NO scale) (Correct answer = "Yes", incorrect
answer = "No") The answer is 2.95.
Using the probability table after completing the missing value:
>> # Long Way (following Yakir, 2011, p. 57-59)> E = 0*.1 + 1*.15 + 2*.25 +
3*.1 + 4*.15 + 5*.1 + 6*.15 > round(E, 3)[1] 2.95>> # Quick Way (quicker when
there are many observations): >v<-c(0, 1, 2, 3, 4, 5, 6)> p <- c(.1, .15, .25, .10, .15,
.10, .15)> # E = the expectation:> E <- sum(v*p)
> round(E, 3)
[1] 2.95
>
(Element 16, YES/NO scale) (Correct answer = "Yes", incorrect
answer = "No") The answer is: FALSE.
The question describes exactly what NOT to do. When you are
given values in the first row and relative frequencies in the second
row, you must "weight" the values in the first row corresponding to
the values in the second row.
Think of an extreme situation: A random variable has a sample
space of 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, and the probabilities for those
values are .99, .002, .001, .001, .001, .001, .001, .001, .001, .001.
In that situations, you will pick a 1 99% of the time, so the mean of
any sample would be very close to 1. If you do not use the relative
frequencies as "weights," you would mistakenly say that that the
expectation is 5.5.
(Element 17, yes/no scale) (Correct answer = "Yes", incorrect
answer = "No") The answer is 1.910 (or something that rounds to
that answer)
The Long Way (following Yakir, 2011, p. 57-59). First find the
expectation:> E = 0*.1 + 1*.15 + 2*.25 + 3*.1 + 4*.15 + 5*.1 + 6*.15>
round(E, 3)
[1] 2.95