Question

In: Economics

The data file "supermarket.csv" contains data on the total amount of eggs sold, relevant prices and...

The data file "supermarket.csv" contains data on the total amount of eggs sold, relevant prices and advertising information at a supermarket.

1) Treating the data as linear, run a multivariate regression of total egg sales on the three other variables.

2) Perform a log-log transformation of the data (Achieved by taking the natural logarithm of all variables except ad type). Run a multivariate regression of log total egg sales on log egg prices and log cookie prices (discard the dummy variable for ad type).

3) Compare the Lerner index values from parts 1 and 2. In your opinion, which method is more accurate? Why?

4) Interpret the Lerner index you chose in part 3. What percentage of the supermarkets price is their prot margin.

My data is below. There is 4 column in the data which are Sales, Price.eggs, Ad.Type, and Price.Cookies.

Sales Price.Eggs Ad.Type Price.Cookies
18 4.77 0 4.74
20 4.67 0 4.81
23 4.75 0 4.36
23 4.74 0 4.29
23 4.63 0 4.17
23 4.56 0 4.66
24 4.59 0 4.73
25 4.75 0 4.11
26 4.75 1 4.21
26 4.49 0 4.25
26 4.41 1 4.62
26 4.32 0 4.53
27 4.68 0 4.44
28 4.66 1 4.19
28 4.42 1 4.37
29 4.71 0 4.29
29 4.66 1 4.57
30 4.46 1 4.21
30 4.36 1 4.77
31 4.47 0 4
31 4.43 0 4.31
33 4.4 1 4.34
34 4.61 1 4.05
35 4.09 1 4.73
38 3.73 0 4.07
39 3.89 1 4.75
41 4.35 1 4
44 3.84 1 4.15
44 3.81 1 4.34
46 3.79 1 4.15

Solutions

Expert Solution

1)
SUMMARY OUTPUT
Regression Statistics
Multiple R 0.941103
R Square 0.885675
Adjusted R Square 0.872483
Standard Error 2.610661
Observations 30
ANOVA
df SS MS F Significance F
Regression 3 1372.796 457.5986 67.14038 2.25E-12
Residual 26 177.2043 6.815549
Total 29 1550
Coefficients Standard Error t Stat P-value Lower 95% Upper 95% Lower 95.0% Upper 95.0%
Intercept 137.3699 10.83371 12.67985 1.22E-12 115.1009 159.6389 115.1009 159.6389
Peggs -16.1184 1.645593 -9.79491 3.26E-10 -19.501 -12.7359 -19.501 -12.7359
Adtype 4.147389 1.039658 3.989187 0.000481 2.010342 6.284436 2.010342 6.284436
Pcookies -8.71078 1.901333 -4.58141 0.000101 -12.619 -4.80254 -12.619 -4.80254
2)
SUMMARY OUTPUT
Regression Statistics
Multiple R 0.933279
R Square 0.87101
Adjusted R Square 0.856127
Standard Error 0.089706
Observations 30
ANOVA
df SS MS F Significance F
Regression 3 1.412809 0.470936 58.52204 1.07E-11
Residual 26 0.209226 0.008047
Total 29 1.622035
Coefficients Standard Error t Stat P-value Lower 95% Upper 95% Lower 95.0% Upper 95.0%
Intercept 8.322894 0.537063 15.49704 1.2E-14 7.218945 9.426844 7.218945 9.426844
ln_Peggs -2.07033 0.239576 -8.64166 4.04E-09 -2.56279 -1.57788 -2.56279 -1.57788
Ad_type 0.152622 0.035588 4.288587 0.00022 0.07947 0.225774 0.07947 0.225774
ln_Pcookies -1.32383 0.287994 -4.59674 9.75E-05 -1.91581 -0.73185 -1.91581 -0.73185

Related Solutions

