the Creative Commons Attribution 4.0 License.
the Creative Commons Attribution 4.0 License.
Stochastic simulation of streamflow and spatial extremes: a continuous, waveletbased approach
Eric Gilleland
Stochastically generated streamflow time series are used for various water management and hazard estimation applications. They provide realizations of plausible but as yet unobserved streamflow time series with the same temporal and distributional characteristics as the observed data. However, the representation of nonstationarities and spatial dependence among sites remains a challenge in stochastic modeling. We investigate whether the use of frequencydomain instead of timedomain models allows for the joint simulation of realistic, continuous streamflow time series at daily resolution and spatial extremes at multiple sites. To do so, we propose the stochastic simulation approach called Phase Randomization Simulation using wavelets (PRSim.wave) which combines an empirical spatiotemporal model based on the wavelet transform and phase randomization with the flexible fourparameter kappa distribution. The approach consists of five steps: (1) derivation of random phases, (2) fitting of the kappa distribution, (3) wavelet transform, (4) inverse wavelet transform, and (5) transformation to kappa distribution. We apply and evaluate PRSim.wave on a large set of 671 catchments in the contiguous United States. We show that this approach allows for the generation of realistic time series at multiple sites exhibiting short and longrange dependence, nonstationarities, and unobserved extreme events. Our evaluation results strongly suggest that the flexible, continuous simulation approach is potentially valuable for a diverse range of water management applications where the reproduction of spatial dependencies is of interest. Examples include the development of regional water management plans, the estimation of regional flood or drought risk, or the estimation of regional hydropower potential. Highlights.

Stochastic simulation of continuous streamflow time series using an empirical, waveletbased, spatiotemporal model in combination with the parametric kappa distribution.

Generation of stochastic time series at multiple sites showing temporal short and longrange dependence, nonstationarities, and spatial dependence in extreme events.

Implementation of PRSim.wave in R package PRSim: Stochastic Simulation of Streamflow Time Series using Phase Randomization.
 Article
(7327 KB)  Fulltext XML
 BibTeX
 EndNote
