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) Draw the result of hashing 11, 22, 3, and 43 into a table using...
(10 pts) Draw the result of hashing 11, 22, 3, and 43 into a table using the following hash function, using separate chaining: h(x) = x % 4                0 1 2 3 (10 pts) Draw the result of hashing 11, 22, 3, and 43 into a table using the following hash function, using open addressing with linear probing: h(x) = x % 4 0 1 2 3
1. Draw a pdf (or histogram) and its cdf of the sum of 5 iid uniform...
1. Draw a pdf (or histogram) and its cdf of the sum of 5 iid uniform random variables and compare with Gaussian pdf that can be obtained from CLT. 2. Do the same thing with 50 iid uniform random variables.
(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
Use the following data set for problem 10 and 11     65 71 91 87 55...
Use the following data set for problem 10 and 11     65 71 91 87 55 71 74 81 47 81 10) Find the five-number summary and draw its box plot. 11) Compute the standard deviation (show your work to get credit) and compare it to the “Range Rule of Thumb” standard deviation. What the relative difference?
Use the following data for questions 8-11. Assume an initial margin requirement of 55% and maintenance...
Use the following data for questions 8-11. Assume an initial margin requirement of 55% and maintenance margin of 40%. An investor has $5,500 in cash and wishes to purchase ABC stock. ABC is currently trading at $100 per share and your broker charges 7.5% interest on margin loans for the period. 1- What is the return on equity of the margin position after one year when price rises to $120? 2-What is the return on equity of the margin position...
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...
Data Set: 5, 9, 11, 14, 15, 17, 19, 23 -Construct a frequency table using 5...
Data Set: 5, 9, 11, 14, 15, 17, 19, 23 -Construct a frequency table using 5 as a starting point and a class of width 7 -Construct a relative frequency histogram. Include the midpoints and boundary points - Find the mean, Variance, and standard deviation without a graphing calculator of the sample data Data Set: 5, 9, 11, 14, 15, 17, 19, 23 Data Set: 5, 9, 11, 14, 15, 17, 19, Data Set: 5, 9, 11, 14, 15, 17,...
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...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT