Presentation is loading. Please wait.

Presentation is loading. Please wait.

Probability. Statistical inference is based on a Mathematics branch called probability theory. If a procedure can result in n equally likely outcomes,

Similar presentations


Presentation on theme: "Probability. Statistical inference is based on a Mathematics branch called probability theory. If a procedure can result in n equally likely outcomes,"— Presentation transcript:

1 Probability

2 Statistical inference is based on a Mathematics branch called probability theory. If a procedure can result in n equally likely outcomes, n A of which have attribute A, then we say that attribute A has probability n A /n, and we write P(A) = n A /n.

3 Probability Consider a true die tossed fairly: The probability of an even numbered outcome (2, 4, or 6) is ½. n A =3 N = 6 P(A) = 3/6 = ½.

4 Probability Concept of equally likely is the basis of the probability. Experiment can be broken into sets of basic outcomes, no one of which is more likely to occur than any other.

5 Probability Suppose a penny and a nickel are tossed together, what is the probability of getting two heads? Equally likely outcomes 1234 PennyHTHT NickelHHTT P(2H) = ¼.

6 Probability Rules Principles of Enumeration 1.Multiplication Principle If an event occur in a ways and if a second event occur in b ways independent of the way in which the first event occurred, then the two events together can occur in a.b ways.

7 Multiplication Principle A clinical lab has 4 methods to determine serum cholesterol and 2 methods to determine blood glucose level, then the patient’s serum cholesterol and blood glucose can be determined in 4.2 ways. Cholesterol level:I II IIIIV Glucose level:12 Patient: I1I2II1II2III1III2IV1 IV2

8 2. An Addition Principle If one event can occur in a ways and if a second event can occur in b ways, then one or the other of the events can occur in a + b ways, provided the two events can not occur together.

9 An Addition Principle 2 cancer patients 5 heart patientsneed to be bathe by the nurse The nurse can choose any patient to bathe first; she has 2 + 5 = 7 ways to choose her first patients. Exception is the patient should not have the two diseases together, Exclusivity.

10 Semantic Aid In multiplication principle, events are: event 1 and event 2 While in addition principle, they are: event 1 or event 2. And implies multiplication Or implies addition.

11 Probability of Composite Events Independent Events (Multiplication) If a procedure can result in n equally likely outcomes, n A of which have attribute A, then we say that attribute A has probability n A /n, and we write P(A) = n A /n. If a procedure can result in n equally likely outcomes, n A of which have attribute B, then we say that attribute B has probability n B /n, and we write P(B) = n B /n.

