Question

In: Statistics and Probability

The following sets of data represent the cost of living index for utilities and the cost...

The following sets of data represent the cost of living index for utilities and the cost of living index for transportation for 46 randomly chosen metropolitan areas in the United States.

utilities=c(90,84,85,106,83,101,89,125,105, 118,133,104,84,80,77,90,92,90, 106,95,110,112,105,93,119,99,109, 109,113,90,121,120,85,91,91,97, 95,115,99,86,88,106,80,108,90,87)

transportation=c(100,91,103,103,109,109,94,114,113, 120,130,117,109,107,104,104,113,101, 96,109,103,107,103,102,101,86,94, 88,100,104,119,116,104,121,108,86, 100,83,88,103,94,125,115,100,96,127)

Include your R commands and output for each part of the problem

  1. Create a single table summarizing the mean, median, mode, standard deviation, variance and 5-number summary for each data set.
  2. Create a boxplot for cost of living index for utilities.
  3. Create a boxplot for the cost of living index for transportation.
  4. Write a short paragraph comparing the two data sets and include lots of details.

Solutions

Expert Solution

uti=sort(utilities)
> uti
[1] 77 80 80 83 84 84 85 85 86 87 88 89 90 90 90 90 90 91 91 92 93 95 95 97 99 99 101
[28] 104 105 105 106 106 106 108 109 109 110 112 113 115 118 119 120 121 125 133
> mean=mean(uti)
> mean
[1] 99.02174

mode=90

var=var(uti)
> var
[1] 184.0217
> sd=sd(uti)
> sd
[1] 13.56546
> median=median(uti)
> median
[1] 96

> dt=data.frame(summry=c(99.02174,96,90,13.5654,184.0217),stat=c("mean","median","mode","sd","variance"))
> dt
summry stat
1 99.02174 mean
2 96.00000 median
3 90.00000 mode
4 13.56540 sd
5 184.02170 variance

## Transportation ##

> tra=sort(transportation)
> tra
[1] 83 86 86 88 88 91 94 94 94 96 96 100 100 100 100 101 101 102 103 103 103 103 103 104 104 104 104
[28] 107 107 108 109 109 109 109 113 113 114 115 116 117 119 120 121 125 127 130
> mean=mean(tra);mean
[1] 104.7609
> median=median(tra);median
[1] 103.5
> mode=103
> var=var(tra)
> var
[1] 122.4082
> sd=sd(tra)
> sd
[1] 11.06382
> dt1=data.frame(summry=c(104.7609,103.5,103,11.063,122.4082),stat=c("mean","median","mode","sd","variance"))
> dt1
summry stat
1 104.7609 mean
2 103.5000 median
3 103.0000 mode
4 11.0630 sd
5 122.4082 variance

Boxplot of utilities

boxplot(uti)

boxplot of trasportation

boxplot(tra)

1.As from the summary of the two data set we observe that first data set utilities look like positively skewed because from the summary we observe that

mean > median> mode

In that case the distribution is positively skewed.

also form the box plot we observe that the data has no any outliers

.

2. And from the second data set transportation we observe that the data set is approximately symmetric because the mean median and mode are approximately equal.

Also from the box plot we observe that the there is no outliers is the data set.


Related Solutions

Assume the following data represent the cost of a gallon of gasoline ($) at all the...
Assume the following data represent the cost of a gallon of gasoline ($) at all the various gas stations around town on a given day. Take a random sample of size 5 from this population. 2.59 3.01 3.15 2.83 2.79 2.59 2.96 3.05 3.19 3.03 2.65 2.74 2.83 2.69 3.05 3.10 2.89 2.84 2.63 3.11 2.76 2.89 2.90 3.09 3.05 2.71 2.84 2.90 2.75 2.90 2.56 2.89 2.76 2.87 2.92 3.05 3.09 2.57 3.20 2.76 a) Describe the individual, variable,...
1. The consumer price index is a cost-of-living index. False True 2.Labor productivity is a major...
1. The consumer price index is a cost-of-living index. False True 2.Labor productivity is a major determinant of the money supply. the skill level of the labor force. the size of the labor force. living standards. 3.If consumption falls from $600 billion to $575 billion and the marginal propensity to consume is 0.8, then equilibrium income will fall by $25 billion. rise by $25 billion. rise by $125 billion. fall by $125 billion.
The following data sets represent simple random samples from a population whose mean is 100. Complete...
The following data sets represent simple random samples from a population whose mean is 100. Complete parts ​(a) through ​(e) below. Full data set Data Set I 106 124 88 126 89 71 74 110 Data Set II 106 124 88 126 89 71 74 110 88 91 109 83 113 118 94 124 97 85 80 104 Data Set III 106 124 88 126 89 71 74 110 88 91 109 83 113 118 94 124 97 85 80...
The following data represent the daily hotel cost and rental car cost for 20 U.S cities...
The following data represent the daily hotel cost and rental car cost for 20 U.S cities during a week in October 2003 CITY HOTEL CARS San Francisco               205               47 Los Angeles               179               41 Seattle                   185               49 Phoenix               210               38 Denver                   128               32 Dallas                   145  ...
Predict the 2007 cost of living index of city 2 and find its residual. The predicted...
Predict the 2007 cost of living index of city 2 and find its residual. The predicted 2007 cost of living index of city 2 is nothing . ​(Round to one decimal place as​ needed.) City Index_2006 Index_2007 1 117.3 125.7 2 121.8 122 3 102.3 104.3 4 93 95.8 5 111.7 119.6 6 112.9 124.8 7 95.3 97.3 8 109.9 111.5 9 100.5 101.8 10 95.8 103.6 11 121.2 121.4 12 119.3 124.6 13 105.9 118.3 14 111.2 119.4 15...
Develop a simple linear regression model to predict the Cost of Living Index based upon Restaurant...
Develop a simple linear regression model to predict the Cost of Living Index based upon Restaurant Price Index using a 95% level of confidence. Write the reqression equation. Discuss the statistical significance of the model as a whole using the appropriate regression statistic at a 95% level of confidence. Discuss the statistical significance of the coefficient for the independent variable using the appropriate regression statistic at a 95% level of confidence. Interpret the coefficient for the independent variable. What percentage...
cost living, Bic Mac Index, GNI per capita, culture and easy business in Venezuela?
cost living, Bic Mac Index, GNI per capita, culture and easy business in Venezuela?
Question 1 The following data represent the cost of electricity (in Rand) during July 2019 for...
Question 1 The following data represent the cost of electricity (in Rand) during July 2019 for a random sample of 30 one-bedroom apartments in a large city: 96 171 202 178 147 197 130 149 167 191 135 129 158 166 150 95 187 144 139 175 123 111 116 202 157 128 82 102 112 95 (a) Construct a stem and leaf graph for the given data. (10) (b) Construct a histogram for the given data. (10) (c) Draw...
The following data represent the daily rental cost for a compact automobile charged by two car...
The following data represent the daily rental cost for a compact automobile charged by two car rental companies, Thrifty and Hertz, in 10 randomly selected major U.S. cities. Test whether Thrifty is less expensive than Hertz at the α = 0.1 level of significance. City Thrifty Hertz Chicago 21.81 18.99 Los Angeles 29.89 48.99 Houston 17.90 19.99 Orlando 27.98 35.99 Boston 24.61 25.60 Seattle 21.96 22.99 Pittsburgh 20.90 19.99 Phoenix 47.75 36.99 New Orleans 33.81 26.99 Minneapolis 33.49 20.99 Conditions:...
City Cost of Living Index Rent (in City Centre) Monthly Pubic Trans Pass Bottle of Wine...
City Cost of Living Index Rent (in City Centre) Monthly Pubic Trans Pass Bottle of Wine (mid-range) Loaf of Bread Milk London 88.33 $4,069.99 $173.81 $10.53 $1.23 $4.63 Dublin 87.93 $3,025.83 $144.78 $14.12 $1.37 $4.31 Paris 89.94 $2,701.61 $85.92 $8.24 $1.56 $4.68 Rome 78.19 $2,354.10 $41.20 $7.06 $1.38 $6.82 Amsterdam 85.9 $2,823.28 $105.93 $7.06 $1.33 $4.34 Berlin 71.65 $1,695.77 $95.34 $5.89 $1.24 $3.52 Athens 63.06 $569.12 $35.31 $8.24 $0.80 $5.35 Brussels 82.2 $1,734.75 $57.68 $8.24 $1.66 $4.17 Madrid 66.75 $1,795.10...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT