{"id":272,"date":"2021-03-02T12:30:00","date_gmt":"2021-03-02T12:30:00","guid":{"rendered":"http:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/maddie-smith\/?p=272"},"modified":"2024-01-19T09:57:07","modified_gmt":"2024-01-19T09:57:07","slug":"ch-ch-ch-ch-changepoints","status":"publish","type":"post","link":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/maddie-smith\/2021\/03\/02\/ch-ch-ch-ch-changepoints\/","title":{"rendered":"Ch Ch Ch Ch Changepoints"},"content":{"rendered":"\n

No, I didn’t just forget the words to David Bowie’s Changes<\/em>, in today’s post we’re going to be talking about changepoints! In this brief introduction to changepoint analysis we’ll be covering what is actually is, how is it useful and when can we apply it. At the end of this post, I’ll also be sharing some code resources, which you can use to carry out your own changepoint analysis!<\/p>\n\n\n\n

Changepoint analysis is a really well-established area of Statistics. It dates back as early as the 1950s, and since then has been the focus for LOTS of interesting and important research.<\/p>\n\n\n\n

Changepoint detection looks at time series<\/em> data. A time series is a series of data points which are indexed in time order. Usually, a time series is a sequence of discrete measurements, taken at equally spaced points in time. This could be the number of viewers for a particular TV show taken at one minute intervals over the course of an hour, or maybe the heights of ocean tides taken every hour throughout the day. <\/p>\n\n\n\n

As the name suggests, the aim of changepoint detection is to identify the points in time at which the probability distribution of a time series changes<\/em>. We can think of this as follows:<\/p>\n\n\n\n

Let’s say we have some time series data given by y1,<\/sub> y2<\/sub>, …, yn<\/sub>, where yi<\/sub> is the measurement taken at time i. Then, if a changepoint exists at time \u03c4, this means that the measurements y1,<\/sub> y2<\/sub>, …, y\u03c4<\/sub> differ from the measurements y\u03c4+1,<\/sub> …, y\u03c4<\/sub> in some way. <\/p>\n\n\n\n

If we are performing a changepoint analysis, there are some key questions that we’d like to consider:<\/strong><\/p>\n\n\n\n