for my module 3 assignment, I used RStudio to compare two sets of data, each with seven observations. Set 1 was 10, 2, 3, 2, 4, 2, 5, and set 2 was 20, 12, 13, 12, 14, 12, 15. I calculated the mean, median, mode, range, interquartile range, variance, and standard deviation for both sets.
set 1 had a mean of 4, median of 3, and a mode of 2. Set 2 had a mean of 14, median of 13, and a mode of 12. both sets had a range of 8, interquartile range of 2.5 for, sample variance of 8.83, and the sample standard deviation was 2.97
When comparing the results, I noticed that Set 2 is basically Set 1 with 10 added to every number. Because of this, the mean, median, and mode are all 10 higher in Set 2. However, the range, IQR, variance, and standard deviation stay the same.
Overall, I think this assignment made the difference between the two types of statistics easier to understand. The central tendency results showed that set 2 had higher values, but the variation results showed that both sets were spread out in the same way. It was interesting to see that even though the numbers changed, the amount of variation stayed the same.
Leave a comment