I found something a little different: > median(nb10[,1]) [1] 404 > mean(nb10[,1]) [1] 404.59
compare them.... They are different. Your sample is not perfectly symmetrical (50% above, 50% below) about the mean (ie. the third standardized moment (skewness) is not zero). This is really not a question about R, and this is not a place to get answers for homework. Good luck with your studies. Ajata Paul wrote > > Okay, so I have a homework projecr for R, and we had to input the > following link as some sort of data: > nb10 <- read.table("http://www.adjoint-functors.net/su/web/314/R/NB10"). > Afterwards, we have to use > fivenum(nb10) to find max, min, quantiles, and sd, but I'm okay with this. > The next question is where I'm stuck. The question is as follows; > Compare the median (use the quantiles or median(nb10$V1)) to the mean. I > found the mean to be 408.8 and the median to be 404. Can you please > explain to me what I need to put into the program to get an answer and > explain what the answer means? > > Thank You. > -- View this message in context: http://r.789695.n4.nabble.com/How-to-Compare-the-median-to-the-mean-tp4357520p4357544.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.