Question

In: Statistics and Probability

) Let X ={35, 45, 39, 41, 41, 44, 46, 48, 49, 34, 12, 50, 20,...

) Let X ={35, 45, 39, 41, 41, 44, 46, 48, 49, 34, 12, 50, 20, 38, 40}(a.) Insert X into R. (a.) Find the mean of X. (b.) Depict X in a boxplot. (NOTE: This question should be answered entirely using code for R.)

Solutions

Expert Solution

Given here is an X where,

(a) Now here we need to insert X into R i.e we need to create an X vector using code in R.

Now we know that to create a vector in R we use the function,

Hence to create a vector and store it in X we need to write the following code in R console,

X<- c(35, 45, 39, 41, 41, 44, 46, 48, 49, 34, 12, 50, 20, 38, 40)

And then press Enter.

To check whether the vector is really stored in X we can write,

 print(X)

The output will be,

[1] 35 45 39 41 41 44 46 48 49 34 12 50 20 38 40

Hence our vector has been succesfully stored in X.

(b) Now since we have created a vector and stored it in X now we need to find the mean of X.

In R to find the mean of a vector stored in X we use a function,

Hence to find the mean of X we write the following code in R console,

 mean(X)

And then press Enter.

The output is,

 [1] 38.8

Hence the mean of the vector X is 38.8

(c) Now here we need to depict X in a boxplot.

That is we need to create a boxplot using X.

In R to create a boxplot we use the function,

Hence to create the boxplot of X we write the following code in R console,

 boxplot(X)

And then press Enter.

The output is,

Clearly we can see that our vector contains two outliers.


Related Solutions

Group A: 60, 57, 53, 42, 44, 48, 54, 39, 52, 45 Group B: 50, 49,...
Group A: 60, 57, 53, 42, 44, 48, 54, 39, 52, 45 Group B: 50, 49, 60, 55, 43, 56, 53, 69, 49, 52 Using Wilcoxen Rank Sum test to test a difference in the medians of the two populations using Alpha= 0.05
13.Data Set : 41, 18, 21, 34, 90, 39, 41, 14, 45, 53, 50, 82, 38,...
13.Data Set : 41, 18, 21, 34, 90, 39, 41, 14, 45, 53, 50, 82, 38, and 92 a) Compute the percentile of 38 b) Find the 90th percentile c) Find the five number Summary d) Construct a modified Box-Plot e) Determine if data has any potential outliers and explain why?
find the equation of the regression line X 44 49 48 45 53 51 Y 108...
find the equation of the regression line X 44 49 48 45 53 51 Y 108 134 117 124 127 118 using Ti84 calculator
Data Set: 14, 16, 21, 34, 38, 39, 41, 45, 50, 53, 82, 90 - Find...
Data Set: 14, 16, 21, 34, 38, 39, 41, 45, 50, 53, 82, 90 - Find the 70th percentile -Find the five number summary -Determine if the data has any outliers. Explain why
2017-2018 Goals 49 44 43 42 42 41 40 40 39 39 39 37 36 36...
2017-2018 Goals 49 44 43 42 42 41 40 40 39 39 39 37 36 36 35 35 34 34 34 34 2012-2013 Goals 32 29 28 26 23 23 23 22 22 21 21 21 20 20 20 19 19 18 18 18 2007-2008 Goals 65 52 50 47 43 43 42 41 40 40 38 38 36 36 35 34 34 33 33 32 Given the above three sets of data, we want to compare the three seasons...
25 49 66 44 60 36 51 78 41 54 32 54 80 56 48 41...
25 49 66 44 60 36 51 78 41 54 32 54 80 56 48 41 65 64 62 53 47 72 39 69 44 1) Average 2) Medium 3) Q1 4) Q3 5) P63 6) P93 7) Range 8) Variance 9) Standard Deviation 10) Construct a box-mustache graph for the above data.
Consider the following two variables: x y 45 10 23 30 17 48 19 45 41...
Consider the following two variables: x y 45 10 23 30 17 48 19 45 41 34 13 27 39 26 37 31 24 38 12 44 What is the correlation between these two variables? Use Pearson's r, and take your answer to two decimal places. To what two-tailed critical value of Pearson's r would you compare this? Use the provided tables, assume alpha, = 0.05, and express your answer as an absolute value. Round to two decimal places. If...
Group A has three scores, 12, 39, 42. Group B has three scores, 49, 46, 14....
Group A has three scores, 12, 39, 42. Group B has three scores, 49, 46, 14. Group C has three scores, 49, 39, 32. Calculate the grand mean (round to two digits).   QUESTION 2 Group A has three scores, 36, 50, 47. Group B has three scores, 17, 40, 18. Group C has three scores, 40, 29, 18. Calculate MS error (Mean squared error for the error term). Round to one digit. QUESTION 3 Group A has three scores, 17,...
Given the following grouped frequency distribution Data Frequency 30 - 34 15 35 - 39 20...
Given the following grouped frequency distribution Data Frequency 30 - 34 15 35 - 39 20 40 - 44 15 45 - 49 10 50 - 54 5 55 - 59 4 60 - 64 3 65 - 69 1 70 - 74 1 Find the mean (give you answer to one decimal) = Find the standard deviation (give your answer to two decimals) = What is the shape of this distribution?
Control 5 mg 10 mg 50 51 60 48 51 58 46 49 57 51 53...
Control 5 mg 10 mg 50 51 60 48 51 58 46 49 57 51 53 61 53 52 61 47 46 64 Above are the results of a drug trial. The scores are given for subjects in three different conditions – a placebo control, 5 mg and 10 mg of the drug. Please run the appropriate test in SPSS using p-value or traditional hypothesis testing method and choose the alpha or p-value. If the results are statistically significant, please...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT