 Usage:  table = VaRdiagtable(int,sig,real,g)  

 

 Input:



  int                    mx2 matrix containing the intervals (in the rows). 

                         

  sig                    nx1 vector of predicted standard deviations 

                         (assume normality) 

                         

  real                   nx1 vector of realizations. 

                         

  g                      scalar, number of grid points. 

                         

 Output:



  table                  g x 3 matrix, the "contingency table", 

                         1st column contains relative frequencies of 

                         predicted probabilities. 

                         2nd and 3rd column contain relative 

                         frequencies of predicted probabilities 

                         conditioned on the result (whether the observations 

                         fall inside or outside the specified interval) 

                         

--------------------------------------------------------------

(C) MD*TECH Method and Data Technologies, 21.9.2000

