There are many answers regarding building confidence intervals .
I am reading an article by Lourme A. et al. (2016) , and I would like to draw a confidence border of 90% and 10% of exceptional points, as in Figure 2, from the article:
.
I cannot use LaTeX and insert an image with confidence areas defined: 
library("MASS") library(copula) set.seed(612) n <- 1000 # length of sample d <- 2 # dimension # random vector with uniform margins on (0,1) u1 <- runif(n, min = 0, max = 1) u2 <- runif(n, min = 0, max = 1) u = matrix(c(u1, u2), ncol=d) Rg <- cor(u) # d-by-d correlation matrix Rg1 <- ginv(Rg) # inv. matrix # round(Rg %*% Rg1, 8) # check # the multivariate cdf of u is a Gaussian copula # with parameter Rg[1,2]=0.02876654 normal.cop = normalCopula(Rg[1,2], dim=d) fit.cop = fitCopula(normal.cop, u, method="itau") #fitting # Rg.hat = fit.cop@estimate [1] # [1] 0.03097071 sim = rCopula(n, normal.cop) # in (0,1) # Taking the quantile function of N1(0, 1) y1 <- qnorm(sim[,1], mean = 0, sd = 1) y2 <- qnorm(sim[,2], mean = 0, sd = 1) par(mfrow=c(2,2)) plot(y1, y2, col="red"); abline(v=mean(y1), h=mean(y2)) plot(sim[,1], sim[,2], col="blue") hist(y1); hist(y2)
Link Lourme, A., F. Maurer (2016) Testing Gaussian and student t-bundles as part of risk management. Economic modeling.
Question. Can someone help me and give an explanation of the variable v=(v_1,...,v_d) and G(v_1),..., G(v_d) in the equation?
I think v is a nonrandom matrix, the dimensions should be $ k ^ 2 $ (grid points) by d=2 (dimensions). For example,
axis_x <- seq(0, 1, 0.1)