Menu

1 / 2

The year the Nile changed: change-point detection on 100 years of river flow

DEV Community: datascience·Omar Essam El Sherbiny·about 11 hours ago
#lmeodC54
#devtodatascience#science#devto#dev#break
Reading 0:00
15s threshold

The annual flow of the Nile at Aswan from 1871 to 1970 is one of the classic series in statistics: a hundred numbers that every time-series textbook seems to use. It is famous for one feature, a drop in the level around the turn of the century. I wanted to find that break properly, put an uncertainty on it, and then ask a practical question: how much does a forecaster actually gain from knowing about it?

Three methods, one answer

The data is the series published by Durbin and Koopman (2001), available as datasets::Nile in R: 100 annual values in units of 10⁸ m³.

Method Break after Mean before → after

Binary segmentation, one break ( ruptures ) 1900 1,078 → 851

PELT, penalty picks the number of breaks (it found one) 1900 1,078 → 851

Two-mean scan with a 2,000-draw bootstrap 1898 (95% CI 1896–1902) 1,098 → 850

Three methods built on different ideas land within two years of each other, and the bootstrap interval covers all of them.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.