Question

In: Statistics and Probability

The following data indicates the daily high, in °F, for a given day and the number...

The following data indicates the daily high, in °F, for a given day and the number of cars sold that day. Use R to construct a scatter plot of the data. Does there appear to be a linear correlation? What kind?

x (65, 75, 71, 83, 79, 77, 86, 90, 86, 93, 95, 94) Temp
y (7, 8, 7, 8, 9, 7, 5, 3, 7, 4, 3, 3) Cars sold

Solutions

Expert Solution

to do the program here is the R code

x <- c(65,75,71,83,79,77,86,90,86,93,95,94) #__temp___#
y <- c(7,8,7,8,9,7,5,3,7,4,3,3)#----cars sold---#
plot(x,y,main = "scatterplot of temp vs cars sold",xlab = "temp",ylab ="cars sold") # scatterplot#

abline(lm(y~x),col="blue") # add regression line#

cor(x,y) #correlation coefficient#

-0.7512651

now from scatterplot we can see there is a linear relationship between x & y. as x increases the values of y decreases. hence the relationship is negative.

also for being sure we calculate the correlation coefficient of x & y which is -0.7512651 so it also indicates that the relationship between the two variables is negative. because correlation coefficient lies between -1 to +1 and negative values indicates negative linear relation and positive value indicates positive relation between the variables.

so x & y has a linear relation and this is a negative relation.


Related Solutions

A coffee shop takes daily data on the high temperature for the day in degrees F,...
A coffee shop takes daily data on the high temperature for the day in degrees F, and the number of cups of hot chocolate sold. They construct a scatterplot and examine the linear relationship.The least squares regression line equation is: y=76.42-1.38x (1)Using the slope value, describe the relationship in context. (2)Can this line equation be used to make a prediction for number of cups of hot chocolate sold when it's 60 degrees F outside? Explain.
Data sets for daily high temperatures (in °F) in the months of August and February of...
Data sets for daily high temperatures (in °F) in the months of August and February of 2015, 2017, and 2019: August 2015: 80; 81; 85; 87; 84; 80; 75; 82; 83; 85; 72; 78; 79; 85; 88; 89; 90; 90; 86; 84; 80; 79; 80; 85; 79; 74; 71; 77; 83; 88; 85 February 2015: 31; 33; 23; 37; 33; 22; 37; 42; 36; 29; 32; 32; 15; 24; 12; 12; 23; 28; 15; 13; 24; 37; 30; 23; 33;...
The daily cost of producing x high performance wheels for racing is given by the following...
The daily cost of producing x high performance wheels for racing is given by the following function, where no more than 100 wheelscan be produced each day. What production level will give the lowest average cost per wheel? What is the minimum average cost? C(x)=0.09x^3 - 4.5x^2 + 171x;(0,100] what production level will give the lowest average cost per wheel? x=_
The following are data on the number of loans approved by a bank per day for...
The following are data on the number of loans approved by a bank per day for 25 working days: 73 19 16 64 28 28 31 90 60 56 31 56 22 18 45 48 17 17 17 91 92 63 50 51 69 a. Calculate the average, median, quartile 1 and quartile 3 b. Calculate range, interquartile range, variance, standard deviation, and coefficient of variation. c. Draw a box plot, give a conclusion
A​ college's data about the incoming freshmen indicates that the mean of their high school GPAs...
A​ college's data about the incoming freshmen indicates that the mean of their high school GPAs was 3.4 with a standard deviation of 0.30. the distribution was roughly​ mound-shaped and only slightly skewed. The students are randomly assigned to freshman writing seminars in groups of 25. What might the mean GPA of one of these seminar groups​ be? Describe the appropriate sampling distribution​ model, including​ shape, center, and​ spread, with attention to assumptions and conditions. Make a sketch using the​...
6. The following data shows the number of new born babies on each day of the...
6. The following data shows the number of new born babies on each day of the week. Day Monday Tuesday Wednesday Thursday Friday Saturday Sunday # of baby 123 116 92 92 104 96 77 Is the proportion of new born babies on the each day of week same or different? Explain your answer.
In one three‐day weekend: The daily high temperature had a median value of 77. The mean...
In one three‐day weekend: The daily high temperature had a median value of 77. The mean daily high temperature was 78. The range of daily high temperatures was 21. What were the three weekend daily high temperatures? Select them below. Question 28 options: 76 92 21 63 71 78 69 89 68 90 79 77
Given the following data: Number of patients = 3,293 Number of patients who had a positive...
Given the following data: Number of patients = 3,293 Number of patients who had a positive test result and had the disease = 2,184 Number of patients who had a negative test, and did NOT have the disease = 997 Number of patients who HAD a positive test result, but did NOT have the disease = 55 Number of patients who had a negative test result, but who HAD the disease = 57 a. Create a complete and fully labelled...
Given the following data: Number of patients = 3,293 Number of patients who had a positive...
Given the following data: Number of patients = 3,293 Number of patients who had a positive test result and had the disease = 2,184 Number of patients who had a negative test, and did not have the disease = 997 Number of patients who had a positive test result, but did not have the disease = 55 Number of patients who had a negative test result, but who had the disease = 57 Create a complete and fully labelled 2x2...
8. Given the following data: Number of patients = 3,293 Number of patients who had a...
8. Given the following data: Number of patients = 3,293 Number of patients who had a positive test result and had the disease = 2,184 Number of patients who had a negative test, and did not have the disease = 997 Number of patients who had a positive test result, but did not have the disease = 55 Number of patients who had a negative test result, but who had the disease = 57 a. Create a complete and fully...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT