In this section, we will be using Tableau to learn concepts on data outliers, seasonality effect, and the relationships and impacts. There is no R coding in this lab session.
This worksheet will be used to capture your images from Tableau and to share your observations. Example of capturing and including an image is included at the end of this sheet for your reference. You will need to log onto Tableau and Connect/Import the file EuroStore.xls found in the ‘bsad_lab10’ folder.
Remember to always set your working directory to the source file location. Go to ‘Session’, scroll down to ‘Set Working Directory’, and click ‘To Source File Location’. Read carefully the below and follow the instructions to complete the tasks and answer any questions. Submit your work to RPubs as detailed in previous notes.
For your assignment you may be using different data sets than what is included here. Always read carefully the instructions on Sakai. Tasks/questions to be completed/answered are highlighted in larger bolded fonts and numbered according to their particular placement in the task section.
mydata = read.csv("data/EuroStore.csv")
head(mydata)
## Week Sales TV Radio Fuel.Volume Fuel.Price Temp Holiday
## 1 26 24864 74.5 66.5 61825 104.24 27.9 1
## 2 27 23809 74.5 66.5 62617 103.97 27.7 1
## 3 28 24476 90.0 75.0 60227 107.48 29.1 1
## 4 29 25279 90.0 75.0 63273 111.75 30.0 1
## 5 30 26263 90.0 75.0 65196 109.08 29.3 1
## 6 31 24299 90.0 75.0 64789 105.36 28.1 1
First get familiar with the data and what each columns represent. A description of the data is provided in a seperate sheet called ‘Desc’ in the same Excel file. Refer to Lab05 for early exercise using Tableau.
In a new Tableau sheet
##ANSWER TASK 1: Sales are pretty volatile from week to week but have a general upward trend from week 1-20, and then sales drastically fall through weeks 21-25, and then go back up during week 26, but then are volatile again with a general downward trend.
##ANSWER TASK 2: On average, sales are volatile but have a general upward trend until around week 33 when average sales plummet and then are volatile the rest of the weeks, but not moving in a general upward or downward fashion.
##ANSWER TASK 3: Average sales increase with the temperature; sales are higher when the temperature outside is warmer and go down when the whether gets cooler.
In a seperate Tableau sheet
##ASNWER TASK 4: The trend between TV and Sales is a slightly positive trend. You can see that there are more sales with more TV adds, however, it is not a perfect relationship. I believe the upper limit for TV ad investment should be held around 100; at this point, we can see that TV ads had a positive impact on sales, however, after 100, the pattern does not hold up as well.
##ANSWER TASK 5: The additional radio ads add a bit of value to sales, however, not a significant amount. I would advise to lower the radio ads investment.
In a separate Tableau sheet
##ANSWER TASK 6: There is a general positive relationships between fuel volume and sales.
##ANSWER TASK 7: We can see that there is a positive relationship between fuel volume and sales as well as temperature and sales and temperature and fuel volume. The warmer the temperature outside, the higher the sales and the higher the fuel volume. This makes sense when considering people are driving more and going to more places during warmer months than colder months.
##ASNWER TASK 8: There are more sales during holidays, even when the temperature is lower. This explains the outliers of the sales on colder days - those appear to be holidays.
In a separate sheet
Weather and holidays seem to be a major influencers on average sales. The pattern I have observed is the increase in purchase of gas when the weather is warmer and around the holidays; meaning even when if the weather is cold on a holiday, sales will be higher than average on a similarly cold non-holiday day. Also, in previous graphs, we saw that radio ads had very little affect on increasing sales, and tv ads have a slight positive impact on sales, but not enough to max-out the budget. In conclusion, it appears that sales cannot be affected by the managers of the gas station since the variables which have the most impact on sales - weather and holidays - cannot be manipulated by any person.