Suppose a clinical test was applied to detect cancer. The test has the property that $90\%$ of the cases that suffered cancer they were positive, while $5\%$ of the cases that did not have cancer were diagnosed as positive. Assuming that $1\%$ of patients in a hospital have cancer What is the probability that a randomly selected patient, who was diagnosed positive, in one actually have cancer?
My try:
I believe that the two events of the total are the people who has cancer($90\%$ positive and 10% negative) and people who doesn't ($95\%$ negative and $5\%$ positive).
I Also know that the events of having cancer and the diagnosed are independent.
I don't know how to pursue.