Question

You are given a dataset that contains occurrences of the Kettle in a single-occupancy house for the duration of a month. In this dataset, 'ts'column indicates the unix-timestamp (this can

be converted to date and time) that the kettle was turned ON; and the 'second' column indicates the duration in seconds that the kettle was ON. Task 1: Find routines in the data, evaluate their periodicities and variabilities. For instance, a routine could be "breakfast", its periodicity might be every day at a certain time and variability might be a time window within the routine occurred. Task 2: Detect anomalies whenever there is a deviation from the routines. Please provide a script which attempts task 1 and 2. Please do not provide a script without explanations.

Question image 1Question image 2Question image 3Question image 4Question image 5Question image 6Question image 7Question image 8Question image 9