CSC487 Homework #1 Solved

35.00 $

Category: Tags: , ,
Click Category Button to View Your Next Assignment | Homework

You'll get a download link with a: zip solution files instantly, after Payment

Securely Powered by: Secure Checkout

Description

Rate this product

 

1. Use Su_raw_matrix.txt for the following questions
(a) Use read.delim function to read Su_raw_matrix.txt into a variable called su.

(b) Use mean and sd functions to find mean and standard deviation of Liver_2.CEL column.

(c) Use colMeans and colSums functions to get the average and total values of each column.

2. Use rnorm(n, mean = 0, sd = 1) function in R to generate 10000 numbers for the following (mean, sigma) pairs and plot histogram for each, meaning you need to change the function parameter accordingly. Then comment on how these histograms are different from each other and state the reason.

(a) mean=0, sigma=0.2

(b) mean=0, sigma=0.5

3. Perform the steps below with ”dat” dataframe which is just a sample data for you to observe how each plot function (3b through 3e) works. Notice that you need to have ggplot2 library installed on your system. Please refer slides how to install and import a library. Installation is done only once, but you need to import the library every time you need it by saying library(ggplot2). Then Run the following commands and observe how the plots are generated.

(a) Data generation

(b) Overlaid histograms

(c) Interleaved histograms

(d) Density plots

(e) Density plots w/ semi-transparent fill

(f) Using diabetes_train.csv

4. By using quantile(), calculate 10th, 30th, 50th, 60th percentiles of skin attribute of diabetes data.

  • HW1-l4r046.zip