Given the data set $1, 1, 2, 3, 5, 8$, find the mean, median, mode, and midrange.
$\overline{x} \doteq 3.3333$
Median $= 2.5$
Mode $=1$
Midrange $=4.5$
Note, on a TI-83 calculator you can find the mean and median with:
: EDIT : Edit...
Enter values in the list marked "L1
"
: CALC : 1-Var Stats
The mean is listed as $\overline{x}$, while you may have to scroll to see the median, which is labeled "Med"
In R, you can calculate the mean, median, and midrange easily -- the mode takes a little more effort:
# Define this function if you absolutely must find modes in R: getmode = function(v) { uniques = unique(v) counts = tabulate(match(v,uniques)) max.count = max(counts) return(uniques[counts == max.count]) } # From there, things get easy: data = c(1,1,2,3,5,8) mean(data) # <-- calculates the mean median(data) # <-- calculates the median getmode(data) # <-- calculates mode, presuming you defined # getmod() as shown above (min(data) + max(data))/2 # <-- calculates midrange
For the data set $1, 1, 2, 3, 5, 8$, what is the range, variance, and IQR?
On a TI-83 calculator, assuming the data values have been entered into the list L1
already, simply use the "1-Var Stats" option again:
: CALC : 1-Var Stats
Sample standard deviations are listed as Sx
. You can square this value to find the sample variance. If the contents of L1
actually represent an entire population (this is rare), then the population standard deviation is listed as σx
. The IQR can be found by subtracting the value listed as minX
from the value of maxX
.
In R, calculating these statistics is very direct:
data = c(1,1,2,3,5,8) max(data) - min(data) # <-- calculates the range var(data) # <-- calculates the variance IQR(data) # <-- calculates the IQR (interquartile range)
For the following data set: $$\begin{array}{ccccc} 171 & 186 & 191 & 204 & 235\\ 173 & 186 & 193 & 204 & 239\\ 174 & 186 & 197 & 209 & 240\\ 181 & 187 & 199 & 210 & 242\\ 182 & 188 & 200 & 211 & 243\\ 184 & 191 & 200 & 218 & 320\\ \end{array}$$
For a distribution with a mean of 80 and a standard deviation of 10, at least what percentage of values will fall
In the simple random sample of lengths (in hours) of space shuttle flights given below, is there a time that is unusual? How might this flight time be explained? $$0, 73, \ 95, \ 235, \ 192, \ 165, \ 262, \ 191, \ 376, \ 259, \ 235, \ 381, \ 331, \ 221, \ 244$$
Of the following playing times (in seconds) of a random selection of pop songs, is there one that seems significantly different from the others? If there is, and it is deleted, comment on whether or not the mean, median, standard deviation, and IQR change by a significant amount. $$448, \ 242, \ 231, \ 246, \ 246, \ 293, \ 280, \ 227, \ 244, \ 213, \ 262, \ 239, \ 213, \ 258, \ 255, \ 257$$
Nicotine amounts (in mg per cigarette) for random samples of filtered and nonfiltered cigarettes are given below. Use appropriate statistics to compare these two samples. $$\begin{array}{rl} \textrm{Nonfiltered:} & 1.1, \ 1.1, \ 1.7, \ 1.6, \ 1.1, \ 1.2, \ 1.1, \ 1.3, \ 1.0, \ 1.3, \ 1.1, \ 1.1\\ \textrm{Filtered:} & 0.4, \ 0.2, \ 1.2, \ 1.0, \ 0.8, \ 1.0, \ 1.1, \ 1.1, \ 1.1, \ 0.6, \ 0.8, \ 1.1 \end{array}$$
Suppose a population has mean 161 and a standard deviation of 7. What can one say about the percentage of values in the population that are within 14 units of the mean?