Stochastic models are used to generate long time series or large event sets showcasing the full variability of a phenomenon. In hydrology, we use stochastically generated time series or event sets to refine water management plans, to get a better idea of potential reservoir inflows, or to develop suitable adaptation strategies for droughts and floods. If the focus is on such extreme events, eventbased instead of continuous simulation approaches are often employed (e.g., Bracken et al., 2016; Diederen et al., 2019; Quinn et al., 2019). This strategy requires an a priori definition of extreme events and leads to a loss of temporal information, e.g., on the season of occurrence. In contrast, continuous simulation approaches allow for the simulation of time series including, but not limited to, extreme events which are provided together with their time of occurrence. Such continuous approaches enable the investigation of drought and flood characteristics going beyond magnitude and extending to timing, duration, or volume. However, the model representation of this additional information on timing adds some challenges because the temporal characteristics of the data need to be represented in addition to their distribution. These temporal characteristics include fluctuations on short and long timescales (Rajagopalan et al., 2010) and potential nonstationarities in the data (Nowak et al., 2011).
There exists a variety of continuous, stochastic modeling approaches (corresponding to discretetime models in the stochastic literature) which differ in their capability of representing distributional and/or temporal characteristics in the data. Here, we focus on direct modeling approaches that directly simulate streamflow using a stochastic model as opposed to indirect approaches which use a hydrological model to transform stochastically generated precipitation into streamflow. The most commonly used stochastic simulation approaches belong to the two classes of parametric and nonparametric models. Parametric models include autoregressive moving average (ARMA) models and their modifications (Stedinger and Taylor, 1982; Papalexiou, 2018) and fractional Gaussian noise models (Mandelbrot, 1965) comprising fast fractional Gaussian noise models (Mandelbrot, 1971), broken line models (Mejia et al., 1972), and fractional autoregressive integrated moving average models (Hosking, 1984). Nonparametric models include kernel density estimation (Lall and Sharma, 1996; Sharma et al., 1997) and various bootstrap approaches such as simple bootstrap, movingblock bootstrap, nearestneighbor bootstrap (Salas and Lee, 2010; Herman et al., 2016), matchedblock bootstrap (Srinivas and Srinivasan, 2006), or maximumentropy bootstrap (Srivastav and Simonovic, 2014). These parametric and nonparametric methods have different strengths and weaknesses as, e.g., discussed in Rajagopalan et al. (2010), and the representation of spatial dependence in such timedomain models is challenging. For parametric models, the number of parameters grows rapidly with the number of locations (Caraway et al., 2014) and the spatial dependence structure is similar for high, medium, and lowflow values, which is not the case for observed data (Sharma et al., 1997). Similarly, nonparametric approaches are not effective for multiplesite streamflow generation because of the high dimension of the problem (Nowak et al., 2010).
In contrast to most timedomain models, frequencydomain models allow for the simulation of surrogate data with the same Fourier spectra as the raw data (Theiler et al., 1992) and can easily be extended to multiple sites (Prichard and Theiler, 1994; Schreiber and Schmitz, 2000). Such methods are based on the randomization of the phases of the Fourier transform and are known as the amplitudeadjusted Fourier transform (AAFT) (Lancaster et al., 2018). They have only recently been used in hydrology for other applications besides hypothesis testing, trend detection (Radziejewski et al., 2000), and the identification of nonlinearities in time series (Schmitz and Schreiber, 1996; Kugiumtzis, 1999; Venema et al., 2006; Maiwald et al., 2008). Serinaldi and Lombardo (2017) used an iterative AAFT method to generate binary series of rainfall occurrence and nonoccurrence. Brunner et al. (2019) used a phase randomization approach in combination with the flexible fourparameter kappa distribution (Hosking, 1994) to simulate continuous discharge time series including unobserved extremes. The approach is implemented in the R package Stochastic Simulation of Streamflow Time Series using Phase Randomization PRSim (Brunner and Furrer, 2019) and can be applied to both individual and multiple sites. This phase randomization approach has been shown to reproduce the distributional and temporal characteristics of the data at individual sites well (Brunner et al., 2019; Brunner and Tallaksen, 2019). However, the approach has some deficiencies when applied to multiple sites because spatial dependencies in both daily discharge and extreme events are underestimated. In addition, the approach does not allow for the consideration of nonstationarities.
In contrast to the Fourier transform, the wavelet transform allows for the representation of nonstationarities in time series (Rajagopalan et al., 2010). For a short introduction to the wavelet transform, see Sect. 2. In addition, it may help to improve the representation of spatial dependencies because it does not require a transformation to the normal distribution and back to the original, skewed distribution, which usually weakens spatial correlations (Embrechts et al., 2010). This weakening is because phase randomization preserves the crosscorrelation in the normal domain but not necessarily in the domain of the original distribution as linear correlation is not invariant under nonlinear strictly increasing transformations. Because of its favorable properties, the wavelet transform has been used in stochastic time series generation in various ways. Kwon et al. (2007) proposed a waveletbased autoregressive modeling (WARM) approach suitable for systems with a quasiperiodic long memory behavior. They used the continuous wavelet transform to decompose a time series into several statistically significant components. Each of these components was fitted using a linear autoregressive (AR) model which was subsequently used for simulation. Later, Nowak et al. (2011) adapted this WARM approach such that it can handle nonstationarities. Another possibility for handling nonstationarities is the waveletbased time series bootstrap model introduced by Erkyihun et al. (2016) which generates waveletderived signal components with a block resampling approach, therefore replacing the AR component of WARM.
An alternative to these approaches where only certain signal components are modified are approaches that randomize the wavelet coefficients for all components. These approaches typically perform a discrete wavelet decomposition using real wavelet functions (as opposed to complex wavelet functions), randomize the realvalued wavelet coefficients (i.e., amplitudes), and then invert the transform to produce a new realization of a time series (Breakspear et al., 2003; Keylock, 2007; Wang et al., 2010; Lancaster et al., 2018). However, a completely random shuffling of coefficients destroys their periodicity. To overcome this drawback, Breakspear et al. (2003) used block resampling on coefficients and Keylock (2007) introduced a threshold criterion that is used to pin particular wavelet coefficients to the same position in the wavelet domain for both the original and surrogate data. Despite these workarounds, some of the longterm periodicities and/or nonstationarities may not be preserved (Breakspear et al., 2003). Using a continuous instead of discrete wavelet transform allows for the use of complex wavelet functions which provide complexvalued coefficients containing information on the phase in addition to amplitude. The use of this additional phase information in the randomization process instead of the amplitude can prevent the loss of nonstationarities. To generate nonstationary surrogate time series, Chavez and Cazelles (2019) extended the classic phaserandomized surrogate data algorithm to the time–frequency domain using a dataset of weekly measles notifications and an electroencephalographic recording. They randomized the phases resulting from the continuous wavelet transform instead of the realvalued amplitudes. This approach has the advantage of being nonparametric, avoids assumptions about the distribution and dependence structure of the data, allows for multiple realizations, and can be extended to multiple sites by randomizing the phases for multiple time series in the same way (Prichard and Theiler, 1994; Schreiber and Schmitz, 2000).
We investigate whether such a waveletbased phase randomization approach allows for a realistic representation of spatial dependence in both continuous streamflow time series and spatial extremes. To do so, we propose a continuous waveletbased approach for the stochastic generation of streamflow time series, hereafter referred to as PRSim.wave, which is based on the empirical spatiotemporal model used by Chavez and Cazelles (2019), i.e., waveletbased phase randomization. This empirical approach is supposed to overcome difficulties in modeling spatial dependence over a large domain as occurs when using parametric models (Caraway et al., 2014). We combine this empirical spatiotemporal model with a parametric distribution to enable the generation of hydrological extremes exceeding the range of the observed values. By doing so, we extend the approach by Brunner et al. (2019) from the Fourier to the wavelet domain, therefore improving the representation of spatial dependencies and nonstationarities.
We implement PRSim.wave in the R package PRSim (Brunner et al., 2019) and apply and evaluate it on a large dataset of 671 catchments in the contiguous United States. Our evaluation results indicate that the flexible, continuous simulation approach can be used for a diverse range of water management applications requiring continuous discharge time series at multiple sites or for regional drought and flood hazard assessments not limited to peak magnitude or maximum deficit, but extending to event duration and volume.
Wavelet decomposition transforms a onedimensional time series to a twodimensional time–frequency space (Daubechies, 1992; Torrence and Compo, 1998) using either a discrete or continuous wavelet transform. Both transforms decompose a hydrological series into a set of coefficients, representing different scales or frequency bands (Sang, 2012). The coefficients of the discrete transform are real numbers representing amplitudes. In contrast, the coefficients derived from the continuous transform have a real and an imaginary part corresponding to an amplitude and phase, respectively. This additional information on the phases makes complex wavelet functions more suitable for capturing oscillatory behavior (Torrence and Compo, 1998).
The wavelet function used for the transform should reflect the features present in the time series. Because of its smooth features, the Morlet wavelet has often been used in hydrological applications (Labat et al., 2005; Lafrenière and Sharp, 2003; Schaefli et al., 2007) and is given by (Torrence and Compo, 1998)
where η is a nondimensional time parameter, ω_{0} is the nondimensional frequency, and $i=\sqrt{\mathrm{1}}$ is the imaginary unit. The continuous wavelet transform is defined as the convolution of a time series x_{n} of length n with a scaled version of ψ_{0}(η):
where ^{*} indicates the complex conjugate. Varying the wavelet scale h and translating along the localized time index n allows for showing of the amplitude of certain features vs. scale and how the amplitude varies with time and scale. An inverse filter can be used to reconstruct the original time series as the sum of the real part of the wavelet transform over all scales (h_{1}, …, h_{J}):
where the factor ψ_{0}(0) removes the energy scaling, ${h}_{j}^{\mathrm{1}/\mathrm{2}}$ converts the wavelet transform to an energy density, and the factor C_{δ} is a constant for each wavelet function (0.776 for the Morlet wavelet).
We develop and apply the stochastic simulation approach PRSim.wave using a largescale dataset of 671 stations in the contiguous United States (CONUS). We evaluate the approach with respect to distributional and temporal characteristics at individual sites and with respect to spatial dependencies across multiple sites in general and for floods in particular.
3.1 Study area
The 671 catchments in the United States cover a wide range of discharge regimes minimally influenced by human activity (Newman et al., 2015; Addor et al., 2017; Brunner et al., 2020b). Daily discharge data were downloaded for the period 1981–2018 from the USGS water information system (USGS, 2019) using the R package dataRetrieval (De Cicco et al., 2018).
For illustration and validation purposes, we select three regions which are distinct in terms of their hydrological regimes and their flood behavior. Flood similarity regions were determined by Brunner et al. (2020a) using hierarchical clustering (Gordon, 1999) on a distance matrix computed from the Fmadogram, which is a measure of extremal dependence between pairs of stations (Cooley et al., 2006). The clustering was applied to the 671 catchments and resulted in 15 clusters, among which we selected 3 for illustration purposes: (1) catchments in the lowerelevation coastal Pacific Northwest characterized by high mean annual precipitation and a strong discharge seasonality experiencing floods mainly in December and January, (2) catchments in Texas with low mean discharge, weak seasonality, and flood occurrence in spring to fall, and (3) catchments in the MidAtlantic coastal plain and central Appalachian Mountains with a strong streamflow seasonality showing flood occurrence for much of the year except early–mid summer. For each of these regions, four catchments are chosen for illustration purposes (Fig. 1).
3.2 Simulation procedure
The stochastic simulation procedure PRSim.wave for multiple sites consists of five main steps (Fig. 2), which can be run p times to generate p spatially consistent time series over n sites at daily resolution.

