Question

In: Statistics and Probability

3. [5+5+1=11 pts] a. Draw a frequency histogram for “Temp” variable from “airquality” data. Use breaks=seq(55,...

3. [5+5+1=11 pts]

a. Draw a frequency histogram for “Temp” variable from “airquality” data. Use breaks=seq(55,

100, 5) in your hist() function. Show frequency on top of each bar. Paste your graph below.

b. Draw a relative frequency histogram for “Temp” variable from “airquality” data using the

same ‘breaks’ parameter. Add a density curve to it. Paste your graph below.

c. What kind of distribution does the data exhibit? Right skewed? Left skewed? Symmetric?

Solutions

Expert Solution

Solution-A:

use hist function in R ,with breaks inside hist set breaks=seq(55, 100, 5),Give title for histogram in main inside quotes.

Give the labels for x axis with xlab and set color of your choice with col

Rcode:

hist_temp <- hist(airquality$Temp,breaks=seq(55, 100, 5),main="Histogram for temperature ",
xlab="Temp",col="green",
border="orange")
text(hist_temp$mids,hist_temp$counts,labels=hist_temp$counts, adj=c(0.005, -0.005))

Output:

Solution-b:

Rcode:

hist(airquality$Temp,breaks=seq(55, 100, 5),prob=T,main="Density curve Temperature",col="green",
border="orange", xlab="Temp")
lines(density(airquality$Temp,na.rm=T),col="blue",lwd=4)

c. What kind of distribution does the data exhibit? Right skewed? Left skewed? Symmetric?

From histogram and density we could see that sample follow normal distribution

shape is symmetric


Related Solutions

(10 pts) For the following data: Group 1 Group 2 3 5 2 9 1 8...
(10 pts) For the following data: Group 1 Group 2 3 5 2 9 1 8 8 12 4 9 Calculate the following: SS1 SS2 SSD SD Sx1-x2
1. (3 pts) Use data given. You are trying to evaluate which golf ball goes the...
1. (3 pts) Use data given. You are trying to evaluate which golf ball goes the furthest distance. a. Set up your null and alternative hypotheses. Use PHStat –> Multi-Sample Tests -> One Way ANOVA select the Tukey-Kramer Proceedure checkbox. Get the P-value from the ANOVA sheet generated. Use the p-value to find your confidence and write up a short conclusion. Your report should include: • Hypotheses • Output from Descriptive Statistics that check assumptions. If there are assumption issues...
Consider the data. xi 1 2 3 4 5 yi 4 7 5 11 15 The...
Consider the data. xi 1 2 3 4 5 yi 4 7 5 11 15 The estimated regression equation for these data is  ŷ = 0.60 + 2.60x. (a)Compute SSE, SST, and SSR using equations SSE = Σ(yi − ŷi)2, SST = Σ(yi − y)2, and SSR = Σ(ŷi − y)2. SSE=SST=SSR= (b) Compute the coefficient of determination r2. r2 = Comment on the goodness of fit. (For purposes of this exercise, consider a proportion large if it is at least...
Consider the data. xi 1 2 3 4 5 yi 4 7 5 11 13 (a)...
Consider the data. xi 1 2 3 4 5 yi 4 7 5 11 13 (a) Compute the mean square error using equation  s2 = MSE = SSE n − 2  . (Round your answer to two decimal places.) (b) Compute the standard error of the estimate using equation s = MSE = SSE n − 2  . (Round your answer to three decimal places.) (c) Compute the estimated standard deviation of b1 using equation sb1 = s Σ(xi − x)2...
Consider the following data: 5, 0, 1, 3, 6, 3, 7, 11. Find the standard deviation....
Consider the following data: 5, 0, 1, 3, 6, 3, 7, 11. Find the standard deviation. d) Find the median if 10.9 is added to each data point. e) Find the mean if 10.9 is added to each data point. f) Find the standard deviation if 10.9 is added to each data point. g) Find the median if each data point is multiplied by 9.4. h) Find the mean if each data point is multiplied by 9.4. i) Find standard...
Given the following data, illustrate Selection Sort. index 1 2 3 4 5 6 data 11...
Given the following data, illustrate Selection Sort. index 1 2 3 4 5 6 data 11 10 21 3 7 5
Use data below to complete 5 3 0 0 0 5 1 2 0 1 1...
Use data below to complete 5 3 0 0 0 5 1 2 0 1 1 1 1 7 0 2 2 1 2 0 6 4 1 3 2 4 0 1 1 0 0 0 1 3 0 2 1 0 3 0 3 0 1 2 8 2 3 0 0 5 1 1 3 10 1 0 2 0 1 0 Table 1.18 Frequency of Number of Movies Viewed Number of Movies Frequency Relative Frequency Cumulative...
3. Use the information in problem 1 and the experimental data from a tracer study shown...
3. Use the information in problem 1 and the experimental data from a tracer study shown in the table below to answer the following questions. t (min) C (mg/L) t (min) C (mg/L) t (min) C (mg/L) 0 0 30 0.174 85 3.245 5 0 35 0.305 105 4.085 10 0 45 0.654 125 4.570 15 0 55 1.219 145 4.823 20 0.028 65 1.916 165 4.968 25 0.073 75 2.629 185 5.064 a).   (2 pts) To determine the required...
3. Use the data from question 1. Conduct a hypothesis test at α = .05 to...
3. Use the data from question 1. Conduct a hypothesis test at α = .05 to determine if the population variance is less than 909.00. Question 1- 1. Consider the following sampled data: s 2 = 906.304, n = 31. Calculate the following confidence intervals for the population variance: (a) 90% (b) 95% (c) 99%
1.The actual values for 12 periods (shown in order) are:(1) 45 (2) 52 (3) 48 (4) 59 (5) 55 (6) 55 (7) 64 (8) 58 (9) 73 (10) 66 (11) 69 (12) 74
  Question 1 contains the actual values for 12 periods (listed in order, 1-12). In Excel, create forecasts for periods 6-13 using each of the following methods: 5 period simple moving average; 4 period weighted moving average (0.63, 0.26, 0.08, 0.03); exponential smoothing (alpha = 0.23 and the forecast for period 5 = 53); linear regression with the equation based on all 12 periods; and quadratic regression with the equation based on all 12 periods.  Round all numerical answers to two...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT