HOMEWORK 1: CMP 517 SUMMER 2022 Due Date: 6/17/2022 1. Using R, generate the following two vectors: A = {13.2, 6.7, 9.0,
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
HOMEWORK 1: CMP 517 SUMMER 2022 Due Date: 6/17/2022 1. Using R, generate the following two vectors: A = {13.2, 6.7, 9.0,
statement to read each of these files one at a time iii) Read the data from each of these files, and make x-y plot using R iii) Compute mean and standard deviation of x and y 3. Generate 100 random real numbers in the range from 1 to 25. Now using suitable commands do the following: a) Extract the data which are above 10, and display them b) Extract the data which are between 5 and 15, and display them. c) Determine the mean and median values of all the data. d) Draw a Histogram using R, using the random data. T
HOMEWORK 1: CMP 517 SUMMER 2022 Due Date: 6/17/2022 1. Using R, generate the following two vectors: A = {13.2, 6.7, 9.0, 12.1, 15.2, 17.9, 6.8, 26.8, 11.0, 8, 13.9, 14.5, 14.7, 17.6, 18.2, 10.7, 14.2, 9.5, 10.2} and B={10, 1, 13, 12, 9, 5, 9, 2, 17, 2, 10, 15, 18, 23, 16) a) Find the mean, median and variance for A and B b) Draw box plots for A and B separately and find out the 25th, 50th and 75th percentile values. [Use summary to find these info] c) Draw a Histogram for each of them. d) Draw a dot diagram for A and find if there is any outlier. (See you may not be able to do using R, do it on hand). 2. i) Create a data file using excel and save that file in the following format (a) csv file and (b) formatted excel file (*.xls). The files should have two arbitrary columns of at least 10 data. ii) Now write down proper