# hw1-soln - (d Find the median of the empirical distribution...

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

Phouthakannha Nantharath 02/01/2010 Stat 5102-Spring 2009 Homework Assignment 1 1. Given data Rweb> x <- c(2.2,0.8,2.0,3.6,3.6,1.8,2.2,1.0,1.2,2.4,1.4,3.2,1.0,1.8,1.6,0.4,0.2,2.0,2.2,2.4) (a) Find the mean of the empirical distribution. Rweb> mean(x) [1] 1.85 (b) ind the variance of the empirical distribution. Rweb> mean((x - mean(x))^2) [1] 0.8515 (c) Find the standard deviation of the empirical distribution. Rweb> sqrt(mean((x - mean(x))^2)) [1] 0.9227676

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.

Unformatted text preview: (d) Find the median of the empirical distribution. Rweb> median(x) [1] 1.9 (e) Find the lower and upper quartiles (the 0.25 and 0.75 quantiles) Rweb> quantile(x, type = 1) 0% 25% 50% 75% 100% 0.2 1.0 1.8 2.2 3.6 The lower quartile is 1.0 and the upper quartile is 2.2 (f) Plot the empirical distribution function. Rweb> plot(ecdf(x)) (g) Find Pr(X < 2.5) under the empirical distribution. Rweb> ecdf(x)(2.5) [1] 0.85...
View Full Document

{[ snackBarMessage ]}

### Page1 / 2

hw1-soln - (d Find the median of the empirical distribution...

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

View Full Document
Ask a homework question - tutors are online