The problem I have is as follows:
To create an expert shell to read in the following
The predicate 'disease' has 4 arguments: a reference number for the disease,
followed by its name, its prior probability in the absence of any other
information and a symptom list.
The symptom list comprises a series of numbers in groups of three, one
for each symptom associated with the disease, in the following order:
(a) The reference number of the symptom
(b) The probability of the symptom being present in patients who have
(c) The probability of the symptom being present in patients who do not
have the disease
The 'symptom' predicate has two arguments: a reference number for the
followed by a question that can be used to ask the user whether or not
symptom is present
symptom(1,'Are you sneezing a lot?').
I have used the following coding below before to calculate the probability
using bayes theroem, but I am stuck as to how to modify the following code
to calculate the probability to a symptom relating to a disease and how once
such calculations have been performed how to select an apporriate disease
and display it to the user. All I'm looking for is the basics to get my
past this stage as I've been stuck for about a week and am a maths student
not a programmer (I need all the help I can get)
Newval is (PEH*Prior)/((PEH*Prior)+(PEnotH)*(1-Prior)),
Please can you offer any help
"Martin Sondergaard" <firstname.lastname@example.org> wrote in message
> Your question is a bit too difficult to answer,
> I think it needs a long answer.
> We can't really post the source code for an
> expert system shell, it would take too long to type.
> Would you like to ask a question that has a short answer?
> Martin Sondergaard,
This message was posted through the fuzzy mailing list.
(1) To subscribe to this mailing list, send a message body of
"SUB FUZZY-MAIL myFirstName mySurname" to email@example.com
(2) To unsubscribe from this mailing list, send a message body of
"UNSUB FUZZY-MAIL" or "UNSUB FUZZY-MAIL firstname.lastname@example.org"
(3) To reach the human who maintains the list, send mail to
(4) WWW access and other information on Fuzzy Sets and Logic see
(5) WWW archive: http://www.dbai.tuwien.ac.at/marchives/fuzzy-mail/index.html
This archive was generated by hypermail 2b30 : Wed Jan 02 2002 - 23:35:21 MET