Products
  • Wolfram|One

    The definitive Wolfram Language and notebook experience

  • Mathematica

    The original technical computing environment

  • Notebook Assistant + LLM Kit

    All-in-one AI assistance for your Wolfram experience

  • Compute Services
  • System Modeler
  • Finance Platform
  • Wolfram|Alpha Notebook Edition
  • Application Server
  • Enterprise Private Cloud
  • Wolfram Engine
  • Wolfram Player
  • Wolfram Cloud App
  • Wolfram Player App

More mobile apps

Core Technologies of Wolfram Products

  • Wolfram Language
  • Computable Data
  • Wolfram Notebooks
  • AI & Linguistic Understanding

Deployment Options

  • Wolfram Cloud
  • wolframscript
  • Wolfram Engine Community Edition
  • Wolfram LLM API
  • WSTPServer
  • Wolfram|Alpha APIs

From the Community

  • Function Repository
  • Community Paclet Repository
  • Example Repository
  • Neural Net Repository
  • Prompt Repository
  • Wolfram Demonstrations
  • Data Repository
  • Group & Organizational Licensing
  • All Products
Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

  • Data & Computational Intelligence
  • Model-Based Design
  • Algorithm Development
  • Wolfram|Alpha for Business
  • Blockchain Technology
  • Education Technology
  • Quantum Computation

Wolfram Consulting

Wolfram Solutions

  • Data Science
  • Artificial Intelligence
  • Biosciences
  • Healthcare Intelligence
  • Sustainable Energy
  • Control Systems
  • Enterprise Wolfram|Alpha
  • Blockchain Labs

More Wolfram Solutions

Wolfram Solutions For Education

  • Research Universities
  • Colleges & Teaching Universities
  • Junior & Community Colleges
  • High Schools
  • Educational Technology
  • Computer-Based Math

More Solutions for Education

  • Contact Us
Learning & Support

Get Started

  • Wolfram Language Introduction
  • Fast Intro for Programmers
  • Fast Intro for Math Students
  • Wolfram Language Documentation

More Learning

  • Highlighted Core Areas
  • Demonstrations
  • YouTube
  • Daily Study Groups
  • Wolfram Schools and Programs
  • Books

Grow Your Skills

  • Wolfram U

    Courses in computing, science, life and more

  • Community

    Learn, solve problems and share ideas.

  • Blog

    News, views and insights from Wolfram

  • Resources for

    Software Developers

Tech Support

  • Contact Us
  • Support FAQs
  • Support FAQs
  • Contact Us
Company
  • About Wolfram
  • Career Center
  • All Sites & Resources
  • Connect & Follow
  • Contact Us

Work with Us

  • Student Ambassador Initiative
  • Wolfram for Startups
  • Student Opportunities
  • Jobs Using Wolfram Language

Educational Programs for Adults

  • Summer School
  • Winter School

Educational Programs for Youth

  • Middle School Camp
  • High School Research Program
  • Computational Adventures

Read

  • Stephen Wolfram's Writings
  • Wolfram Blog
  • Wolfram Tech | Books
  • Wolfram Media
  • Complex Systems

Educational Resources

  • Wolfram MathWorld
  • Wolfram in STEM/STEAM
  • Wolfram Challenges
  • Wolfram Problem Generator

Wolfram Initiatives

  • Wolfram Science
  • Wolfram Foundation
  • History of Mathematics Project

Events

  • Stephen Wolfram Livestreams
  • Online & In-Person Events
  • Contact Us
  • Connect & Follow
