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

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

View Full Document Right Arrow Icon
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
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
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&gt; median(x) [1] 1.9 (e) Find the lower and upper quartiles (the 0.25 and 0.75 quantiles) Rweb&gt; 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&gt; plot(ecdf(x)) (g) Find Pr(X &lt; 2.5) under the empirical distribution. Rweb&gt; ecdf(x)(2.5) [1] 0.85...
View Full Document

Page1 / 2

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

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online