Let D1 denote the event that the patient has disease d1. The events D2 and D3 are defined similarly.
Let S be the event that the patient shows the symptom S,
Using Bayes' theorem, we get
P(D1/S) = The probability that the patient has disease d1 knowing that he/she has symptoms S1, S2, ...., S6
P(D1/S)
Thus, knowing that the patient has symptoms S1, S2,...,S3, the probability that he has disease d1 is 0.33, the probability that he has disease d3 is 0.32, the probability that he has disease d3 is 0.32. Therefore, the doctor should conclude that the patient is most likely to have disease d2.