Sunday, March 31, 2013

Assignment: #Session 10

 

Assignment 1: Create 3 vectors, x, y, z and choose any random values for them, ensuring they are of equal length, T<- cbind(x,y,z) 


Create 3 dimensional plot of the same

Solution:












Assignment #2: 

Read the documentation of rnorm and pnorm, 
Create 2 random variables 
Create 3 plots: 
1. X-Y 
2. X-Y|Z (introducing a variable z and cbind it to z and y with 5 diff categories) Hint: ?factor
3. Color code and draw the graph 
4. Smooth and best fit line for the curve 

Solution: 











No comments:

Post a Comment