Towards a knowledge based system for the sta­tistical problems of si­mulation