Derivation of random phases: a random discharge time series (white noise) of the same length as the input series is sampled from a normal distribution with mean 0 and standard deviation 1 (Chavez and Cazelles, 2019). We also tested the kappa distribution, which did, however, not significantly change the model performance. The wavelet transform is applied to the white noise series using the Morlet wavelet (Eq. 1) for h=100 wavelet scales; 100 scales are used as using only a few scales (e.g., 20) results in reconstructed time series that do not reflect all the necessary detail, while further increasing the number of scales no longer improves reconstruction performance. The phases of the wavelet transform are derived. These same phases are used for all the sites considered to retain spatial dependencies among sites (Prichard and Theiler, 1994; Schreiber and Schmitz, 2000).

Fitting of kappa distribution: the flexible fourparameter kappa distribution (Hosking, 1994) is fit to the daily values of the observed input time series using L moments. These daily distributions will be used for the transformation in Step 5 to simulate extreme values going beyond the empirical distribution. The cumulative distribution function of the kappa distribution is expressed as
$$\begin{array}{}\text{(4)}& F\left(x\right)={\left\{\mathrm{1}\mathit{\xi}{\left[\mathrm{1}\mathit{\kappa}(x\mathit{\mu})/\mathit{\sigma}\right]}^{\mathrm{1}/\mathit{\kappa}}\right\}}^{\mathrm{1}/\mathit{\xi}},\end{array}$$where μ is the location parameter, σ is the scale parameter which must be positive, and κ and ξ are the shape parameters (R package homtest; Viglione, 2009).
The kappa distribution was found to be suitable for fitting observed streamflow data in US catchments (Blum et al., 2017). A suitable fit is also found for our data, as confirmed by the Kolmogorov–Smirnov and Anderson–Darling tests (Chernobai et al., 2015), which did not reject the null hypothesis at α=0.05 for most catchments. We fit a separate distribution for each day using a moving window approach to take into account seasonal differences in the distribution of daily streamflow values. To do so, we use the daily values in a 30 d window around the day of interest. This procedure guarantees a large enough sample for the parameter fitting procedure and allows for smoothly changing distributions along the year. For leap years, flows from 29 February are removed to maintain constant sample sizes across years as in Blum et al. (2017). In a few regions with many zero discharge values (e.g., some catchments in the Great Plains) fitting the kappa distribution is not possible and we therefore use the empirical distribution instead. After fitting the daily distributions, the mean discharge is subtracted from the observed discharge values to center the observations.

