ToothGrowth is a built-in R dataset. The ToothGrowth data frame gives the length of odontoblasts (cells responsible for tooth growth) in 60 guinea pigs. We are interested in some descriptive statistics related to the len column of ToothGrowth. We can access the data directly by using the assignment x <- ToothGrowth$len (In R use ?ToothGrowth for info on this dataset.) The values of ToothGrowth$len or x if defined as above are: 1] 4.2, 11.5, 7.3, 5.8, 6.4, 10.0, 11.2, 11.2, 5.2, 7.0, 16.5, 16.5, 15.2, 17.3, 22.5, 17.3 [17] 13.6, 14.5, 18.8, 15.5, 23.6, 18.5, 33.9, 25.5, 26.4, 32.5, 26.7, 21.5, 23.3, 29.5, 15.2, 21.5 [33] 17.6, 9.7, 14.5, 10.0, 8.2, 9.4, 16.5, 9.7, 19.7, 23.3, 23.6, 26.4, 20.0, 25.2, 25.8, 21.2 [49] 14.5, 27.3, 25.5, 26.4, 22.4, 24.5, 24.8, 30.9, 26.4, 27.3, 29.4, 23.0 It is highly recommended that you get your values for x from the assignment defined above above and not from copying the above printout of the data. a.Calculate the sample median of x. b. How many outliers does an R boxplot of x show? c. Calculate the interquartile range of x using R.
Correlation
Correlation defines a relationship between two independent variables. It tells the degree to which variables move in relation to each other. When two sets of data are related to each other, there is a correlation between them.
Linear Correlation
A correlation is used to determine the relationships between numerical and categorical variables. In other words, it is an indicator of how things are connected to one another. The correlation analysis is the study of how variables are related.
Regression Analysis
Regression analysis is a statistical method in which it estimates the relationship between a dependent variable and one or more independent variable. In simple terms dependent variable is called as outcome variable and independent variable is called as predictors. Regression analysis is one of the methods to find the trends in data. The independent variable used in Regression analysis is named Predictor variable. It offers data of an associated dependent variable regarding a particular outcome.
ToothGrowth is a built-in R dataset. The ToothGrowth data frame gives the length of odontoblasts (cells responsible for tooth growth) in 60 guinea pigs. We are interested in some
The values of ToothGrowth$len or x if defined as above are:
1] 4.2, 11.5, 7.3, 5.8, 6.4, 10.0, 11.2, 11.2, 5.2, 7.0, 16.5, 16.5, 15.2, 17.3, 22.5, 17.3
[17] 13.6, 14.5, 18.8, 15.5, 23.6, 18.5, 33.9, 25.5, 26.4, 32.5, 26.7, 21.5, 23.3, 29.5, 15.2, 21.5
[33] 17.6, 9.7, 14.5, 10.0, 8.2, 9.4, 16.5, 9.7, 19.7, 23.3, 23.6, 26.4, 20.0, 25.2, 25.8, 21.2
[49] 14.5, 27.3, 25.5, 26.4, 22.4, 24.5, 24.8, 30.9, 26.4, 27.3, 29.4, 23.0
It is highly recommended that you get your values for x from the assignment defined above above and not from copying the above printout of the data.
a.Calculate the sample median of x.
b. How many outliers does an R boxplot of x show?
c. Calculate the interquartile range of x using R.
d. Calculate the sample mean of x.
e. Calculate a 5% trimmed mean for x.
f. Calculate the sample variance of x.
g. Calculate the sample standard deviation of x.
h. What proportion of the x values are within 1 sample standard deviation from the sample mean
i. Calculate the range of x. (one number)
j. What number do you get if you sum the squares of the values in x?
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 7 images