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%
Input Data Month 0 1 2 3 4 5 6 7 8 9 10 11 12...
Input Data Month 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 Revenue $             -   $            -   $            -   $        -   $        -   $         -   $    2,500 $    2,875 $    3,306 $    3,802 $    4,373 $    5,028 $    5,783 $    6,650 $    7,648 $      8,795 $   10,114 $   11,631 $   13,376 $   15,382 $   17,689 $   20,343 $   23,394 $   26,903 Monthly Revenue Growth...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT