mean(data2$absent)
[1] 3
>gmean <- prod(data2$absent)^(1/length(data2$absent))
> gmean
[1] 2.798166
>median(data2$absent)
[1] 2.5
> mode <- names(table(data2$absent)) [table(data2$absent)==max(table(data2$absent))]
> mode
[1] "2"
> var(data2$absent)
[1] 1.6
> sd(data2$absent)
[1] 1.264911
> cv <- abs(sd(data2$absent)/mean(data2$absent))
> cv
[1] 0.421637
> IQR(data2$absent, type=6)
[1] 2.25
Pie Chart with Percentages
slices <- c(50, 16.6666667, 16.6666667, 16.6666667)
lbls <- c("2 days absent", "3 days absent", "4 days absent", "5 days absent")
pct <- round(slices/sum(slices)*100)
lbls <- paste(lbls, pct) # add percents to labels
lbls <- paste(lbls,"%",sep="") # ad % to labels
pie(slices,labels = lbls, col=rainbow(length(lbls)),
main="Pie Chart of Absences")
x <- data2$absent
> h<-hist(x, breaks=10, col="magenta", xlab="# of student absences",
+ main="Histogram of student absences")
> xfit<-seq(min(x),max(x),length=40)
> yfit<-dnorm(xfit,mean=mean(x),sd=sd(x))
> yfit <- yfit*diff(h$mids[1:2])*length(x)
> lines(xfit, yfit, col="blue", lwd=2)
Suppose someone claims that the population mean is 5 days absent (
Consider the number of days absent from a random sample of six students during a semester:...
Question Completion Status: Over a 3 month period, a researcher records the number of days that members of a local Gym use the gym facilites. You collect the following data from a sample of members at the Gym Below is the number of days each person made it to the gym. 2 16 30 39 15 29 37 55 15 30 38 60 14 29 36 51 18 31 40 19 31 40 19 32 41 21 32 41 25...
The accompanying data represent the number of daysabsent,x, and the final examscore,y, for a sample of college students in a general education course at a large state university. a Find the east-squares regressiri Ine íreatng number cf absences as the explaratry vanable: and the final exam soare as th션 response: vanaue ㄇㄇ {Round to Ihre ! decimal places as "eeded.》 Absences and Final Exam Scores No. of absences,x 0 1 2 3 4 5ฉ789 Final cxam score. y l8.0 a8.7...
The data below represent the number of days absent, x, and the final grade, y, for a sample of college students at a large university. Complete parts (a) through (e) below. No. of absences, x 0 1 2 3 4 5 6 7 8 9 Final grade, y 87.6 84.7 81.8 79.4 76.4 72.0 62.6 670 64.1 61.2 (a) Find the least squares regression line treating the number of absences, x, as the explanatory variable and the final grade, y,...
Descriptive Statistics: The Old-Fashioned Way (and with 2. In this problem, calculate the descriptive statistics below "by hand." That is, please show all of your calculations using Equation Editor (in Word, use Insert/Equation) or similar (although you must use R to verify your results). - Consider the hourly wages from a sample of six employed students duringa semester: w (10, 10, 16, 18, 18,18) A. Compute the arithmetic mean, geometric mean, median, and mode by B. Compute the variance, standard...
The following data represent the number of days absent per year in a population of 6 employees of a small company: 1 3 6 7 9 10 Assuming that you sample without replacement, select all possible samples of size n = 3 and construct the sampling distribution of the sample mean and the sample median. Compute the mean of all sample means and all sample medians. Are they equal? What is this property? Which estimator, the sample mean or the...
The data below represent the number of days absent, x, and the final grade, y, for a sample of college students at a large university. Complete parts (a) through (e) below No. of absences, x 0 1 2 3 4 5 6 7 8 9 Final grade, y 88.9 86.0 82.9 80.3 77.4 72.9 63.4 67.7 64.7 61.7 (a) Find the least-squares regression line treating the number of absences, x, as the explanatory variable and the final grade, y, as...
(1, 1 pt ea) Provide the summary statistics for the following set of numbers below (Note: if the answer is not an integer, you must provide the value to three decimal places)s 21, 24, 24, 29, 24, 28, 13, 16, 40, 33, 22, 20, 23, 19 44.1 u Mean 241 Range2Pop. Variance = Z - Median SOR Pop. standard deviation = Q1 225 Mid-range = 20, S- sample Sample standard deviation Mode = Skewness (population)- Kurtosis (population)- Excess kurtosis (population)-...
1 4 8 9 The data below represent the number of days absent, x, and the final grade, y, for a sample of college students at a large university. Complete parts (a) th below. No. of absences, 0 2 3 5 6 7 Final grade, y 87.7 84.9 82.0 79.6 76.7 72.4 62.9 67.4 64.6 61.8 (a) Find the least-squares regression Line treating the number of absences, x, as the explanatory variable and the final grade, y, as the response...
The following data represents the number of days absent and the final grade for a sample of college students in a general education course at a large state university. 0 1 2 3 4 5 6 7 8 9 No. of absences Final Grade 89.2 86.4 83.5 81.1 78.2 73.9 64.3 71.8 65.5 66.2 a) Which variable is the explanatory variable? b) Draw a scatter plot and describe your scatter plot (Direction, Strength, Form). c) Compute the correlation coefficient d)...
The data below represent the number of days absent, x, and the final grade, y, for a sample of college students at a large university. Complete parts (a) through (e) below. No. of absences, x 0 1 2 3 4 5 6 7 8 9 Final grade, y 88.1 85.1 82.1 79.6 76.5 72.0 62.3 66.7 63.7 60.7 (a) Find the least-squares regression line treating the number of absences, x, as the explanatory variable and the final grade, y, as...