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 a
STATS 240 Assignment 2
October 20, 2014
Due Date: Friday, Oct 31, 2014
TA: Ya Le, [email protected]
Solution write-up should contain mathematical calculations, if any, output and plots generated from s
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
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 anal
STATS 240 Assignment 3
November 4, 2014
Due Date: Friday, Nov 21, 2014
TA: Ka Wai Tsang, [email protected]
Solution write-up should contain mathematical calculations, if any, output and plots genera
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
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
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