statistics for data science
Need help with this assignment?Get an original answer from a qualified tutor — from $10/page.
Get it written →
Provide in the plain text R commands that finds/solves the following:
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 murder data https://stat4ds.rwth-aachen.de/data/Murder.dat, https://stat4ds.rwth-aachen.de/data/Murder2.dat
- Houses data : https://stat4ds.rwth-aachen.de/data/Houses.dat
Useful functions in R to solve problems in this assignment: sample, read.table, mean, sd, summary, boxplot, hist, table, cbind, length, case, tapply
Get a plagiarism-free answer to this question
Send us your instructions and we’ll match you with the best writer in your subject.
- 100% human-written, zero AI
- Turnitin report included
- Confidential — we never share your data
- Free revisions & refunds