Python
- Install
python
, pip
, and virtualenv
.
- Create a project folder and a virtual environment.
- Install
jupyter
and matplotlib
.
- Head over to google trends and download a
.csv
file of a number of search terms of your choice.
- Read the data in a notebook and make a plot showing search interest over time.
- Let \(c_i\) be the i-th week search interest of a given search term. Calculate the (k + 1)-week averages, defined by \[ \hat c_i^k = \frac 1 {k + 1} \sum_{l = i - k}^{i} c_l\,,\] and the derivation \[ \delta_i^k = c_i - \hat c_i^k\,.\] Plot the 4- and 8-week averages and their deviations. What trends do you observe?
- Create a Markdown document containing the plots and your observations.
- Using the
csv
package, write your calculated averages and the deviations to a file.
- Go through the list of data sets located on github and pick one in
.csv
or JSON
, read it, make some plots and write down your observations.