# Finding changepoints in time series

**URL:** <https://fortran-lang.discourse.group/t/finding-changepoints-in-time-series/10859>\
**Category:** Uncategorized\
**Created:** [April 15, 2026, 9:17pm UTC](https://fortran-lang.discourse.group/t/finding-changepoints-in-time-series/10859 "2026-04-15T21:17:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beliavsky](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@Beliavsky](https://fortran-lang.discourse.group/u/Beliavsky)\
**Post date:** [April 15, 2026, 9:17pm UTC](https://fortran-lang.discourse.group/t/finding-changepoints-in-time-series/10859/1 "2026-04-15T21:17:14Z")

</div>

In finance and other fields, one looks for changes in the properties of time series. The daily standard deviation of stock market returns (the “volatility”) can be much higher or lower than usual, and the correlation of stock market and government bond returns can change sign. (If the market is worried about deflation, stock and bond returns will be negatively correlated, but they will be positively correlated if inflation is the primary concern.) A project to find changepoints in time series is

> **[GitHub - Beliavsky/Multivariate-ChangePoints: Find changepoints in the correlation and...](https://github.com/Beliavsky/Multivariate-ChangePoints)**
>
> Find changepoints in the correlation and covariance matrices of a multivariate time series and in the mean and variance of a univariate time series

Some output from the program that finds changepoints in volatility is below. The stock market during the 2008 financial crisis is apparent, with stocks falling sharply over the period 2008-09-15 to 2008-12-01 with annualized volatility of 78% (about 15% is the median).

```auto
BIC-selected model (46 changepoint(s)) -- SPY
       start end n ann_ret% ann_vol% min% max% first% last%
  2007-12-20 2008-09-12 184 -15.80 20.39 -3.19 4.15 0.63 0.46
  2008-09-15 2008-12-01 55 -163.89 77.60 -9.84 14.52 -4.76 -8.86
  2008-12-02 2009-04-20 95 15.66 38.53 -5.28 7.18 3.85 -4.19

```

In one case I found it to be orders of magnitude faster than

> **[GitHub - deepcharles/ruptures: ruptures: change point detection in Python](https://github.com/deepcharles/ruptures)**
>
> ruptures: change point detection in Python

which has 2K stars.

---

<div class="post-metadata">

**Author:** ![ivanpribec](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/ivanpribec/32/3290_2.png) [@ivanpribec](https://fortran-lang.discourse.group/u/ivanpribec)\
**Post date:** [April 16, 2026, 10:26pm UTC](https://fortran-lang.discourse.group/t/finding-changepoints-in-time-series/10859/2 "2026-04-16T22:26:55Z")

</div>

Nice work!

Tangentially related, I read this blog post today:

> **[The Beginning of Scarcity in AI](https://tomtunguz.com/ai-compute-crisis-2026/)**
>
> GPU rental prices surged 48% in 60 days. The AI compute shortage will force startups to compete not on speed of iteration, but on access to infrastructure.

It would be interesting to learn if there is any changepoint in the last weeks. The front-page of HackerNews is flooded with agentic AI programming products:

 ![image](https://global.discourse-cdn.com/free1/uploads/fortran_lang/original/2X/7/78c18ee86c8bd416321378bc96d9dabd5835102c.png)
