STATS 240 Assignment 2
October 20, 2014
Due Date: Friday, Oct 31, 2014
TA: Ya Le, yle@stanford.edu
Solution write-up should contain mathematical calculations, if any, output and plots generated from software, if any, and analysis or conclusions for the ou
HW1: R codes and partial solution
October 31, 2014
Total points of this homework are 45: 10 for Problem 1,3,4 and 15 for Problem 2.
Below are the minimum R codes for you to do sanity check if points are deducted, and
meanwhile you get full credit also if
Hints for 3.6(a)
To show that nV in (3.26) is Wq (V, n 2) distributed, similar to what we have done last week,
we want to nd some i.i.d. Zi N (0, V) such that nV = n2 Zi ZT . As we have done before,
i
i=1
let Y = [y1 , . . . , yn ] Rqn and v = [1, . . . ,
STATS 240 Assignment 1
October 6, 2014
Due Date: Friday, October 17, 2014
Solution write-up should contain mathematical calculations, if any, output and plots generated from software, if any, and analysis or conclusions for the output. All code should be
R Commands Summary
Basic manipulations
In & Out
q
ls
rm
save
save.image
load
dump
source
history
help
help.search
library
search
getwd
dir
apply/tapply/sapply
sweep
sort
seq
rep
which
table
Manipulate objects
c
cbind
rbind
names
Object Types - can use is.
STATS 240 Assignment 3
November 4, 2014
Due Date: Friday, Nov 21, 2014
TA: Ka Wai Tsang, ktsang@stanford.edu
Solution write-up should contain mathematical calculations, if any, output and plots generated from software, if any, and analysis or conclusions
Chapter (5)
The differentiation
Rules of the derivative:
y = constant
dy
dx
= Zero
y = 6
dy
dx
=0
dy
dx
=0
dy
dx
=
y =
3
2
y = x
y
= x
y
= 5x
dy
dx
dy
=1
=5
1
y = xn
dy
dx
= n xn-1
power formula
y = x
dy
dx
=7x6
y = x
dy
dx
=3x2
7
3
y
=
C xn
y
=
y
=
4 x4
CHAPTER ( 3 )
DETERMINANTS
A determinant is a square array of real
numbers which is enclosed in vertical bars | | where
No. of Rows = No. of Columns
A determinant of order (2)
a1
b1
a2
b2
= a1 b2 a2 b1
Ex.: Evaluate the determinants
a)
3
2
0
4
b)
2
-3
4