Home

Challenge

Learning Objectives

The Challenge

Fitbit is a wearable device which tracks and stores data of the user. Data has been collected over 5 years, between 2016-2020. Each year has been split into a separate csv file, although the year is unknown:

Year label File link
A Year_A.csv
B Year_B.csv
C Year_C.csv
D Year_D.csv
E Year_E.csv

The primary challenge is to determine which year is 2020, the first year of the COVID-19 pandemic. What other information can you deduce from the data? It may be possible for example to predict an age range, but justify your reasons.

You are encouraged to work in groups and communicate with each other.

Some useful ways to manage data in MATLAB:

months = month(dates); % extracts month from date

month_mean = zeros([1,12]);

for m = 1:12 month_data = variable(months==m); month_mean(m) = mean(month_data); end

switch graph_type case ‘bar’ X = {‘Jan’,’Feb’,’Mar’,’Apr’,’May’,’Jun’,’Jul’,’Aug’,’Sep’,’Oct’,’Nov’,’Dec’}; bar(X,month_mean) xlabel(‘Month’) grid on

case 'line'
    plot(1:12,month_mean,'-',LineWidth=2)
    xlabel('Month')
    grid on

case 'scatter'
    scatter(1:12,month_mean,'o')
    xlabel('Month')
    grid on

end end ```