← Latest papers
📊 statistics

exdqlm: An R Package for Estimation and Analysis of Flexible Dynamic Quantile Linear Models

This paper introduces the R package `exdqlm`, which facilitates Bayesian estimation and analysis of flexible dynamic state-space quantile models using the extended asymmetric Laplace distribution, offering both MCMC and efficient variational inference methods alongside tools for static regression, forecasting, and model diagnostics.

Original authors: Antonio De Leon, Raquel Barata, Raquel Prado, Bruno Sansó

Published 2026-07-28
📖 5 min read🧠 Deep dive

Original authors: Antonio De Leon, Raquel Barata, Raquel Prado, Bruno Sansó

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Weather Forecast for the Whole Sky, Not Just the Average

Imagine you are trying to predict the weather. Most traditional forecasting tools are obsessed with the "average" day. They tell you the average temperature, the average rainfall, and the average wind speed. But averages can be tricky. If the average temperature is a comfortable 70°F, it might hide the fact that some days are freezing and others are scorching. In the world of statistics, this is called "mean-based modeling," and it often misses the extremes—the heatwaves, the floods, and the droughts—that matter most when you're planning a picnic or building a dam.

To fix this, statisticians use a technique called quantile regression. Instead of asking, "What is the average?" they ask, "What will the temperature be on the hottest 5% of days?" or "What is the water level on the driest 1% of days?" This is like looking at the entire weather map instead of just the thermometer in the middle of the room. However, when data changes over time—like stock prices, river levels, or sunspot cycles—doing this gets incredibly complicated. The old tools for these "dynamic" situations were either too rigid (assuming the world is perfectly predictable) or too slow to run on a computer.

The New Toolkit: exdqlm

Enter exdqlm, a new software package for the R programming language, created by a team of researchers at the University of California Santa Cruz. Think of exdqlm as a high-tech, Swiss Army knife for statisticians who need to predict the "edges" of data over time. It doesn't just guess the average; it builds a flexible, moving model that can track the 95th percentile (the extreme highs), the 5th percentile (the extreme lows), and everything in between, as they evolve day by day.

The core magic of this package lies in a new mathematical shape it uses to describe uncertainty, called the extended asymmetric Laplace (exAL) distribution. To understand why this matters, imagine trying to draw a curve that fits a pile of sand. The old tools used a very specific, rigid shape (the standard Asymmetric Laplace) that worked well for simple piles but struggled when the sand was lopsided or had weird bumps. The exAL distribution is like a shape-shifting mold; it can stretch, squeeze, and twist to fit the weird, lopsided reality of real-world data much better than the old rigid molds, while still being fast enough for computers to handle.

The paper introduces this software and demonstrates how it works through several real-world stories. First, the team looked at the Lake Huron water levels. By fitting separate models for the high, medium, and low water levels, they could see how the lake's behavior changed over decades. They then combined these separate predictions into a single, coherent picture of the lake's future, showing how the software can stitch together different "slices" of the data to tell a complete story.

Next, they tested the software on sunspots, the dark spots that dance across the surface of the sun in an 11-year cycle. Here, they compared two versions of their tool: one that used the old, rigid shape (DQLM) and one that used the new, flexible shape (exDQLM). The results suggested that the flexible version was better at capturing the weird, skewed behavior of the sun's upper limits. They also showed how the software could automatically tune itself to find the best settings for these predictions, acting like a self-driving car that adjusts its sensitivity to the road.

In a third example, the researchers looked at river water flow in California. They wanted to see if they could predict low water levels by looking at climate signals like ocean temperatures. They tested three different ways of connecting these signals: ignoring them, adding them directly, and using a "transfer function" that accounts for how the effect of the ocean might ripple through time. The software helped them visualize exactly how these different methods changed the prediction, showing that the "transfer function" approach could capture the delayed effects of climate patterns better than a simple direct link.

Finally, the team ran a simulation where they knew the "true" answer beforehand. They created fake data with a hidden pattern and asked the software to find it. They found that the software's fast, approximate method (called LDVB) was incredibly quick—up to 20 times faster than the traditional, slow method (MCMC)—and still found the right answer most of the time. This suggests that for many problems, you don't need to wait hours for a result; you can get a very good answer in minutes.

The paper doesn't claim to have solved every problem in statistics. It explicitly notes that the software currently handles one "quantile" (one specific slice of the data) at a time, rather than modeling all slices simultaneously in a single giant model. It also admits that while the fast method is great for speed, the slower, traditional method is still the gold standard if you need to be absolutely certain about the very rare, extreme tails of the data.

However, the main takeaway is clear: exdqlm fills a crucial gap. It bridges the divide between tools that are good at handling time-based data but only look at averages, and tools that look at extremes but are too slow or rigid to handle time. By offering a flexible, fast, and user-friendly way to model the "edges" of changing data, it gives scientists and analysts a powerful new way to prepare for the unexpected, whether it's a flood, a market crash, or a solar storm.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →