Learn R Programming

copBasic (version 2.2.6)

rmseCOP: Root Mean Square Error between a Fitted Copula and an Empirical Copula

Description

Compute the root mean square error \(\mathrm{RMSE}_\mathbf{C}\) (Chen and Guo, 2019, p. 29), which is computed using mean square error \(\mathrm{MSE}\) as

$$\mathrm{MSE}_\mathbf{C} = \frac{1}{n}\sum_{i=1}^n \bigl(\mathbf{C}_n(u_i,v_i) - \mathbf{C}_{\Theta_m}(u_i, v_i)\bigr)^2\mbox{ and}$$ $$\mathrm{RMSE}_\mathbf{C} = \sqrt{\mathrm{MSE}_\mathbf{C}}\mbox{,}$$

where \(\mathbf{C}_n(u_i,v_i)\) is the empirical copula (empirical joint probability) for the \(i\)th observation, \(\mathbf{C}_{\Theta_m}(u_i, v_i)\) is the fitted copula having \(m\) parameters in \(\Theta\). The \(\mathbf{C}_n(u_i,v_i)\) comes from EMPIRcop. The \(\mathrm{RMSE}_\mathbf{C}\) is in effect saying that the best copula will have its joint probabilities plotting on a 1:1 line with the empirical joint probabilities, which is an \(\mathrm{RMSE}_\mathbf{C}=0\). From the \(\mathrm{MSE}_\mathbf{C}\) shown above, the Akaike information criterion (AIC) aicCOP and Bayesian information criterion (BIC) bicCOP can be computed, which add a penalty for \(m\) parameters. These goodness-of-fits can assist in deciding one copula favorability over another, and another goodness-of-fit using the absolute differences between \(\mathbf{C}_n(u,v)\) and \(\mathbf{C}_{\Theta_m}(u, v)\) is found under statTn.

Usage

rmseCOP(u, v=NULL, cop=NULL, para=NULL, ...)

Value

The value for \(\mathrm{RMSE}_\mathbf{C}\) is returned.

Arguments

u

Nonexceedance probability \(u\) in the \(X\) direction;

v

Nonexceedance probability \(v\) in the \(Y\) direction; If not given, then a second column from argument u is attempted;

cop

A copula function;

para

Vector of parameters or other data structure, if needed, to pass to the copula; and

...

Additional arguments to pass to either copula (likely most commonly to the empirical copula).

Author

W.H. Asquith

References

Chen, Lu, and Guo, Shenglian, 2019, Copulas and its application in hydrology and water resources: Springer Nature, Singapore, ISBN 978--981--13--0574--0.

See Also

EMPIRcop, aicCOP, bicCOP