Question: Please I need help statistics and visualization using R: 1. Given x=c(-20, -15,-5, 8, 12, 9, 2, 23, 19), find the following a) the mean
Please I need help
statistics and visualization using R:
1. Given x=c(-20, -15,-5, 8, 12, 9, 2, 23, 19), find the following a) the mean of x. b) the median of x. c) the sum of x. d) the sum of all the positive values in x. e) all the values xi in x such that | xi | > 8 and xi < 8.
2. Given x=c(1,3,0,-2,4,-1,5,2,10), find the following a) . b) ()2. c) 2. d) 5=3 . e) 34=1 .
3. Given x=c(12, 6, 15, 3, 12, 6, 21, 15, 18 , 12), find the following a) ( ) b) the range of x. c) the variance of x. d) the standard deviation of x. e) the five-number summary of x. 4. Download mismatch_dat.txt from Canvas, and do the following a) Read the data into R using scan() command. b) Create a boxplot of the data. c) Create a histogram of the data using the default setting of R. d) Create a histogram of (approximately) 15 equal-width intervals. e) Create a scatter plot of the data, set the title to Scatter Plot of Mismatch Data, and set the label of y axis to Mismatch Value.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
