Provide in the plain text R commands that finds/solves the following:
- The student directory for a large university has 400 pages with 130 names per page, a total of 52,000 names. Using software, show how to select a simple random sample of 10 names.
- From the Murder data file, use the variable murder, which is the murder rate (per 100,000 population) for each state in the U.S. in 2017 according to the FBI Uniform Crime Reports. At first, do not use the observation for D.C. (DC). Using software:
Find the mean and standard deviation and interpret their values.
Find the five-number summary, and construct the corresponding boxplot.
Now include the observation for D.C. What is affected more by this outlier: The mean or the median? - The Houses data file lists the selling price (thousands of dollars), size (square feet), tax bill (dollars), number of bathrooms, number of bedrooms, and whether the house is new (1 = yes,0 = no) for 100 home sales in Gainesville, Florida. Let’s analyze the selling prices.
Construct a frequency distribution and a histogram.
Find the percentage of observations that fall within one standard deviation of the mean.
Construct a boxplot.
Datasets needed are at
Index of Data Sets
Useful functions in R to solve problems in this assignment: sample, read.table, mean, sd, summary, boxplot, hist, table, cbind, length, case, tapply
Index of Datasets
Afterlife.dat
(28 KB)
Anorexia.dat
(3 KB)
Beetles.dat
(1 KB)
Beetles_ungrouped.dat
(5 KB)
BushGore.dat
(2 KB)
Cancer.dat
(1 KB)
Cancer2.dat
(1 KB)
Carbon.dat
(1 KB)
Carbon_West.dat
(1 KB)
CellPhone.dat
(1 KB)
Chicago.dat
(1 KB)
Covid19.dat
(1 KB)
CovidMasks.dat
(3 KB)
Crabs.dat
(8 KB)
Crabs2.dat
(17 KB)
Elections.dat
(2 KB)
Elections2.dat
(1 KB)
Employment.dat
(1.552 KB)
Employment2.dat
(841 KB)
Endometrial.dat
(2 KB)
FEV.dat
(30 KB)
Firearms.dat
(1 KB)
Firearms2.dat
(2 KB)
Florida.dat
(4 KB)
Gators.dat
(1 KB)
GSS2018.dat
(234 KB)
Guns_Suicide.dat
(1 KB)
Happy.dat
(67 KB)
Hares.dat
(14 KB)
Houses.dat
(7 KB)
Income.dat
(3 KB)
Iris.dat
(7 KB)
Kyphosis.dat
(1 KB)
Library.dat
(1 KB)
Mental.dat
(1 KB)
Murder.dat
(2 KB)
Murder2.dat
(3 KB)
PartyID.dat
(62 KB)
Polid.dat
(61 KB)
Salaries.dat
(1 KB)
ScotsRaces.dat
(5 KB)
ScotsRacesMW.dat
(8 KB)
Sheep.dat
(16 KB)
SoreThroat.dat
(1 KB)
Soybeans.dat
(5 KB)
Students.dat
(5 KB)
Substance.dat
(1 KB)
Survival.dat
(1 KB)
Survival_Cox_Oakes.dat
(1 KB)
Tennis.dat
(1 KB)
UN.dat
(4 KB)