Wolfram|Alpha
  • Your Account
  • User Portal
  • Wolfram Cloud
  • Products
    • Wolfram|One
    • Mathematica
    • Notebook Assistant + LLM Kit
    • Compute Services
    • System Modeler
    • Finance Platform
    • Wolfram|Alpha Notebook Edition
    • Application Server
    • Enterprise Private Cloud
    • Wolfram Engine
    • Wolfram Player
    • Wolfram Cloud App
    • Wolfram Player App

    More mobile apps

    • Core Technologies
      • Wolfram Language
      • Computable Data
      • Wolfram Notebooks
      • AI & Linguistic Understanding
    • Deployment Options
      • Wolfram Cloud
      • wolframscript
      • Wolfram Engine Community Edition
      • Wolfram LLM API
      • WSTPServer
      • Wolfram|Alpha APIs
    • From the Community
      • Function Repository
      • Community Paclet Repository
      • Example Repository
      • Neural Net Repository
      • Prompt Repository
      • Wolfram Demonstrations
      • Data Repository
    • Group & Organizational Licensing
    • All Products
  • Consulting & Solutions

    We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

    WolframConsulting.com

    Wolfram Solutions

    • Data Science
    • Artificial Intelligence
    • Biosciences
    • Healthcare Intelligence
    • Sustainable Energy
    • Control Systems
    • Enterprise Wolfram|Alpha
    • Blockchain Labs

    More Wolfram Solutions

    Wolfram Solutions For Education

    • Research Universities
    • Colleges & Teaching Universities
    • Junior & Community Colleges
    • High Schools
    • Educational Technology
    • Computer-Based Math

    More Solutions for Education

    • Contact Us
  • Learning & Support

    Get Started

    • Wolfram Language Introduction
    • Fast Intro for Programmers
    • Fast Intro for Math Students
    • Wolfram Language Documentation

    Grow Your Skills

    • Wolfram U

      Courses in computing, science, life and more

    • Community

      Learn, solve problems and share ideas.

    • Blog

      News, views and insights from Wolfram

    • Resources for

      Software Developers
    • Tech Support
      • Contact Us
      • Support FAQs
    • More Learning
      • Highlighted Core Areas
      • Demonstrations
      • YouTube
      • Daily Study Groups
      • Wolfram Schools and Programs
      • Books
    • Support FAQs
    • Contact Us
  • Company
    • About Wolfram
    • Career Center
    • All Sites & Resources
    • Connect & Follow
    • Contact Us

    Work with Us

    • Student Ambassador Initiative
    • Wolfram for Startups
    • Student Opportunities
    • Jobs Using Wolfram Language

    Educational Programs for Adults

    • Summer School
    • Winter School

    Educational Programs for Youth

    • Middle School Camp
    • High School Research Program
    • Computational Adventures

    Read

    • Stephen Wolfram's Writings
    • Wolfram Blog
    • Wolfram Tech | Books
    • Wolfram Media
    • Complex Systems
    • Educational Resources
      • Wolfram MathWorld
      • Wolfram in STEM/STEAM
      • Wolfram Challenges
      • Wolfram Problem Generator
    • Wolfram Initiatives
      • Wolfram Science
      • Wolfram Foundation
      • History of Mathematics Project
    • Events
      • Stephen Wolfram Livestreams
      • Online & In-Person Events
    • Contact Us
    • Connect & Follow
  • Wolfram|Alpha
  • Wolfram Cloud
  • Your Account
  • User Portal
Wolfram Language & System Documentation Center
TimeSeriesAggregate
  • See Also
    • MovingMap
    • TimeSeriesResample
    • TimeSeriesThread
    • RegularlySampledQ
    • MinimumTimeIncrement
    • TimeSeriesShift
    • TimeSeriesRescale
    • TimeSeriesMap
    • TimeSeriesMapThread
    • TimeSeriesInsert
    • TimeSeriesWindow
    • TimeSeriesModelFit
    • TemporalData
    • TimeSeries
    • EventSeries
  • Related Guides
    • Time Series Processing
    • Signal Processing
    • See Also
      • MovingMap
      • TimeSeriesResample
      • TimeSeriesThread
      • RegularlySampledQ
      • MinimumTimeIncrement
      • TimeSeriesShift
      • TimeSeriesRescale
      • TimeSeriesMap
      • TimeSeriesMapThread
      • TimeSeriesInsert
      • TimeSeriesWindow
      • TimeSeriesModelFit
      • TemporalData
      • TimeSeries
      • EventSeries
    • Related Guides
      • Time Series Processing
      • Signal Processing

TimeSeriesAggregate[tseries,dt]

computes the mean value of tseries over non-overlapping windows of width dt.

TimeSeriesAggregate[tseries,dt,f]

applies the function f to the values of tseries in non-overlapping windows of width dt.

Details
Details and Options Details and Options
Examples  
Basic Examples  
Scope  
Basic Uses  
Data Types  
Window Widths  
Alignment  
Applications  
Market Volatility  
Labor Force  
Properties & Relations  
See Also
Related Guides
History
Cite this Page
BUILT-IN SYMBOL
  • See Also
    • MovingMap
    • TimeSeriesResample
    • TimeSeriesThread
    • RegularlySampledQ
    • MinimumTimeIncrement
    • TimeSeriesShift
    • TimeSeriesRescale
    • TimeSeriesMap
    • TimeSeriesMapThread
    • TimeSeriesInsert
    • TimeSeriesWindow
    • TimeSeriesModelFit
    • TemporalData
    • TimeSeries
    • EventSeries
  • Related Guides
    • Time Series Processing
    • Signal Processing
    • See Also
      • MovingMap
      • TimeSeriesResample
      • TimeSeriesThread
      • RegularlySampledQ
      • MinimumTimeIncrement
      • TimeSeriesShift
      • TimeSeriesRescale
      • TimeSeriesMap
      • TimeSeriesMapThread
      • TimeSeriesInsert
      • TimeSeriesWindow
      • TimeSeriesModelFit
      • TemporalData
      • TimeSeries
      • EventSeries
    • Related Guides
      • Time Series Processing
      • Signal Processing

TimeSeriesAggregate

TimeSeriesAggregate[tseries,dt]

computes the mean value of tseries over non-overlapping windows of width dt.

TimeSeriesAggregate[tseries,dt,f]

applies the function f to the values of tseries in non-overlapping windows of width dt.

Details

  • TimeSeriesAggregate is often used in time series analysis to compute aggregated statistics like yearly averages or monthly totals.
  • TimeSeriesAggregate breaks the time series tseries into disjoint left-closed and right-open windows of equal width dt and applies a function f to the values in each segment.
  • If there are no values in a segment, the segment is ignored.
  • The time series tseries can be a list of values {x1,x2,…}, a list of time-value pairs {{t1,x1},{t2,x2},…}, a TimeSeries, EventSeries, or TemporalData.
  • The window width dt can be given as a positive number, a Quantity, or as a date increment.
  • The window specification {dt,align} can be used to determine the alignment of new times within each window.
  • Settings for window alignment align include Left, Center (default), and Right.
  • TimeSeriesAggregate threads pathwise for multipath TemporalData.

Examples

open all close all

Basic Examples  (3)

Average successive pairs of values:

Compute the quarterly standard deviation for a financial time series:

Aggregate multiple paths simultaneously:

Average over blocks of width 0.15:

Scope  (20)

Basic Uses  (3)

Map a function f over data with blocks of width 2:

Compute the 95^(th) quantile for windows of width 0.05:

Find a quartile envelope for blocks of size 10:

Data Types  (8)

Aggregate a vector in blocks of 4 using a function f:

Find the two-year average for a list of time-value pairs:

Compute the maximum for width-10 segments of a TimeSeries:

Compute a width-10 median for TemporalData:

Compute a width-5 total for an EventSeries:

Compute a six-month variance for multiple paths simultaneously:

Aggregate over vector-valued data:

Componentwise width-5 range:

Visualize the range:

Aggregate over a time series involving quantities:

Window Widths  (5)

Use windows with width 2:

Equivalently:

Specify the window width in calendar time:

Average over windows spanning five days:

Specify a window width using Quantity:

Average over windows spanning two quarters:

Specify a mixed radix width:

Average over windows spanning three weeks and two days:

Larger windows smooth more:

Moving averages with increasing window width:

Alignment  (4)

Align new times with the center of the windows:

Center alignment is used by default:

Align new times with the right side of the windows:

Align new times with the left side of the windows:

Compare window alignments:

The values are all equivalent:

The times are not:

A visual comparison:

Applications  (2)

Market Volatility  (1)

Identify periods of high volatility in the S&P 500:

Five-year standard deviation:

Annual interquartile range:

Two-year range:

Labor Force  (1)

Visualize the growth of labor force in California based on monthly data:

Aggregate the data yearly:

Properties & Relations  (1)

Independently of the alignment the windows are closed on the left and open on the right:

It is possible that more time stamps are needed:

See Also

MovingMap  TimeSeriesResample  TimeSeriesThread  RegularlySampledQ  MinimumTimeIncrement  TimeSeriesShift  TimeSeriesRescale  TimeSeriesMap  TimeSeriesMapThread  TimeSeriesInsert  TimeSeriesWindow  TimeSeriesModelFit  TemporalData  TimeSeries  EventSeries

Function Repository: TimeSeriesPartition  TimeSeriesEnsemble

Related Guides

    ▪
  • Time Series Processing
  • ▪
  • Signal Processing

History

Introduced in 2014 (10.0) | Updated in 2017 (11.1)

Wolfram Research (2014), TimeSeriesAggregate, Wolfram Language function, https://reference.wolfram.com/language/ref/TimeSeriesAggregate.html (updated 2017).

Text

Wolfram Research (2014), TimeSeriesAggregate, Wolfram Language function, https://reference.wolfram.com/language/ref/TimeSeriesAggregate.html (updated 2017).

CMS

Wolfram Language. 2014. "TimeSeriesAggregate." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2017. https://reference.wolfram.com/language/ref/TimeSeriesAggregate.html.

APA

Wolfram Language. (2014). TimeSeriesAggregate. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TimeSeriesAggregate.html

BibTeX

@misc{reference.wolfram_2025_timeseriesaggregate, author="Wolfram Research", title="{TimeSeriesAggregate}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/TimeSeriesAggregate.html}", note=[Accessed: 01-March-2026]}

BibLaTeX

@online{reference.wolfram_2025_timeseriesaggregate, organization={Wolfram Research}, title={TimeSeriesAggregate}, year={2017}, url={https://reference.wolfram.com/language/ref/TimeSeriesAggregate.html}, note=[Accessed: 01-March-2026]}

Top
Introduction for Programmers
Introductory Book
Wolfram Function Repository | Wolfram Data Repository | Wolfram Data Drop | Wolfram Language Products
Top
  • Products
  • Wolfram|One
  • Mathematica
  • Notebook Assistant + LLM Kit
  • Compute Services
  • System Modeler

  • Wolfram|Alpha Notebook Edition
  • Wolfram|Alpha Pro
  • Mobile Apps

  • Wolfram Engine
  • Wolfram Player

  • Volume & Site Licensing
  • Server Deployment Options
  • Consulting
  • Wolfram Consulting
  • Repositories
  • Data Repository
  • Function Repository
  • Community Paclet Repository
  • Neural Net Repository
  • Prompt Repository

  • Wolfram Language Example Repository
  • Notebook Archive
  • Wolfram GitHub
  • Learning
  • Wolfram U
  • Wolfram Language Documentation
  • Webinars & Training
  • Educational Programs

  • Wolfram Language Introduction
  • Fast Introduction for Programmers
  • Fast Introduction for Math Students
  • Books

  • Wolfram Community
  • Wolfram Blog
  • Public Resources
  • Wolfram|Alpha
  • Wolfram Problem Generator
  • Wolfram Challenges

  • Computer-Based Math
  • Computational Thinking
  • Computational Adventures

  • Demonstrations Project
  • Wolfram Data Drop
  • MathWorld
  • Wolfram Science
  • Wolfram Media Publishing
  • Customer Resources
  • Store
  • Product Downloads
  • User Portal
  • Your Account
  • Organization Access

  • Support FAQ
  • Contact Support
  • Company
  • About Wolfram
  • Careers
  • Contact
  • Events
Wolfram Community Wolfram Blog
Legal & Privacy Policy
WolframAlpha.com | WolframCloud.com
© 2026 Wolfram
© 2026 Wolfram | Legal & Privacy Policy |
English