Introduction - If you have any usage issues, please Google them yourself
Simple Bayesian method to solve the question of pneumonia. Pneumonia corresponding four characteristics: fever, pain, cough and blood cell abnormalities, determine the risk of pneumonia or not, the four characteristics of conditional independence. Assumptions suffering from pneumonia or not and four features can be represented as Ture and False. According to the data pneumonia.tex file (500 lines, each line of the first four numbers corresponding to the four characteristic variables, number 5 corresponds to the risk of pneumonia is true, 0 represents False, said Ture), to write Matlab program maininference. m from example.txt read the information of the patient' s symptoms (0 = False, said True, the-1 indicates not given), and to calculate corresponding to the likelihood of suffering from pneumonia. The information given by the order of fever, pain, cough, blood cell abnormalities. The calculated results is be saved in answer.txt.