Test and Validation Studies of Mathematical Software Libraries

Slides:



Advertisements
Similar presentations
State Space Models. Let { x t :t T} and { y t :t T} denote two vector valued time series that satisfy the system of equations: y t = A t x t + v t (The.
Advertisements

Eigen Decomposition and Singular Value Decomposition
3- 1 Chapter 3 Introduction to Numerical Methods Second-order polynomial equation: analytical solution (closed-form solution): For many types of problems,
Chapter 28 – Part II Matrix Operations. Gaussian elimination Gaussian elimination LU factorization LU factorization Gaussian elimination with partial.
Itay Ben-Lulu & Uri Goldfeld Instructor : Dr. Yizhar Lavner Spring /9/2004.
Today’s class Romberg integration Gauss quadrature Numerical Methods
Sampling Attila Gyulassy Image Synthesis. Overview Problem Statement Random Number Generators Quasi-Random Number Generation Uniform sampling of Disks,
ECIV 520 Structural Analysis II Review of Matrix Algebra.
Linear and generalised linear models
Linear and generalised linear models
Kalman Filtering Pieter Abbeel UC Berkeley EECS Many slides adapted from Thrun, Burgard and Fox, Probabilistic Robotics TexPoint fonts used in EMF. Read.
ICNAAM, September 2008, Kos1 Numerical Analysis in the Digital Library of Mathematical Functions Dan Lozier Math and Computational Sciences Division National.
MathMore Lorenzo Moneta, Andràs Zsenei ROOT Workshop 30/9/2005.
Basics of Linear Algebra A review?. Matrix  Mathematical term essentially corresponding to an array  An arrangement of numbers into rows and columns.
1 CE 530 Molecular Simulation Lecture 7 David A. Kofke Department of Chemical Engineering SUNY Buffalo
1 Statistical Mechanics and Multi- Scale Simulation Methods ChBE Prof. C. Heath Turner Lecture 11 Some materials adapted from Prof. Keith E. Gubbins:
THEORETICAL STUDY OF SOUND FIELD RECONSTRUCTION F.M. Fazi P.A. Nelson.
Matlab tutorial course Lesson 2: Arrays and data types
U-Solids: new geometrical primitives library for Geant4 and ROOT Marek Gayer CERN Physics Department (PH) Group Software Development for Experiments (SFT)
Review of Matrices Or A Fast Introduction.
Application of Differential Applied Optimization Problems.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Chapter 15 Multiple Regression n Multiple Regression Model n Least Squares Method n Multiple.
CMPS 1371 Introduction to Computing for Engineers MATRICES.
Chapter 4 Section 4: Inverse and Identity Matrices 1.
Lecture 13 Chi-square and sample variance Finish the discussion of chi-square distribution from lecture 12 Expected value of sum of squares equals n-1.
New ROOT Mathematical Libraries SMatrix Package with matrix and vector classes of arbitrary type (initially developed by T. Glebe for HeraB software) complementary.
Accelerating the Singular Value Decomposition of Rectangular Matrices with the CSX600 and the Integrable SVD September 7, 2007 PaCT-2007, Pereslavl-Zalessky.
The “ ” Paige in Kalman Filtering K. E. Schubert.
Introduction to Matrices and Matrix Approach to Simple Linear Regression.
Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,
SEAL-ROOT Math Plans for 2005 Math work package Andras Zsenei, Anna Kreshuk, Lorenzo Moneta, Eddy Offermann LCG Application Area Internal Review, 30 March,
NCAF Manchester July 2000 Graham Hesketh Information Engineering Group Rolls-Royce Strategic Research Centre.
Feedback from LHC Experiments on using CLHEP Lorenzo Moneta CLHEP workshop 28 January 2003.
U-Solids: new geometrical primitives library for Geant4 and ROOT Marek Gayer CERN Physics Department (PH) Group Software Development for Experiments (SFT)
Kalman Filtering And Smoothing
Lorenzo Moneta,LHCb Software week, 26 May New ROOT Math Libraries Activities MathLib work package from ROOT SEAL merge new proposed structure for.
Robust Localization Kalman Filter & LADAR Scans
Anders Nielsen Technical University of Denmark, DTU-Aqua Mark Maunder Inter-American Tropical Tuna Commission An Introduction.
20 October 2005 LCG Generator Services monthly meeting, CERN Validation of GENSER & News on GENSER Alexander Toropin LCG Generator Services monthly meeting.
Global predictors of regression fidelity A single number to characterize the overall quality of the surrogate. Equivalence measures –Coefficient of multiple.
1 Multivariate Histogram Comparison S.I. BITYUKOV, V.V. SMIRNOVA (IHEP, Protvino), N.V. KRASNIKOV (INR RAS, Moscow) IML LHC Machine Learning WG Meeting.
Introduction to Vectors and Matrices
CHEM-E7130 Process Modeling Lecture 6
Chapter 7. Classification and Prediction
STATISTICAL ORBIT DETERMINATION Kalman (sequential) filter
Linear Algebra Lecture 2.
Chapter 7 Matrix Mathematics
Unscented Kalman Filter for a coal run-of-mine bin
Matrices and vector spaces
Review 49% of all people in the world are male. Interested whether physics majors are more likely to be male than the general population, you survey 10.
Chapter 3 Arrays and Vectors
Wrapping Fortran libraries
K Kato, E de Doncker, T Ishikawa and F Yuasa ACAT2017, August 2017
d-Fold Hermite-Gauss Quadrature and Computation of Special Functions
Matrices Definition: A matrix is a rectangular array of numbers or symbolic elements In many applications, the rows of a matrix will represent individuals.
Unfolding Problem: A Machine Learning Approach
Matlab tutorial course
Curve fit metrics When we fit a curve to data we ask:
Curve fit metrics When we fit a curve to data we ask:
6.891 Computer Experiments for Particle Filtering
Basics of Linear Algebra
JFG de Freitas, M Niranjan and AH Gee
Introduction to Vectors and Matrices
Statistical Methods for Data Analysis Random number generators
Estimate the square root
Unfolding with system identification
Math review - scalars, vectors, and matrices
Wellington Cabrera Advisor: Carlos Ordonez
The Elements of Linear Algebra
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Presentation transcript:

Test and Validation Studies of Mathematical Software Libraries A summary of my work as a technical student at CERN LCG AA Meeting, 22. September 2004

Special Functions Comparison of numerical results Performance GSL-NAG-C and GSL-TMath Bessel functions Gamma, Logarithm of Gamma, Error function and Complementary Error function

Results GSL performed very well compared to NAG-C Difference usually less than the estimated error Bigger differences between GSL and TMath Little difference in time for GSL NAG-C and TMath are faster

Timing of Special Functions 100 000 function calls for Bessel I0, I1, J0 and J1 50 000 function calls for the rest

Distributions Comparison of numerical results Performance in the evaluation Generation of random numbers according to distribution Comparison and Kolmogorov-Smirnov test Normal distribution, Landau distribution, Gamma distribution, Poisson distribution and Chi-Square distribution

Timing Results for some Distributions 1 000 000 function calls

Random Numbers According to Distribution

Random Numbers Two tests Main generators from GSL Frequency test Point test Main generators from GSL gsl_rng_mt19937 gsl_rng_cmrg gsl_rng_mrg gsl_rng_taus gsl_rng_taus2 gsl_rng_gfsr4 gsl_rng_ranlux389 gsl_rng_ranlux gsl_rng_ranlxd2

Frequency Test Fill space in d dimensions with points formed from a sequence of random numbers. Look in a small volume and the frequency as the number of bins which maximize |Nodd-Neven|. gsl_rng_minstd

Frequency Test With this frequency, look other places in the space and compute Nodd. Nodd should be normal distributed

Results 10 results for Nodd Kolmogorov-Smirnov test Taus, 8 dim and Ranlux389, 6 dim New test for poor results All passed

Point Test Arrange a sequence of random numbers into multidimensional points Define distance between two points as Find all points Pi that are closer to P1 than the mean-n*standard deviation (n=3,4,5) Calculate the distance between Pi+1 and P2

Point test For the distance should be normal distributed. Use Kolmogorov-Smirnov test All generators pass

Numerical Integration Wrapper for existing gsl algorithms Tested on a few number of integrals Compare numerical results with analytical results No difference larger than 10-7 (input tolerance), but need further testing

Integrals

Performance in Numerical Integration Quadrature routines QAG – adaptive integration QAGUI – adaptive integration from zero to infinity QAGS – adaptive integration with singularities QNG – non-adaptive Gauss-Kronrod integration NB! Different integrals are used, marked with (*) on last slide

Linear Algebra E. Myklebust summer student 2003 A Comparative study of Numerical Linear Algebra Libraries Particle Track Reconstruction, Kalman filter update equations Multiplication, addition, inversion and transpose Originally 2x2, 2x5, 5x2 and 5x5 Extended to bigger matrices 2x5, 4x10, 10x25 and 20x50 CLHEP, uBLAS, LAPACK, GSL and ROOT Used timer from SEAL base

Results (Linux, P4 1.8 MHz ) High RMS for GSL and LAPACK in 2x5 Error with ROOT for 20x50

Conclusions GSL performs reasonably good Both tests of randomness were passed by all the main generators from GSL More testing is needed for the numerical integration All test programs are in the SEAL cvs repository A test suite can be easily created and automatically run for new SEAL releases A written report of my work will be put on the webpage when finished

Results UBLAS 1 UBLAS 2 UBLAS 3 LAPACK CLHEP GSL ROOT 2x5   UBLAS 1 UBLAS 2 UBLAS 3 LAPACK CLHEP GSL ROOT 2x5 0.0000291446 (1.59) 0.000036635 (2.00) 0.0000345755 (1.89) 0.0000262477 (1.44) 0.0000254471 1.39) 0.0000315174 (1.72) 0.000018277 (1.00) 4x10 0.000122262 (6.69) 0.000128379 (7.02) 0.00004496 (2.46) 0.0000558439 (3.06) 0.0000591721 (3.24) 0.0000387867 (2.12) 10x25 0.00162649 (89.0) 0.000313892 (17.2) 0.000559981 (30.6) 0.000401781 (22.0) 0.000277101 (15.2) 20x50 0.0148939 (815) 0.00125005 (68.4) 0.00302708 (166) 0.0014349 (78.5)