Tuesday, January 15, 2013

Business Applications Lab Session #2 on 15th Jan 2013

Assignment 1: Create the two matrices, select highlighted columns & use cbind to create a new matrix.

Commands included in the snapshot:



Assignment 2: Multiply given matrices 1 & 2
Commands:

z1%*%z2



Assignment 3: Create a regression from the NSE Data – NIFTY 30 days 1dec12, 31dec 12

Commands included in the snapshot:



Assignment 3: Read probability distribution from manual. Generate normal distribution data plot.

Commands:

x=seq(-4,4,length=200)
y=dnorm(x,mean=0,sd=1)
plot(x,y,type="l",lwd=2,col="red")



No comments:

Post a Comment