stat424hw5_solution

# stat424hw5_solution - 1 > X = c(40,50,60,40,50,60,40,50,60...

This preview shows pages 1–2. Sign up to view the full content.

1. > X = c(40,50,60,40,50,60,40,50,60) > p1 = ((X-50)/10)/sqrt(2) > p2 = (3*(((X-50)/10)^2-2/3))/sqrt(6) > X2 = rep(c(40,50,60),each=3) > s1 = ((X2-50)/10)/sqrt(2) > s2 = (3*(((X2-50)/10)^2-2/3))/sqrt(6) > cbind(rep(1,9),p1,p2,s1,s2,p1*s1,p1*s2,p2*s1,p2*s2) p1 p2 s1 s2 Four Interactoins [1,] 1 -0.7071068 0.4082483 -0.7071068 0.4082483 0.5 -0.2886751 -0.2886751 0.1666667 [2,] 1 0.0000000 -0.8164966 -0.7071068 0.4082483 0.0 0.0000000 0.5773503 -0.3333333 [3,] 1 0.7071068 0.4082483 -0.7071068 0.4082483 -0.5 0.2886751 -0.2886751 0.1666667 [4,] 1 -0.7071068 0.4082483 0.0000000 -0.8164966 0.0 0.5773503 0.0000000 -0.3333333 [5,] 1 0.0000000 -0.8164966 0.0000000 -0.8164966 0.0 0.0000000 0.0000000 0.6666667 [6,] 1 0.7071068 0.4082483 0.0000000 -0.8164966 0.0 -0.5773503 0.0000000 -0.3333333 [7,] 1 -0.7071068 0.4082483 0.7071068 0.4082483 -0.5 -0.2886751 0.2886751 0.1666667 [8,] 1 0.0000000 -0.8164966 0.7071068 0.4082483 0.0 0.0000000 -0.5773503 -0.3333333 [9,] 1 0.7071068 0.4082483 0.7071068 0.4082483 0.5 0.2886751 0.2886751 0.1666667 3. > y=c(45,45,20,50,25,37,50,20,25,15,34,55,50,45,30,45,45,23,40,35)

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 04/26/2011 for the course STATS 424 taught by Professor Peterqian during the Spring '11 term at University of Wisconsin.

### Page1 / 4

stat424hw5_solution - 1 > X = c(40,50,60,40,50,60,40,50,60...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online