12 Independent Events Composite event A and B: P (A and B) = n A. n B /n 2 = n A /n. n B /n = P(A). (P(B) To hold this, outcome of the event B must not depend upon the outcome of the vent A. That is events A and B are independent.

13 Independent Events Two events A and B are independent if P (A and B) = P(A). (P(B) A fair coin is tossed, find the prob. of two heads: P(head on first) = ½, P(head on second) = ½ And P(head on first). P(head on second) = ½. ½ = ¼. P (2 heads) = HH, HT, TH, TT = ¼.

14 Mutually Exclusive Events Addition Probability of event A or event B If A can occur in n A ways and if B can occur in n B ways and if A and B can not occur together, then the number of equally likely outcomes favorable to A or B is: n A + n B P(A or B) = n A + n B / n = n A /n + n B /n = P(A) + P(B).

15 Mutually Exclusive Events A B

16 Mutually Not Exclusive Events AB

17 n A + n B – n A and B P(A or B) = n A + n B – n A and B n = n A /n + n B /n – n A and B /n P(A or B) = P(A) + P(B) – P (A and B)

18 Addition Example Find the probability of drawing a jack or a heart from a well shuffled deck of 52 cards. A: drawing a jack B: drawing a heart A and B: drawing a jack and a heart (i,e., drawing the jack of hearts)

19 Addition Example P(A)= 4/52= 1/13 P(B)= 13/52= 1/4 P (A and B)= 1/52 P(A or B) = P(A) + P(B) – P (A and B) P(A or B) = 1/13 + ¼ - 1/52 = 16/52

20 Marginal, Joint and Conditional Probability Cross classification by age and sex of 100 residents Sex70-7980-8990&overTotal Male 20101040 Female 30201060 Total 503020100

21 Marginal Events What is the probability of selecting a male? P (selecting a male) = 40/100 = 0.4 P (selecting an 80 to 90 year old) = 30/10 = 0.3

22 Marginal Probability If n equally likely outcomes of a procedure are cross-classified according to two or more classification variables and if the specification of an event fails to mention one or more of the classification variables, then such an event is called a marginal event and its probability is called a marginal probability.

23 Joint Event Probability of selecting a male who is also 80 to 90 years old. The event jointly specify the sex and age and is referred as joint event and its probability is joint probability.

24 Joint Probability P (male and 80-90) = 10/100 = 0.1 P (female and 80-90) = 20/100 = 0.2

25 Joint Probability If n equally likely outcomes of a procedure are cross-classified according to two or more classification variables and if the specification of an event requires simultaneous occurrence of the two classification variables, then such an event is called a joint event and its probability is called a joint probability.

26 Conditional Events A substudy of female population Within female population, the probability of selecting 80 to 90 years old? = 20/60 = 0.33 Reduced set of equally likely outcomes P (80-89 female) = 1/3 P (female 80-89) = 1/3 ? = 20/30 = 2/3

27 Conditional Probability P (90&over male) = 10/40 = ¼ P (male 90&over) = 10/20 = ½

28 Conditional Probability Events of the form “A given B” state that the occurrence of A given that B must occur are called conditional events. Their probabilities are called conditional probabilities and are denoted by P(A B), provided that P(B) = 0. The restriction B must be different from zero is important.

29 Conditional Probability Consider the event 80-89 given female P(80-90 female) = 1/3 = 20/100 /60/100 = P(80-90 and female) /P (female) Numerator joins age and sex, a joint event and can be generalized for any two events: P(A B) = P(A and B) /P(B) When B is zero, it will be an undefined function.

30 Conditional Probability P(A B) = P(A and B) /P(B) P(A B) = P(A and B) /P(B) = P(A).P(B) P(B) P(A B) = P(A), if the two events (A and B) are independent

31 Conditional Probability P(B A) = P(B and A) /P(A), A = 0 P(B A) = P(B and A) /P(A) = P(B).P(A) P(A) P(B A) = P(B), if the two events (B and A) are independent

32 Summary P(A B) = P(A and B) /P(B), if B is not zero P(B A) = P(B and A) /P(A), if A is not zero Two events “A and B” and “B and A” are identical thus having same probabilities, P(B and A) = P(A and B). P(B A) = P(B and A) /P(A) = P(A and B) /P(A), multiplying both sides by P(A), P(A and B) = P(A). P(B A)

33 Summary P(A or B) = P(A) + P(B) – P(A and B) P(A or B) = P(A) + P(B), if A and B are mutually exclusive. P(A and B) = P(A). P(B A) P(A and B) = P(A). P(B), if A and B are independent.

34 Probability Requirements Requirements for the probability distribution of a discrete random variable x: 1.P(x)  0 for all values of x 2.P(x) < 0 for all values of x 3.  p(x) = 1 4.x, denotes the absence of x, that is the occurrence of “not x”, then P(x) + P(x) = 1 or P(x) = 1 – P(x), x and x are complimentary All x

35 Baye’s Rule P(A B) and P(B A) are two different events and in general are not equal, such as if B is some effect and A is a cause, then P(B A) is the prob. of effect given cause, when we want to know the P(A B), prob. of cause given effect. Physician may know the prob. of a particular symptoms given a particular disease, but wants to know the prob. of disease given the observed symptoms for a patient?

36 Baye’s Rule Let D denote the disease and S the symptoms. If D is the presence of the disease, D denote its absence. P(D) + P(D) = 1, P(D) = 1 - P(D) P(S D) and P(S D), symptoms with or without disease. P(D S) = ?

37 Baye’s Rule P(S) = P(S and D) + P(S and D), mutually exclusive P(S D) = P(S and D) / P(D) and P(S D) = P(S and D) / P(D), multiply by P(D) and P(D), respectively. P(S and D) = P(D).P(S D) and P(S and D) = P(D).P(S D)

38 Baye’s Rule P(D S) = P(D and S) / P(S) = P(S and D) P(S and D) + P(S and D) or P(D S) = P(D). P(S D) P(D). P(S D) + P(D). P(S D) quantities assumed to be known

39 Baye’s Rule This expression is commonly known as Baye’s rule, named after Reverend Thomas Bayes (1702-1761).

40 Baye’s Rule Cancer in women over 40 Prevalence or P(D) = 1% = 0.01 Test sensitivity 95% or 0.95 Test specificity 3% or 0.03 P(D = 0.01 P(D) = 0.99 P(S D) = 0.95 P(S D) = 0.03

41 Baye’s Rule P(D S) = (0.01) (0.95) (0.01) (0.95) + (0.99) (0.03) = 0.24, predictive value (low #)

42 Baye’s Rule 100,000 women, prevalence rate 1% 1000 women will have disease Test sensitivity is 95%, 950 will screen positive, 50 negative (false negative) 99,000 women disease free Test specificity 97% = 0.97*99,000 = 96,030 screen negative 99,000 – 96,030 = 2970 false positive

43 Baye’s Rule With disease Without Disease Total Screened positive950 2970 3,920 Screened negative 5096,03096,080 Total1,00099,000100,000 Yield (predictive value) = 950 / (950+2970) = 950/3920 = 0.24

44 Baye’s Rule With disease Without Disease Total Screened positiveaba+b Screened negativecdc+d Totala+cb+dN

45 Baye’s Rule Prevalence Rate=a+c /N Sensitivity=a /a+c Specificity=d /b+d False + rate=b /b+d False – rate=c /a+c Yield or predictive value=a /a+b

46 Baye’s Rule Yield = P(D S) = P(D). P(S D) P(D). P(S D) + P(D). P(S D) = (prevalence) (sensitivity) (prevalence) (sensitivity) + (1-prevalence)(1-sensitivity)

47 Baye’s Rule For t distinct disease states D 1, D 2,…,D t, such that: ∑ P(D i ) = 1 P(D j S) = P(D j ). P(S D j ) ∑ P(D i ). P(S D i ) t i=1 t


Download ppt "Probability. Statistical inference is based on a Mathematics branch called probability theory. If a procedure can result in n equally likely outcomes,"

Similar presentations


Ads by Google