Tuesday, 8 January 2013

ITBAL Assignment


Assignment 0
Plot histogram of 1 dimensional data
> x<-c(1,2,3)
> plot(x,type="h")

Assignment 1
Plot histogram of a single col from NSE data
>zcol1<-z[,3]
> plot(zcol1,type="h")



Assignment 2
Plot the above in line –point form
> plot(zcol1,type="b")
> main="NSE Graph"
> plot(zcol1,type="b",main="NSE Graph")
> plot(zcol1,type="b",main="NSE Graph",xlab="Time",ylab="Nifty")

Assignment 3
Scatterplot of Low value of Index
> zcol2<- z[,4]
>plot(zcol1,zcol2)

Assignment 4
Find the volatility of indices
> mergedata<- c(zcol1,zcol2)
> summary(mergedata)
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max.
   4888    5660    5723    5758    5884    6021
> range(mergedata)
[1] 4888.20 6020.75

No comments:

Post a Comment