Wavelet transform: the wavelet transform (Eq. 2) is applied to the input time series using the complexvalued Morlet wavelet (Eq. 1) to derive the amplitudes for h=100 number of wavelet scales. The complex part of the wavelet transform W_{n}(h) comes in via the complex conjugate ^{*} in Eq. (2). The complex conjugate is derived using the modulus and argument, i.e., the phases of the complex numbers contained in the Morlet wavelet (Eq. 1). The wavelet coefficients W_{n}(h) resulting from the transform are also complex numbers, where the argument of the complex wavelet value W_{n}(h) corresponds to the wavelet phase.

Inverse wavelet transform: reconstruction of the series in the time domain by using the inverse wavelet transform (Eq. 3) combining the random phases derived in Step 1 and the amplitudes derived in the previous step. During back transformation in Eq. (3), the phases come back in when deriving the real part at each scale h through R(W_{n}(h_{j})).

Transformation to kappa distribution: the simulated values are transformed to the kappa domain using the fitted daily kappa distributions from Step 2. For each day, a random sample is generated from the fitted, daily kappa distribution. Negative simulated values are replaced by 0. The simulated values are replaced by the values generated from the kappa distribution using rankordering. This procedure is repeated for each day in the year.
Step 1 is run only once per iteration to maintain spatial dependencies in the data, while Steps 2–5 are run for each station separately.
3.3 Evaluation
We run the stochastic simulation algorithm for the 671 catchments in the dataset n=100 times to generate 100 time series of the same length as the observed time series, i.e., 38 years. We look at (1) individual sites to evaluate the general distributional and temporal correlation characteristics as well as the reproduction of high and low flows; (2) three sets of four stations each to evaluate the spatial consistencies in daily discharge and floods: Pacific Northwest, Texas, and MidAtlantic (Fig. 1); and (3) at the set of 671 catchments to evaluate spatial consistencies in floods across large scales.
The evaluation at individual sites encompasses a comparison of observed and simulated distributional and temporal discharge characteristics. The distributional characteristics considered are the mean annual hydrograph showing variation of flow with season, 3 years of daily data illustrating the overall behavior of the series, the seasonal distributions (winter: December–February, spring: March–May, summer: June–August, fall: September–November), and monthly mean, maximum, and minimum values. The temporal characteristics considered include the autocorrelation (acf) and partial autocorrelation (pacf) functions measuring the strength of temporal dependence for different time lags, the power spectrum indicating how power varies with frequency and showing high values at those frequencies that correspond to strong periodic components (Shumway and Stoffer, 2017), the normalized average power per scale over all time steps indicating oscillations, and the scaleaveraged wavelet power (Erkyihun et al., 2016) for the three scales with the highest average power revealing nonstationarities in oscillations. To evaluate the capability of the approach to simulate extreme values, we compare observed and simulated low and high flows, i.e., flows below or above a threshold corresponding to the 0.05th and 0.95th percentiles, respectively.
The evaluation at multiple sites comprises both an assessment of how the general spatial dependence structure in the data is reproduced and an assessment of how the spatial dependence in high extremes is captured. The assessment of the general dependence structure encompasses a comparison of observed and simulated discharge time series for the catchments in the three example regions, a comparison of pairwise observed and simulated crosscorrelations for the example stations in the Pacific Northwest region, and a comparison of variograms of the observed and simulated series across all stations (R package SpatialExtremes; Ribatet, 2019) given by (Cressie, 1993)
where Z is a random variable (here, streamflow) measured at two locations s_{1} and s_{2}. In order to be able to discern the shapes of the variograms, they are first smoothed using splines.
To assess how spatial dependencies in extremes are reproduced, we first compare observed and simulated times of occurrences of flood events for the catchments in the three example regions. We then compare observed to simulated Fmadograms for flood events across all stations. The Fmadogram is a measure of spatial dependence taking values between 0 and 1 that compares the ordering of extreme events between two time series of extreme events (Cooley et al., 2006) and is expressed as
where Z(s) are transformed to have Fréchet margins so that $F\left(s\right)=\mathrm{exp}(\mathrm{1}/s)$, and d is the distance between a pair of stations (R package SpatialExtremes; Ribatet, 2019). We finally compute the tail dependence coefficient χ across all stations defined as (Coles, 2001)
where X and Y are uniformly distributed random variables with distribution functions F and G, and u is a threshold (R package extRemes; Gilleland and Katz, 2016). Tail dependence estimators depend heavily on the sample size and are subject to large uncertainty given the sample size of 38 years (Serinaldi et al., 2015).
4.1 Singlesite simulations
Both the distributional and temporal dependence characteristics of the time series at individual sites are well modeled, as shown by comparing observed and stochastically simulated time series for the two stations on the Nehalem and Navidad rivers (Figs. 3 and 4). The hydrological regimes (Fig. 3a), the overall behavior of the time series (Fig. 3b and c), and the seasonal (Fig. 3d) and monthly distribution characteristics (Fig. 3e–g) are well captured by the simulations. The simulations, however, are capable of simulating values going beyond the range of the observations as intended by using the kappa distribution. In addition to these distributional characteristics, the temporal correlation characteristics (Fig. 4a–c), the oscillations in the data (Fig. 4d), and the nonstationarities in these oscillations (Fig. 4e) are well captured by the simulations as well.
Both high and low extremes are realistically modeled as illustrated by the boxplots depicting the distributions of the above and below threshold events of the four catchments in the Pacific Northwest (Fig. 5). While the median of the observed low and highflow distributions is well met by the simulated medians, again the simulations allow for the generation of extreme low and high flows going beyond the observed values because of the use of the theoretical kappa distribution.
4.2 Multisite simulations
The stochastic simulation approach PRSim.wave not only allows for the reproduction of the distributional and temporal characteristics of time series at single sites, but also for the simulation of spatially coherent time series at multiple sites (Fig. 6). Independent of the region considered, the simulations realistically represent the observed behavior of the time series. This visual impression of a good performance with respect to the reproduction of spatial correlations in daily discharge data is confirmed by comparing observed and stochastically simulated crosscorrelation functions for the catchments in the Pacific Northwest (Fig. 7). Both the shape and magnitude of the crosscorrelation functions are well simulated. The good performance in terms of reproducing the general spatial dependence structure in the data can be generalized to other regions as shown by a comparison of observed and simulated variograms indicating a slight overestimation of spatial dependence for very long distances (>30^{∘}, ca. 3000 km; Fig. 8). Figures A1 and A2 demonstrate that neither the observed crosscorrelation nor variogram would be captured by the simulations if the phases were randomized for each catchment individually instead of using the same set of randomized phases across all catchments. In the case of individual randomization, spatial dependence is not even captured for very short distances of a few kilometers.
Spatial dependencies are maintained not only for the bulk of the distribution, by which we mean the part of the distribution excluding extremes or outliers, but also for extreme values as illustrated by the peakoverthreshold (POT) values for the different stations in the three illustrated regions (Fig. 9). These results show that besides regional flood cooccurrences, the temporal clustering behavior of events is also reproduced.
The Fmadograms shown in Fig. 10 indicate that there is generally good agreement between observed and simulated spatial dependence despite a slight overestimation of the spatial dependence of floods by the stochastic simulations. This overestimation means that a certain pair of stations may experience more joint floods according to the simulations than seen in the observations. The good agreement between observed and simulated spatial dependence and the weak overestimation in spatial dependence is also visible if we look at the tail dependence coefficient χ for the two thresholds 0.8 and 0.95 (Fig. 11). For most pairs of stations, both the simulations and observations indicate no tail dependence (grey dots). If the observations indicate tail dependence, the simulations mostly also simulate upper tail dependence (green dots). Only in very few cases do the simulations not capture the tail dependence in the observations (black dots). There are, however, quite a few cases where the simulations indicate tail dependence despite its absence in the observations (orange dots). Overall, the model shows good performance in the reproduction of observed spatial (in)dependencies.
Similar to the Fourier transform based simulation approach PRSim by Brunner et al. (2019), the waveletbased simulation approach PRSim.wave presented here allows for the generation of many time series of the same length as the observed series. This means that the representation of temporal dependence is limited to ranges within the length of the observed series. However, the modeled range of dependence is also limited to the one in the observed series if one very long time series is generated. In addition to the representation of temporal dependence, PRSim.wave allows for the reproduction of realistic spatial dependencies both in the general distribution and in extreme events. However, there is a slight tendency of the model to overestimate spatial dependence in extremes. A satisfactory representation of spatial dependence is not possible when using the Fourier transform as in PRSim. This difference between methods may be related to the fact that the wavelet transform compared to the Fourier transform does not necessitate a transformation to the normal domain and a back transformation to the domain of the skewed distribution, which has been shown to weaken spatial correlations (Embrechts et al., 2010; Papalexiou, 2018). A further improvement of the representation of crosscorrelations and spatial dependencies may be achieved by using phase annealing, which modifies the phases in an iterative way in order to optimize certain statistics but increases the computational effort (Hörning and Bárdossy, 2018). The use of the kappa distribution in combination with the spatiotemporal model allows for the generation of extremes beyond the range of the observed values. However, it requires the fitting of many parameters, which make the model nonparsimonious (Koutsoyiannis, 2016). Depending on the application, the approach can therefore be used with a distribution with fewer parameters, a distribution fitted to a monthly instead of daily scale, or the empirical distribution.
The application of the approach is not limited to observed streamflow time series. It is applicable to other variables such as precipitation if combined with a suitable distribution as well as to modeled time series. The use of streamflow time series generated with a hydrological model extends the application of PRSim.wave to climate impact studies where a hydrological model is driven by meteorological time series generated with global and/or regional climate models. Potential future extensions also include the consideration of covariates to more explicitly model nonstationarities.
Our results show that the continuous, waveletbased stochastic simulation approach PRSim.wave reliably simulates discharge and extremes at multiple sites. Thanks to a spatiotemporal model based on phase randomization, temporal short and longrange dependencies, nonstationarities, and spatial dependencies are reproduced. In combination with the parametric kappa distribution, spatial extremes at multiple sites can be reliably simulated as well. The stochastic approach of PRSim.wave is very flexible and easy to use because of its availability in the R package PRSim. Its versatility and advantageous properties make it generally useful for various water management applications where spatiotemporal patterns are of interest and, in particular, valuable for hazard assessments requiring information on spatial extremes.
The waveletbased stochastic simulation procedure for multiple sites, PRSim.wave, using the empirical, kappa, or any other distribution and some of the functions used to generate the validation plots are provided in the R package PRSim. The stable version can be found in the CRAN repository (https://cran.rproject.org/web/packages/PRSim/index.html, last access: 28 May 2020) (Brunner and Furrer, 2019), and the current development version is available at https://git.math.uzh.ch/reinhard.furrer/PRSimdevel (last access: 28 May 2020). The observational discharge data were provided by the USGS and can be downloaded via https://waterdata.usgs.gov/nwis (last access: 2 August 2019) (USGS, 2019).
MIB developed, set up, evaluated, and implemented the stochastic simulation approach in R package PRSim. MIB wrote the first draft of the manuscript and produced the figures shown therein. EG provided input on the evaluation statistics and reviewed and edited the manuscript.
The authors declare that they have no conflict of interest.
We thank Balaji Rajagopalan and Christopher Torrence for valuable discussions, which helped to shape the simulation approach. We also thank Sandhya Patidar and an anonymous reviewer for their valuable comments.
This work was supported by the Swiss National Science Foundation via a PostDoc.Mobility grant (grant no. P400P2_183844, granted to Manuela I. Brunner). Support for Eric Gilleland was provided by the Regional Climate Uncertainty Program (RCUP), an NSFsupported program at NCAR.
This paper was edited by Patricia Saco and reviewed by Sandhya Patidar and one anonymous referee.
Addor, N., Newman, A. J., Mizukami, N., and Clark, M. P.: The CAMELS data set: Catchment attributes and meteorology for largesample studies, Hydrol. Earth Syst. Sc., 21, 5293–5313, https://doi.org/10.5194/hess2152932017, 2017. a
Blum, A. G., Archfield, S. A., and Vogel, R. M.: On the probability distribution of daily streamflow in the United States, Hydrol. Earth Syst. Sci., 21, 3093–3103, https://doi.org/10.5194/hess2130932017, 2017. a, b
Bracken, C., Rajagopalan, B., Cheng, L., Kleiber, W., and Gangopadhyay, S.: Spatial Bayesian hierarchical modeling of precipitation extremes over a large domain, Water Resour. Res., 52, 6643–6655, https://doi.org/10.1111/j.17521688.1969.tb04897.x, 2016. a
Breakspear, M., Brammer, M., and Robinson, P. A.: Construction of multivariate surrogate sets from nonlinear data using the wavelet transform, Physica D, 182, 1–22, https://doi.org/10.1016/S01672789(03)001362, 2003. a, b, c
Brunner, M. I. and Furrer, R.: PRSim: Stochastic Simulation of Streamflow Time Series using Phase Randomization, available at: https://cran.rproject.org/web/packages/PRSim/index.html (last access: 28 May 2020), 2019. a, b
Brunner, M. I. and Tallaksen, L. M.: Proneness of European catchments to multiyear streamflow droughts, Water Resour. Res., 55, 8881–8894, https://doi.org/10.1029/2019WR025903, 2019. a
Brunner, M. I., Bárdossy, A., and Furrer, R.: Technical note: Stochastic simulation of streamflow time series using phase randomization, Hydrol. Earth Syst. Sci., 23, 3175–3187, https://doi.org/10.5194/hess2331752019, 2019. a, b, c, d, e
Brunner, M. I., Gilleland, E., Wood, A., Swain, D. L., and Clark, M.: Spatial dependence of floods shaped by spatiotemporal variations in meteorological and landsurface processes, Geophys. Res. Lett., 47, e2020GL088000, https://doi.org/10.1029/2020GL088000, 2020a. a
Brunner, M. I., Melsen, L. A., Newman, A. J., Wood, A. W., and Clark, M. P.: Future streamflow regime changes in the United States: assessment using functional classification, Hydrol. Earth Syst. Sci., 24, 3951–3966, https://doi.org/10.5194/hess2439512020, 2020b. a
Caraway, N. M., McCreight, J. L., and Rajagopalan, B.: Multisite stochastic weather generation using cluster analysis and knearest neighbor time series resampling, J. Hydrol., 508, 197–213, https://doi.org/10.1016/j.jhydrol.2013.10.054, 2014. a, b
Chavez, M. and Cazelles, B.: Detecting dynamic spatial correlation patterns with generalized wavelet coherence and nonstationary surrogate data, Sci. Rep.UK, 9, 1–9, https://doi.org/10.1038/s41598019435712, 2019. a, b, c
Chernobai, A., Rachev, S. T., and Fabozzi, F. J.: Composite goodnessoffit tests for lefttruncated loss samples, in: Handbook of financial econometrics and statistics, chap. 20, edited by: Lee, C.F. and Lee, J., Springer Science + Business Media, New York, 575–596, 2015. a
Coles, S.: An introduction to statistical modeling of extreme values, Springer, London, 2001. a
Cooley, D., Naveau, P., and Poncet, P.: Variograms for spatial maxstable random fields, in: Lecture notes in statistics. Dependence in probability and statistics, Springer, New York, 373–390, 2006. a, b
Cressie, N. A. C.: Statistics for spatial data, Wiley series in probability and mathematical statistics, John Wiley & Sons, Inc, Iowa State University, Hoboken, NJ, 1993. a
Daubechies, I.: Ten lectures on wavelets, in: CBMSNSF regional conference series in applied mathematics, Society for Industrial and Applied Mathematics, Philadelphia, p. 357, 1992. a
De Cicco, L. A., Lorenz, D., Hirsch, R. M., and Watkins, W.: dataRetrieval: R packages for discovering and retrieving water data available from U.S. federal hydrologic web services, https://doi.org/10.5066/P9X4L3GE, 2018. a
Diederen, D., Liu, Y., Gouldby, B., Diermanse, F., and Vorogushyn, S.: Stochastic generation of spatially coherent river discharge peaks for continental eventbased flood risk assessment, Nat. Hazards Earth Syst Sci., 19, 1041–1053, https://doi.org/10.5194/nhess1910412019, 2019. a
Embrechts, P., McNeil, A. J., and Straumann, D.: Correlation and dependence in risk management: Properties and pitfalls, in: Risk Management, chap. 7, edited by: Dempster, M. A. H., Cambridge University Press, Cambridge, 176–223, https://doi.org/10.1017/cbo9780511615337.008, 2010. a, b
Erkyihun, S. T., Rajagopalan, B., Zagona, E., Lall, U., and Nowak, K.: Waveletbased time series bootstrap model for multidecadal streamflow simulation using climate indicators, Water Resour. Res., 52, 4061–4077, https://doi.org/10.1002/2016WR018696, 2016. a, b
Gilleland, E. and Katz, R. W.: ExtRemes 2.0: An extreme value analysis package in R, J. Stat. Softw., 72, 1–39, https://doi.org/10.18637/jss.v072.i08, 2016. a
Gordon, A.: Classification, 2nd Edn., Chapman & Hall/CRC, Boca Raton, 1999. a
Herman, J. D., Reed, P. M., Zeff, H. B., Characklis, G. W., and Lamontagne, J.: Synthetic drought scenario generation to support bottomup water supply vulnerability assessments, J. Water Resour. Plan. Manage., 142, 1–13, https://doi.org/10.1061/(ASCE)WR.19435452.0000701, 2016. a
Hörning, S. and Bárdossy, A.: Phase annealing for the conditional simulation of spatial random fields, Comput. Geosci., 112, 101–111, https://doi.org/10.1016/j.cageo.2017.12.008, 2018. a
Hosking, J.: The fourparameter kappa distribution, IBM J. Res. Dev., 38, 251–258, 1994. a, b
Hosking, J. R. M.: Modeling persistence in hydrological time series using fractional differencing, Water Resour. Res., 20, 1898–1908, https://doi.org/10.1029/WR020i012p01898, 1984. a
Keylock, C. J.: A waveletbased method for surrogate data generation, Physica D, 225, 219–228, https://doi.org/10.1016/j.physd.2006.10.012, 2007. a, b
Koutsoyiannis, D.: Generic and parsimonious stochastic modelling for hydrology and beyond, Hydrolog. Sci. J., 61, 225–244, https://doi.org/10.1080/02626667.2015.1016950, 2016. a
Kugiumtzis, D.: Test your surrogate data before you test for nonlinearity, Phys. Rev. E, 60, 2808–2816, https://doi.org/10.1103/PhysRevE.60.2808, 1999. a
Kwon, H. H., Lall, U., and Khalil, A. F.: Stochastic simulation model for nonstationary time series using an autoregressive wavelet decomposition: Applications to rainfall and temperature, Water Resour. Res., 43, 1–15, https://doi.org/10.1029/2006WR005258, 2007. a
Labat, D., Ronchail, J., and Guyot, J. L.: Recent advances in wavelet analyses: Part 2 – Amazon, Parana, Orinoco and Congo discharges time scale variability, J. Hydrol., 314, 289–311, https://doi.org/10.1016/j.jhydrol.2005.04.004, 2005. a
Lafrenière, M. and Sharp, M.: Wavelet analysis of interannual variability in the runoff regimes of glacial and nival stream catchments, Bow Lake, Alberta, Hydrol. Process., 17, 1093–1118, https://doi.org/10.1002/hyp.1187, 2003. a
Lall, U. and Sharma, A.: A nearest neighbor bootstrap for resampling hydrologic time series, Water Resour. Res., 32, 679–693, 1996. a
Lancaster, G., Iatsenko, D., Pidde, A., Ticcinelli, V., and Stefanovska, A.: Surrogate data for hypothesis testing of physical systems, Phys. Rep., 748, 1–60, https://doi.org/10.1016/j.physrep.2018.06.001, 2018. a, b
Maiwald, T., Mammen, E., Nandi, S., and Timmer, J.: Surrogate data – A qualitative and quantitative analysis, in: Mathematical methods in time series analysis and digital image processing, chap. 2, edited by: Dahlhaus, R., Kurths, J., Maass, P., and Timmer, J., Springer, Berlin, Heidelberg, 41–74, 2008. a
Mandelbrot, B. B.: Une classe de processus stochastiques homothetiques a soi: Application a la loi climatologique de H. E. Hurst, Comptes rendus de l'Académie des sciences, 260, 3274–3276, 1965. a
Mandelbrot, B. B.: A fast fractional Gaussian noise generator, Water Resour. Res., 7, 543–553, 1971. a
Mejia, J. M., Rodriguez‐Iturbe, I., and Dawdy, D. R.: Streamflow simulation: 2. The broken line process as a potential model for hydrologic simulation, Water Resour. Res., 8, 931–941, https://doi.org/10.1029/WR008i004p00931, 1972. a
Newman, A. J., Clark, M. P., Sampson, K., Wood, A., Hay, L. E., Bock, A., Viger, R. J., Blodgett, D., Brekke, L., Arnold, J. R., Hopson, T., and Duan, Q.: Development of a largesample watershedscale hydrometeorological data set for the contiguous USA: Data set characteristics and assessment of regional variability in hydrologic model performance, Hydrol. Earth Syst. Sci., 19, 209–223, https://doi.org/10.5194/hess192092015, 2015. a
Nowak, K., Prairie, J., Rajagopalan, B., and Lall, U.: A nonparametric stochastic approach for multisite disaggregation of annual to daily streamflow, Water Resour. Res., 46, W08529, https://doi.org/10.1029/2009WR008530, 2010. a
Nowak, K. C., Rajagopalan, B., and Zagona, E.: Wavelet AutoRegressive Method (WARM) for multisite streamflow simulation of data with nonstationary spectra, J. Hydrol., 410, 1–12, https://doi.org/10.1016/j.jhydrol.2011.08.051, 2011. a, b
Papalexiou, S. M.: Unified theory for stochastic modelling of hydroclimatic processes: Preserving marginal distributions, correlation structures, and intermittency, Adv. Water Resour., 115, 234–252, https://doi.org/10.1016/j.advwatres.2018.02.013, 2018. a, b
Prichard, D. and Theiler, J.: Generating surrogate data for time series with several simultaneously measured variables, Phys. Rev. Lett., 73, 951–954, 1994. a, b, c
Quinn, N., Bates, P. D., Neal, J., Smith, A., Wing, O., Sampson, C., Smith, J., and Heffernan, J.: The spatial dependence of flood hazard and risk in the United States, Water Resour. Res., 55, 1890–1911, https://doi.org/10.1029/2018WR024205, 2019. a
Radziejewski, M., Bardossy, A., and Kundzewicz, Z.: Detection of change in river flow using phase randomization, Hydrolog. Sci. J., 45, 547–558, https://doi.org/10.1080/02626660009492356, 2000. a
Rajagopalan, B., Salas, J. D., and Lall, U.: Stochastic methods for modeling precipitation and streamflow, in: Advances in databased approaches for hydrologic modeling and forecasting, chap. 2, edited by: Sivakumar, B. and Berndtsson, R., World Scientific, 17–52, https://doi.org/10.1142/7783, 2010. a, b, c
Ribatet, M.: SpatialExtremes: Modelling spatial extremes, available at: https://cran.rproject.org/web/packages/SpatialExtremes/index.html, last access: 1 October 2019. a, b
Salas, J. D. and Lee, T.: Nonparametric simulation of singlesite seasonal streamflows, J. Hydrol. Eng., 15, 284–296, https://doi.org/10.1061/(ASCE)HE.19435584.0000189, 2010. a
Sang, Y. F.: A practical guide to discrete wavelet decomposition of hydrologic time series, Water Resour. Manage., 26, 3345–3365, https://doi.org/10.1007/s1126901200754, 2012. a
Schaefli, B., Maraun, D., and Holschneider, M.: What drives high flow events in the Swiss Alps? Recent developments in wavelet spectral analysis and their application to hydrology, Adv. Wat. Resour., 30, 2511–2525, https://doi.org/10.1016/j.advwatres.2007.06.004, 2007. a
Schmitz, A. and Schreiber, T.: Improved surrogate data for nonlinearity tests, Phys. Rev. Lett., 77, 635–638, https://doi.org/10.1103/PhysRevLett.77.635, 1996. a
Schreiber, T. and Schmitz, A.: Surrogate time series, Physica D, 142, 346–382, https://doi.org/10.1016/S01672789(00)000439, 2000. a, b, c
Serinaldi, F. and Lombardo, F.: General simulation algorithm for autocorrelated binary processes, Phys. Rev. E, 95, 1–9, https://doi.org/10.1103/PhysRevE.95.023312, 2017. a
Serinaldi, F., Bardossy, A., and Kilsby, C. G.: Upper tail dependence in rainfall extremes: would we know it if we saw it?, Stoch. Environ. Res. Risk A., 29, 1211–1233, 2015. a
Sharma, A., Tarboton, D. G., and Lall, U.: Streamflow simulation: a nonparametric approach, Water Resour. Res., 33, 291–308, 1997. a, b
Shumway, R. H. and Stoffer, D. S.: Time series analysis and its applications, With R examples, 4th Edn., Springer International Publishing AG, Cham, https://doi.org/10.1007/9781441978653, 2017. a
Srinivas, V. V. and Srinivasan, K.: Hybrid matchedblock bootstrap for stochastic simulation of multiseason streamflows, J. Hydrol., 329, 1–15, https://doi.org/10.1016/j.jhydrol.2006.01.023, 2006. a
Srivastav, R. K. and Simonovic, S. P.: An analytical procedure for multisite, multiseason streamflow generation using maximum entropy bootstrapping, Environ. Model. Softw., 59, 59–75, https://doi.org/10.1016/j.envsoft.2014.05.005, 2014. a
Stedinger, J. R. and Taylor, M. R.: Synthetic streamflow generation. 1. Model verification and validation, Water Resour. Res., 18, 909–918, 1982. a
Theiler, J., Eubank, S., Longtin, A., Galdrikian, B., and Farmer, J. D.: Testing for nonlinearity in time series: the method of surrogate data, Physica D, 58, 77–94, https://doi.org/10.1016/01672789(92)90102S, 1992. a
Torrence, C. and Compo, G. P.: A practical guide to wavelet analysis, B. Am. Meteorol. Soc., 79, 61–78, 1998. a, b, c
USGS: USGS Water Data for the Nation, Natl. Water Inf. Syst. Web Interface, available at: https://waterdata.usgs.gov/nwis, last access: 2 August 2019. a, b
Venema, V., Bachner, S., Rust, H. W., and Simmer, C.: Statistical characteristics of surrogate data based on geophysical measurements, Nonlin. Processes Geophys., 13, 449–466, https://doi.org/10.5194/npg134492006, 2006. a
Viglione, A.: homtest: Homogeneity tests for regional frequency analysis, available at: https://cran.rproject.org/package=homtest (last access: 1 October 2019), 2009. a
Wang, W., Hu, S., and Li, Y.: Wavelet transform method for synthetic generation of daily streamflow, Water Resour. Manage., 25, 41–57, https://doi.org/10.1007/s1126901096869, 2010. a