Homework 1

# Homework 1 - your code Make a table with skewness and...

This preview shows page 1. Sign up to view the full content.

STAT 102A - HOMEWORK 1 JAN DE LEEUW Suppose we have a vector of numbers x . (1) Give R code to compute the moments around zero of order one to four. (2) Give R code to compute the moments around the mean of order one to four. (3) Give R code to compute the skewness and kurtosis. Preferred format is three R functions that take the vector x as an argument. Skewness is deﬁned (in terms of moments around the mean) as γ 1 = μ 3 ( μ 2 ) 3 / 2 , while kurtosis is γ 2 = μ 4 μ 2 2 - 3 . Use built-in R functions such as rnorm(), rcauchy(), rlaplace() and rchisq() to generate random vectors (say of length 1000) to try out
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: your code. Make a table with skewness and kurtosis results (in a Word or TeX document). Submit the code as a text ﬁle along with your table as pdf ﬁle through Moo-dle. Follow the instruction given at the discussion. DEPARTMENT OF STATISTICS, UNIVERSITY OF CALIFORNIA, LOS ANGELES, CA 90095-1554 E-mail address , Jan de Leeuw: [email protected] URL , Jan de Leeuw: http://gifi.stat.ucla.edu Date : Wednesday 13 th October, 2010. 1...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online