TIME SERIES ANALYSIS / TA LAB
Find the cycle. Choose the component.
Build a repeating signal, then look for equally spaced positive peaks in its autocorrelation.
Observed series
The components we added
— Trend— Seasonality— Noise
Autocorrelation
A peak at 24 means 24 observations: 24 hours here. Trend can hide peaks. A damped oscillation can also come from an AR process; it is a clue, not a seasonality test.
Temperature = trend + seasonal cycle + residual. Which part answers the question?
Jerusalem · daily mean temperature, 2020–2022
Temperature and expected baseline
— Observed— Trend + seasonality
Residual
| Spell | Dates | Days | Largest residual |
|---|
These are candidate warm/cold spells relative to this fitted baseline, not an official heatwave definition. A three-year record is a teaching example, not a long-term climate normal.
Fit and data settings
Classical additive decomposition on the full 2020–2022 record, with a centered 365-day moving-mean trend (linearly extended at the ends). The mean annual pattern is then smoothed across 15, 31, or 61 days, wrapping across the cycle boundary. This keeps individual weather fluctuations out of the repeating baseline. Select a saved smoothing setting; zoom changes the view, not the fit. The 365-sample annual period approximates the calendar across the leap year. Daily averaging removes much of the within-day cycle; it does not remove the annual cycle.
Python example and dataSeparate a tree's daily expansion and contraction from its slower changes. Compare the shape and timing in different months.
Source: one reading every 30 minutes. Lab: hourly means. A daily cycle is 24 hourly observations (48 in the original data).
Yatir · hourly stem diameter change, 2018–2019
Inside the selected window
— Observed— Trend
Seasonal cycle
Average seasonal profile · one day
— Current window┄ Kept profile
Hours use the supplied clock; timezone and daylight saving are unconfirmed. Peak timing describes this fitted component, not a direct measurement of growth timing.
How the daily seasonal profile changes
Each row averages the seasonal component within one month. Select a row to explore it above. A fixed seasonal model gives the same row every month.
Fit and data settings
Feuer et al. (2025), Zenodo release v1.0.1. Half-hourly circumference measurements are converted to diameter change (divide by π, then subtract the initial value) and averaged hourly. No gaps are filled. Exact STL fits use period 24, trend span 49 hours, and robust fitting. The seasonal span counts days in each hour's subseries. Fits use both years; zooming does not refit. “Fixed” uses classical additive decomposition.
Source data · Python exampleRing widths have different levels and slow trends. Divide each series by its own fitted trend to compare unusually narrow and wide years.
Before and after detrending · Campito Mountain
— Tree-ring series— Highlighted tree┄ Rolling means · — Chronology● Selected year
Before · ring width
Each row's reference is its mean width.
After · width ÷ trend
Each row's reference is an index of 1.
Same trees and years in both panels. Curves are shifted vertically to separate them; each panel uses one scale for all trees. Left-hand labels show each tree's mean width in this window.
The bold bottom row is the chronology: a robust mean across the displayed trees at each year.
Compare the selected year
1 = matches the fitted trend. 0.5 = half the expected width. 1.5 = one and a half times the expected width.
| Tree/core | Width (mm) | Trend (mm) | Index |
|---|
The chronology uses the displayed trees and their archived calendar dates. A common narrow year is a shared signal, not proof of its cause.
Trend and data settings
NOAA ITRDB CA533: Graybill and LaMarche, Campito Mountain, bristlecone pine. One core from each of 12 tree IDs; original units 0.01 mm, converted to mm. Gaps retain their calendar position and zero-width rings remain zero. The trend is an ordinary centered rolling mean over years, fitted on each full record. Available observations are averaged equally at the edges and around gaps. Each index is width divided by a positive trend. The chronology is Tukey’s biweight robust mean (C = 9) across the displayed trees in each year, with missing indices omitted. Its sample depth is the number of available trees. No prewhitening or variance stabilization is applied. Short windows can remove shared variation as well as age-related growth. Formal dendrochronology also uses negative exponential curves and splines.
Archived measurements · Python example