Question

In: Statistics and Probability

Consider the following sample: 120, 94, 88, 67, 82, 106, 140, 102, 87, 99, 106, 86,...

Consider the following sample:

120, 94, 88, 67, 82, 106, 140, 102, 87, 99, 106, 86, 105, 93

a) Calculate the sample mean and the sample standard deviation


b) Calculate the sample range. What does it mean?


c) What is the mode of the data distribution?


d) Construct a box plot and interpret the result.


e) Identify the 45th percentile and interpret the result.


f) If the two largest data from above data distribution is removed, then what will be its impact on the result that you have obtained in (a)?


Solutions

Expert Solution

> # storing the sample data in variable x

 > x <- c(120,94,88,67,82,106,140,102,87,99,106,86,105,93)  > #a) Calculating the sample mean and sample standard deviation of the data > mean(x) [1] 98.21429 > sd(x) [1] 17.68171 > #b) calculating the sample range > range(x) [1] 67 140 > max(x)-min(x) [1] 73 

#sample range indicating the spread of maximum and minimum value, here the maximum value is 140 and minimum value is 67

# c) calculating the mode of the distribution

 > # Create the function. > getmode <- function(v) { +  uniqv <- unique(v) +  uniqv[which.max(tabulate(match(v, uniqv)))] + }  > print(getmode(x)) [1] 106 # hence, the mode is 106 > #d) constructing the boxplot > boxplot(x,main = "boxplot of x") 

# from the boxplot we can say that the data is symmetrically distributed,
#with one outlier whose value is 140.

 > #e) computing the 45th percentil > quantile(x,probs = 0.45)  45% 93.85 # the 45th percentile is 93.85, this means that 45% of data lies below 93.85 > # removing two largest data from x > #removing the first largest value >  x1 <-x[-which.max(x)] > #removing the second largest value >  x2 <- x1[-which.max(x1)] > print (x2)  [1] 94 88 67 82 106 102 87 99 106 86 105 93 > mean(x2) [1] 92.91667 > sd(x) [1] 17.68171

# after removing the two maximum value mean of new data is decrease while
# standard deviation remain same.


Related Solutions

29; 37; 38; 40; 58; 67; 68; 69; 76; 86; 87; 95; 96; 96; 99; 106;...
29; 37; 38; 40; 58; 67; 68; 69; 76; 86; 87; 95; 96; 96; 99; 106; 112; 127; 145; 150 What is the Standard deviation (please round to two decimal places)?
placebo: 110, 89, 86, 87, 85, 87, 74, 85 sleeping pill: 99, 84, 94, 87, 87,...
placebo: 110, 89, 86, 87, 85, 87, 74, 85 sleeping pill: 99, 84, 94, 87, 87, 106,102, 91 given data above. patients are testing out the new sleeping pill. Subjects' rapid eye movement (REM) was measures before and after they received the sleeping pill. 1)critical t or z value? 2)reject or fail to reject the null hypothesis 3)compute 95% confidence interval around the sample mean 4) compute Cohens d and explain its meaning 5) summarize your results using the correct...
Exam 1 Scores 91, 83, 75, 85, 90, 80, 67, 82, 88, 87, 95, 91, 73,...
Exam 1 Scores 91, 83, 75, 85, 90, 80, 67, 82, 88, 87, 95, 91, 73, 80, 83, 92, 94, 68, 75, 91, 79, 95, 87, 76, 91, 85, 59, 70, 69, 78 Dummy: 0, 0 What are the Hypothesis Statement? What is Ho? What is Ha? What is the P-Value? What is the Claim? What is the Decision Rule? (Hint: Do you reject or fail to reject the null hypothesis?) What is the Level of Significance? (Hint: α) What...
For the following data 86 84 91 75 78 80 74 75 87 76 82 90...
For the following data 86 84 91 75 78 80 74 75 87 76 82 90 98   68 What is the mean?    ______ What is the median?_________ What is the mode (if any)? _____ What is the standard deviation? ____ What is the variance? ______ What is the five-number summary for this data? Draw a boxplot with reasonable attention to scale. Create a stemplot of this data. Using the same data set and ignoring the fact that the 5-number summary...
Consider the following sample data. Sample A: 4, 6, 8 Sample B: 63, 65, 67 Sample...
Consider the following sample data. Sample A: 4, 6, 8 Sample B: 63, 65, 67 Sample C: 1,010; 1,012; 1,014 (a) Find the mean and standard deviation for each sample. Sample A: Sample B: Sample C: Mean 6 6 Correct 65 65 Correct 1,002 1,002 Incorrect Sample Standard Deviation 3 3 Incorrect 3 3 Incorrect 3 3 Incorrect (b) What does this exercise show about the standard deviation? The idea is to illustrate that the standard deviation is not a...
Consider the following sets of sample data: A: 145, 126, 120, 97, 123, 119, 115, 96,...
Consider the following sets of sample data: A: 145, 126, 120, 97, 123, 119, 115, 96, 134, 125, 96, 125, 145, 106 B: 4.09, 4.49, 4.52, 4.62, 4.15, 2.93, 3.91, 4.88, 4.54, 4.66, 4.44 Step 1 of 2 : For each of the above sets of sample data, calculate the coefficient of variation, CV. Round to one decimal place.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT