A study was conducted to analyze whether there is a linear relation between the number of customers who visited a store and the total sales at that store.
The following data was collected over a period of 14 days
(a) What is the dependent and independent variable?
(b) Prepare a scatter plot. What is the direction of correlation?
(c) What is the equation of the regression line?
d) What is the coefficient of determination (r) and interpret the meaning of it.
(e) Calculate the correlation coefficient (r) and interpret the meaning of it.
(f) Predict total sales if 120 customers visited the store.
(g) Would it be possible to use this regression model to predict the Total Sale for 500 customers? Why?
#simple linear regression
x-number of customers
y-total sales
a)
x-independent variable
y- dependent variable
> x=scan("clipboard");x
Read 14 items
[1] 125 88 111 121 102 98 106 133 128 105 118 127 144 136
> y=scan("clipboard");y
Read 14 items
[1] 35.1 28.5 30.3 36.2 33.4 30.2 31.2 44.5 39.4 32.5 33.2 40.5 58.2 41.3
> reg=lm(y~x);reg
Call:
lm(formula = y ~ x)
Coefficients:
(Intercept) x
-11.9734 0.4154
> summary(reg)
Call:
lm(formula = y ~ x)
Residuals:
Min 1Q Median 3Q Max
-4.8547 -2.9415 -0.5736 1.4018 10.3522
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) -11.97342 8.47484 -1.413 0.183
x 0.41542 0.07163 5.799 8.48e-05 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 4.161 on 12 degrees of freedom
Multiple R-squared: 0.737, Adjusted R-squared: 0.7151
F-statistic: 33.63 on 1 and 12 DF, p-value: 8.482e-05
c) hence regression of line is
y= -11.9734 + 0.4154*x
d) coefficient of determination (r^2) is
r^2=0.737
interpitation 73.7 % of variation in y is explain by x
and 26.3 % is un explain
d) correlation coefficient r
>r= cor(x,y);r
[1] 0.8585037
r>0 implies that the relation between x&y is positive correlation
A study was conducted to analyze whether there is a linear relation between the number of customers
BBA 403 TEST 3: Name: Score:_ SOLVE AND THOROUGHLY INTERPRET YOUR ANSWER 1. A marketing manager conducted a study to determine whether there is a linear relationship between many spent on advertising and company sales. The data are shown on the table below. Display the data in a scatter plot, calculate the correlation coefficient, state a conclusion, and interpret the result Adverstising Company Expense, (1000s of s) (1000s of ) 2.4 16 2.0 26 14 1.6 2.0 2.2 184 220...
In a simple linear regression study between two variables x ( the independent variable) and y (the dependent variable), a random large sample is collected and the coefficient of correlation r = −.98 is calculated. A)Which of the following conclusion may be made? Group of answer choices x and y are almost perfectly correlated, and y increases as x is increased. x and y are almost perfectly correlated, and y decreases as x is increased. x and y are moderately...
13.76 You want to develop a model to predict the selling price of homes based on assessed value. A sample of 30 recently sold single-family houses in a small city is selected to study the relationship between selling price (in thousands of dollars) and assessed value (in thousands of dollars). The houses in the city were reassessed at full value one year prior to the study. The results are in House 1. (Hint: First, determine which are the independent and...
A sales manager for an advertising agency believes there is a relationship between the number of contacts and the amount of the sales. To verify this, the following data was collected: Sales ($) Contacts 25,000 15 16,000 15 28,000 20 60,000 18 80,000 46 35,000 24 85,000 45 80,000 45 95,000 55 110,000 52 Which is the: Independent variable? ___________________ Dependent variable? ___________________ Calculate the coefficient of correlation and interpret the results. Determine both the coefficient of determination and non-determination...
A National Bank issues MasterCard credit cards to its customers. A main factor in determining whether a credit card will be profitable to the bank is the average monthly balance that the customer will maintain on the card that will be subject to finance charges. Bank analysts wish to determine whether there is a relationship between the average monthly credit card balance and the income stated on the original credit card application form. The following sample data have been collected...
I have to submit a term paper which involves conducting a regression and correlation analysis on any topic of my choosing. The paper must be based on yearly data for any economic or business variable, for a period of at least 20 years. The following also must be included in the paper: • The term paper should distinguish between dependent and independent variables; determine the regression equation by the least squares method; plot the regression line on a scatter diagram;...
Question 6 (10 marks) Finally, the researcher considers using regression analysis to establish a linear relationship between the two variables – hours worked per week and yearly income. a) What is the dependent variable and independent variable for this analysis? Why? (2 marks) b) Use an appropriate plot to investigate the relationship between the two variables. Display the plot. On the same plot, fit a linear trend line including the equation and the coefficient of determination R2 . (2 marks)...
For seven random summer days, a person recorded the temperature and their water consumption, during a three-hour period spent outside. Water Consumption (in oz.) 16 20 25 27 32 48 48 Temperature (°F) 75 83 85 85 92 97 99 Draw a scatter plot of the given data and interpret. Compute and interpret the values of the correlation coefficient (r) and coefficient of determination (r2). Test the significance of the obtained correlation coefficient. Compute and interpret a simple linear regression...
please show work
1. Regression and Correlation An experiment was conducted to study the effect of increasing the dosage of a on sleeping time. Three readings were made at each of three dose levels certain barbiturate Sleeping Time (Hours) Dosage (11 μM/kg) 4 10 10 9 15 15 15 13 9 ΣΥ-642, ΣXY = 780 2X 84, ΣΧ2 1002, ΣΧΥ 780 ΣΥ-72, a. Plot the scatter Diagram b. Determine the Correlation Coefficient "r" and the coefficient of determination "R2n c....
The following data represents the number of days absent and the final grade for a sample of college students in a general education course at a large state university. 0 1 2 3 4 5 6 7 8 9 No. of absences Final Grade 89.2 86.4 83.5 81.1 78.2 73.9 64.3 71.8 65.5 66.2 a) Which variable is the explanatory variable? b) Draw a scatter plot and describe your scatter plot (Direction, Strength, Form). c) Compute the correlation coefficient d)...