Matalas (1967) Multi-Site MAR(1)¶
| Type | Parametric |
| Resolution | Monthly |
| Sites | Multisite |
| Class | MATALASGenerator |
Overview¶
The Matalas MAR(1) model is the classical parametric baseline for multi-site stochastic streamflow generation. It extends the univariate Thomas-Fiering model to n sites by fitting a matrix autoregressive model to standardized monthly flows. A separate pair of coefficient matrices is estimated for each of the 12 calendar-month transitions.
Algorithm¶
Preprocessing¶
- Validate input; resample to monthly if daily data are provided.
- Clip values to 1e-6 to avoid log of zero.
- Optionally apply
log(Q + 1)transformation to reduce skewness.
Fitting¶
- Standardize observed flows by monthly means and standard deviations:
- Estimate cross-correlation matrices for each transition m to m+1:
- Solve for coefficient matrices: If M(m) is not positive semi-definite, project to nearest PSD matrix via eigenvalue clipping before Cholesky decomposition.
The December to January transition wraps across the year boundary.
Generation¶
- Initialize:
Z_0 ~ N(0, I) - Recurse for each subsequent month:
- Back-transform to flow space:
- If log transform was applied:
Q = exp(Q) - 1
Parameters¶
| Parameter | Type | Default | Description |
|---|---|---|---|
Q_obs |
pd.DataFrame or pd.Series |
- | Observed streamflow with DatetimeIndex |
log_transform |
bool |
True |
Apply log(Q+1) before standardization |
name |
Optional[str] |
None |
Optional name identifier for this generator instance |
debug |
bool |
False |
Enable debug logging |
Properties Preserved¶
- Monthly means and standard deviations at each site
- Lag-1 serial correlation at each site
- Contemporaneous cross-site correlations
Not preserved: - Higher-order autocorrelation (lag > 1) - Non-Gaussian marginal distributions
Limitations¶
- First-order memory only (lag-1)
- Normality assumption after transformation
- Requires sufficient record length for stable covariance estimation
- Covariance matrices may require PSD repair with limited data
References¶
Primary: Matalas, N.C. (1967). Mathematical assessment of synthetic hydrology. Water Resources Research, 3(4), 937-945. https://doi.org/10.1029/WR003i004p00937
See also: - Salas, J.D., Delleur, J.W., Yevjevich, V., and Lane, W.L. (1980). Applied Modeling of Hydrologic Time Series. Water Resources Publications.
Implementation: src/synhydro/methods/generation/parametric/matalas.py
Tests: tests/test_matalas_generator.py