Expert system for diagnostic, monitoring use of tree and probability