Inter-period spectral-acceleration residual correlation
spectral-correlation.RmdWhat this vignette helps you do
This vignette is for analysts who need to quantify how logarithmic
spectral-acceleration prediction residuals at two oscillator periods
tend to vary together. Given two periods in seconds,
rhoBJ() returns one dimensionless Pearson correlation
coefficient using the empirical model of Baker and Jayaram
(2008).
The result describes one period pair. It does not construct, validate, or sample a correlation matrix, and it does not validate downstream site or displacement calculations.
Symbols and units
| Symbol | Meaning and unit |
|---|---|
| First oscillator period, in seconds | |
| Second oscillator period, in seconds | |
| , in seconds | |
| , in seconds | |
| Dimensionless natural-log residual between observed and predicted spectral acceleration at period | |
| Dimensionless intermediate terms in the published equation | |
| Dimensionless Pearson correlation between and |
The public mapping is:
-
T0supplies and defaults to0.01seconds. -
Tnsupplies . -
rhoBJ()derives , , and through internally. - The returned length-one value is . The residual itself is a statistical quantity, not a function argument.
rhoBJ() depends on the two periods, not on magnitude or
distance arguments. Exchanging T0 and Tn
leaves
and
unchanged, so the coefficient is symmetric.
Published model and package convention
Baker and Jayaram fitted the equations below to empirical
correlations between logarithmic spectral-acceleration prediction
residuals. They support periods from 0.01 through
10 seconds. The fitted form has no physical interpretation
and should not be extrapolated beyond that interval (Baker and Jayaram,
2008).
The package adds one numerical convention that is not part of the
paper: an input period less than or equal to zero is silently replaced
by 0.01 seconds. The default T0 = 0.01 is
therefore also used by the package as a numerical proxy for peak ground
acceleration. For a positive period outside the published interval,
rhoBJ() warns and still returns the unsupported
extrapolated value.
Equations
Following Baker and Jayaram (2008), Equations 5 and 6, define and . All periods and numerical period constants in these equations are expressed in seconds.
For ,
and otherwise. The remaining intermediate terms are
and
The pairwise coefficient is
The public arguments map directly to and ; the return value is . The function performs no random sampling and needs no seed.
Worked example
The following explicit pairs cover the package’s
0.01-second proxy, equal periods, and separated periods.
mapply() calls rhoBJ() once for each row
because the public function accepts scalar period inputs.
PeriodPairs <- data.frame(
T0 = c(0.01, 0.3, 0.3, 1.0),
Tn = c(0.30, 0.3, 1.0, 5.0)
)
PeriodPairs$rho <- mapply(
FUN = rhoBJ,
Tn = PeriodPairs$Tn,
T0 = PeriodPairs$T0
)
PeriodPairs
#> T0 Tn rho
#> 1 0.01 0.3 0.7953519
#> 2 0.30 0.3 1.0000000
#> 3 0.30 1.0 0.5734689
#> 4 1.00 5.0 0.4444251The equal-period row returns one: a residual is perfectly correlated with itself. The other rows remain positively associated, while their smaller coefficients indicate weaker linear co-variation than the equal-period case. These coefficients describe association, not causation or a physical interaction between oscillator periods.
Symmetry is directly visible by reversing a pair:
Applicability and limits
- Use the model only for a pair of finite scalar periods expressed in seconds.
- Treat
0.01through10seconds as the supported published domain. - Do not interpret the empirical equation as a physical model or rely on its extrapolation outside the supported domain.
- Equal periods return approximately one, and reversing the periods returns the same coefficient.
- The function returns only one pairwise coefficient. It does not establish the validity of any assembled matrix, sampling procedure, or downstream calculation.
- Successful in-domain calls do not use the random-number generator, mutate inputs, or read or write files. Positive out-of-domain periods produce a warning.
Read the complete rhoBJ()
function contract for its inputs, return value, warnings, errors,
and side effects. The method authority is Baker and Jayaram
(2008).