PotashCorp The data set in the file ch18_MCSP_PotashCorp contains average quarterly share prices for PotashCorp and...
PotashCorp The data set in the file ch18_MCSP_PotashCorp contains average quarterly share prices for PotashCorp and prices for potash mineral. Investigate the relationship between these variables. (a) Some people think that if the share price of a mining company is high, that is because investors expect high mineral prices for thecorresponding quarter. Can the potash price be estimated from the PotashCorp share price? The data includes a period when the price of potash mineral was exceptionally high. If you eliminate...
The file Hotel Prices contains the prices in British pounds (about US$ 1.52 as of July...
The file Hotel Prices contains the prices in British pounds (about US$ 1.52 as of July 2013) of a room at two-star, three-star, and four-star hotels in cities around the world in 2013. City Two-Star Three-Star Four-Star Amsterdam 74 88 116 Bangkok 23 35 72 Barcelona 65 90 106 Beijing 35 50 79 Berlin 63 58 76 Boston 102 132 179 Brussels 66 85 98 Cancun 42 85 205 Chicago 66 115 142 Dubai 84 67 111 Dublin 48 66...
The file Hotel Prices contains the prices in British pounds (about US$ 1.52 as of July...
The file Hotel Prices contains the prices in British pounds (about US$ 1.52 as of July 2013) of a room at two-star, three-star, and four-star hotels in cities around the world in 2013. City Two-Star Three-Star Four-Star Amsterdam 74 88 116 Bangkok 23 35 72 Barcelona 65 90 106 Beijing 35 50 79 Berlin 63 58 76 Boston 102 132 179 Brussels 66 85 98 Cancun 42 85 205 Chicago 66 115 142 Dubai 84 67 111 Dublin 48 66...
If the file circuit.txt contains the following data
Exercise 2: If the file circuit.txt contains the following data 3.0             2.1 1.5             1.1 2.6             4.1 The first column is voltage and the second column is the electric current. Write program that reads the voltages and currents then calculates the electric power (P) based on the equation: Voltage     Current        Power 3.0             2.1              (result) 1.5             1.1              (result) 2.6             4.1              (result)                         P = v * i Write your output to the file results.txt with voltage in the first, current in the second...
Assume there is a file called "mydata". each line of the file contains two data items
how do you read in a file in JAVA Assume there is a file called "mydata". each line of the file contains two data items: hours and rate. hours is the represented by the number of hours the worker worked and rate is represented as hourly rate of pay. The first item of data is count indicating how many lines of data are to follow.Methodspay- accepts the number of hours worked and the rate of pay. returns the dollor and cents...
The file FastFood contains the amount that a sample of fif- teen customers spent for lunch...
The file FastFood contains the amount that a sample of fif- teen customers spent for lunch ($) at a fast-food restaurant: 7.42 6.29 5.83 6.50 8.34 9.51 7.10 6.80 5.90 4.89 6.50 5.52 7.90 8.30 9.60 At the 0.05 level of significance, is there evidence that the mean amount spent for lunch is different from $6.50? Determine the p-value in (a) and interpret its meaning. What assumption must you make about the population distribu- tion in order to conduct the...
The data file contains displacement (in mm)-load (in N) data for a mechanical test that was...
The data file contains displacement (in mm)-load (in N) data for a mechanical test that was conducted on an unknown metal. The initial length and diameter of the specimen are also given. a. (5 pts.) Using the data and a computer program (such as Excel), create an engineering stress-engineering strain graph with proper labels. The stress axis should be in the units of MPa. You do not need to show your spreadsheet or software code used to make the graph....
In the Excel data file, the tab labeled Question 1 contains data on the number of...
In the Excel data file, the tab labeled Question 1 contains data on the number of times boys and girls raise their hands in class. Conduct the t-test: Two-Sample Assuming Equal Variances. Males 9,8,4,9,3,8,10,8,9,10,7,6,12 Females 3,5,1,2,6,4,3,6,7,9,7,3,7,6,8,8 a. What is the null hypothesis? b. What is the research hypothesis? c. Why run a Two-Sample Assuming Equal Variances t-test? d. Interpret the findings. What are the results of the hypothesis test? Can you reject the null hypothesis?
The accompanying data file contains 20 observations for t and yt.
The accompanying data file contains 20 observations for t and yt. t 1 2 3 4 5 6 7 8 9 10 yt 12.1 12.2 9.3 12.8 8.6 9.3 14.3 12.1 11.5 15.1 t 11 12 13 14 15 16 17 18 19 20 yt 13.5 9.8 9.6 14.5 14.9 12.4 11.2 8.8 11.8 10 a. Discuss the presence of random variations. The smoother appearance of the graph suggests the presence of random variations. The smoother appearance of the graph...
Consider a text file that you will create named “employees.txt”. The file contains data organized according...
Consider a text file that you will create named “employees.txt”. The file contains data organized according to the following format:John Smith 10 15Sarah Johnson 40 12Mary Taylor 27 13Jim Stewart 25 8For instance, “John” is the first name, “Smith” is the last name, “10” is the number of hours per week, and “15” is the hourly rate.Write a program that computes the weekly salary of each employee. The program prints the first name, last name, and weekly salary of each...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT