Tuesday, January 15, 2013

Assignment 1: Binding of Matrices

Assignment 1: Binding of Matrices

The objective is to create two 3 x 3 matrices and select 1 column of matrix 1 and another column  of matrix 2 finally merging  them into another matrix using cbind command.

Command :-







Assignment 2: Matrix Multiplication





Assignment 3: Regression plots using NSE past month Data

Command :-

nse<-read.csv(file.choose(),header=T)
reg<-lm(high~open,data=nse)
To find residuals
residuals(reg)








Assignment 4: Generate a Normal distribution data and plot it


x=seq(70,130,length=200)
y=dnorm(x,mean=100,sd=10)
plot(x,y)




No comments:

Post a Comment