Learn R Programming

WiSEBoot (version 1.4.0)

WiSEConfidenceRegion: WiSE Wavelet Coefficients: Linear Confidence Region

Description

Calculate the WiSE bootstrap sample of the linear parameters describing a set of wavelet coefficients from two WiSEBoot objects. See Details for a precise description.

Usage

WiSEConfidenceRegion(X, Y, plot = TRUE, ...)

Arguments

X
WiSEBoot object for a single data series. The data series length from this WiSEBoot object should match the data series length for the object in Y. The selected threshold within this object should match the selecte
Y
WiSEBoot object for a single data series. The data series length from this WiSEBoot object should match the data series length for the object in X. The selected threshold within this object should match the selecte
plot
logical. If TRUE, a plot of the bootstrap sample of linear parameters in the wavelet coefficients is generated.
...
additional graphical arguments. See plot, plot.default.

Value

  • dataInterceptpoint estimate of intercept of the wavelet coefficients from the data. Using the notation in the Details section, $a$.
  • dataSlopepoint estimate of slope of the wavelet coefficients from the data. Using the notation in the Details section, $b$.
  • bootInterceptbootstrap estimates of the intercept of the wavelet coefficients. Using the notation in the Details section, $a^*$. This is a vector.
  • bootSlopebootstrap estimates of the slope of the wavelet coefficients. Using the notation in the Details section, $b^*$. This is a vector.

Details

Given 2 vectors of equally-spaced data of length $T=2^J$ for a positive integer, $J$, we assume the following models: $$X = \gamma_{x0} 1 + \gamma_{x1} t + W\gamma_x + e_x$$ $$Y = \gamma_{y0} 1 + \gamma_{y1} t + W\gamma_y + e_y$$ The WiSE bootstrap is performed on each data series with the same threshold level, $J0=j$, using WiSEBoot. Bootstrap estimates of $\gamma_x$ and $\gamma_y$ are obtained from these WiSEBoot objects, called $g^*_{xj}$ and $g^*_{yj}$. The estimates of $\gamma_x$ and $\gamma_y$ from the input data may be noted as $g_{xj}$ and $g_{yj}$. This function allows the user to examine a linear relationship between the two sets of wavelet coefficients: $$\gamma_y = \alpha 1 + \beta \gamma_x$$ Thus, we use $g^*_{xj}$ and $g^*_{yj}$ to obtain estimates of $\alpha$ and $\beta$, called $a^*$ and $b^*$. Likewise, the original coefficients from the data, $g_{xj}$ and $g_{yj}$, yield estimates, $a$ and $b$. The bootstrap parameter estimates allow the user to visualize the distribution of the linear parameters, $\alpha$ and $\beta$. Generally, these parameters give us an idea about the relationship between the two data series signals. Currently, this function does not calculate a (1-$\alpha$)% 2-dimensional region in the parameters. It allows a qualitative visualization of the bootstrap sample distribution for these linear parameters. Asymptotically, the linear parameters follow a multivariate normal distribution when assumptions are met. Note, the slope and intercept parameters here ($\alpha$ and $\beta$) are different from the linear parameters in time within our data series ($\gamma_{x0}, \gamma_{y0}, \gamma_{x1}, \gamma_{y1}$). The BootSlope and BootIntercept output from WiSEBoot represent the linear parameters in time within the data series.

References

The WiSE bootstrap hypothesis test is implemented as an analysis tool in Braverman, A. et al. "Probabilistic Climate Model Evaluation" (in progress). This is the corresponding confidence region to the calculations presented there.

See Also

WiSEBoot, wavethresh-package

Examples

Run this code
## R=10 bootstrap samples is not recommended. For demonstration only.


###Example with random data
x <- rnorm(2^8)
y <- x + rnorm(2^8, sd=0.001) #y has similar structure to x
xWise <- WiSEBoot(x, R=10, J0=4)
yWise <- WiSEBoot(y, R=10, J0=4)
xyConf <- WiSEConfidenceRegion(xWise, yWise) #does the region contain (0, 1)?


###Example with AIRS and IPSL data
data(CM20N20S60E)
padCM <- padMatrix(CM20N20S60E)  #pad data so we can use wavelet methodology

AIRS <- WiSEBoot(padCM$xPad[,1], R=10, J0=5, XParam=padCM$linearParam[,1])
IPSL1 <- WiSEBoot(padCM$xPad[,2], R=10, J0=5, XParam=padCM$linearParam[,2])

AIRS_IPSL1Conf <- WiSEConfidenceRegion(AIRS, IPSL1) #how are these signals related?

Run the code above in your browser using DataLab