DAT101x Lab - Exploring Data PDF
DAT101x Lab - Exploring Data PDF
Overview
Rosie Reeves is an entrepreneurial middle-school student who sells homemade cold drinks from a stand
during the summer months. This summer, Rosie sold two flavors of drink (lemon and orange) at two
different locations (the beach and the park); and to promote her drinks stall, she distributed leaflets in the
local area. Rosie recorded details of her sales and leaflet distribution in a text file, along with a note of the
temperature each day.
In this lab, you will explore and visualize the data Rosie recorded.
Note: The figures used in the lab files for this lab are not the same as the figures used in the course
demonstrations!
Create Charts
1. Create a line chart that shows Date and Revenue. Then add a linear trendline to determine
whether the revenue trend is rising, falling, or staying level.
2. Create a scatter-plot chart that shows Leaflets on the X axis and Sales on the Y axis, and
determine whether any signs of linear correlation can be detected.
3. Create a histogram that shows Revenue distributed into 10 bins, and note whether the
distribution of this data is normal, left skewed, or right skewed.
Calculate Correlation
1. Determine the strength and direction of any correlations between the Temperature, Leaflets,
and Price columns and the Sales column.
Perform Regression
1. Perform regression using Sales as the Y input and Temperature, Leaflets, and Price as the X
input.
2. Review the results of the regression, noting the relative significance of the input variables and
the intercept and weights applied to them to calculate the predicted value for Y.
3. Use the intercept and weights to calculate a predicted Y value for the following features:
Temperature: 80
Leaflets: 110
Price: 0.35
4. Calculate predicted sales for the above scenario if the number of leaflets distributed is increased
to 120.