Session 4 Week 2
Session 4 Week 2
Nivedita Nadkarni
Statistics in the Courtroom
November 15th 2024, NLSIU
Today’s Statistics Topics
• Events and Probability
• Conditional Probability
• Bayes’ Theorem
• Sensitivity and Specificity
• Two Common Fallacies
• ROC Curve
• Relative Risk and Odds ratio
• Problem solving
Events and Probability
• An event is the basic element to which probability can be applied.
• It is the result of an observation or experiment, or the description
of some potential outcome.
• For example, an event can be that two 50-year-old criminals are
given 25-year long sentences.
• Let A represent the event that Criminal 1 lives to serve his 20-year
sentence
• Let B be the event that Criminal 2 lives to serve his 20-year
sentence.
Events and Probability
• A number of different operations can be performed on events.
• The intersection of the two events A and B, denoted by A∩B, is
defined as the event “both A and B”.
• Therefore, in the previous example, it would be the event that both
criminals live to serve their respective 20-year sentences.
• The union of A and B, denoted by A ∪ B, is the event “either A or B,
or both A and B”.
• In the above example, it would mean either C1 or C2 or both live to
serve their 20-year sentence.
Events and Probability
• The complement of an event A, denoted by A or Ac or 𝐴 is the
event “not A”.
• Consequently, the event that Criminal 1 dies prior to completing
his 20-year sentence is Ac.
• A Venn diagram is a very useful way of depicting the relationship
between events.
• Refer to page 126, Figure 6.1
• We can now move onto the concept of probability.
Events and Probability
• The frequentist definition of probability is as follows:
• If an experiment is repeated n times under essentially identical
conditions, and if the event A occurs m times, then as n grows
large, the ratio m/n approaches a fixed limit that is the probability
of A:
𝑚
• P(A) = .
𝑛
• P(A)is therefore its relative frequency of occurrence; or the
proportion of times the event occurs in a large number of trials
repeated under virtually identical conditions.
Events and Probability
• The numerical value of a probability lies between 0 and 1.
• If a particular event happens with certainty, it occurs in each of
the n trials and has probability n/n = 1.
• In the previous example of the 50-year-old criminal living to serve
his sentence;
• P(A U Ac) = P(A or Ac or both)
• = P(Criminal lives to serve his sentence or he does not)
• =1,
• Since it is certain he will either live or die.
Events and Probability
• In figure 6.1(c), A and Ac fill up the entire box.
• Furthermore, it is impossible for the two events to occur
simultaneously.
• Therefore, the probability of their intersection is 0.
• An event that can never occur is called a null event and it
represented by the symbol φ.
• Most events have probabilities between 0 and 1.
Events and Probability
• Using the frequentist definition of the probability of an event A, we
can calculate the probability of the complementary event Ac in a
straightforward manner.
• So, if the experiment is repeated under essentially identical
conditions n times, and the event A occurs m times, the event Ac
must occur n-m times,
𝑛−𝑚
• Hence, for large n, P(Ac )= = 1-m/n=1-P(A).
𝑛
• Two events A and B that cannot occur simultaneously are said to
be mutually exclusive or disjoint.
Events and Probability
• What are examples of mutually exclusive events?
• If A is the event that the age of a juvenile offender is less than 13
years, and B is the event that it is between 13 and 15 years, for
example, the events A and B are mutually exclusive.
• Any juvenile cannot be in both categories at the same time!
• A∩B = φ and P(A∩B) = 0.
• See figure 6.2 for a Venn diagram representing the mutually
exclusive events.
• In such a situation, the additive rules of probability states that
• P(A ∪ B) = P(A) + P(B).
Events and Probability
• The additive rule can be extended to the case of three or more
mutually exclusive events
• If A1, A2,…, An are n events such that A1 ∩ A2 = φ , A1 ∩ A3 = φ and
so on for all possible pairs, then
• P(A1 ∪ A2 ∪... ∪ An) = P(A1) +(A2)+…+P(An)
• If the events A and B are not mutually exclusive, then the additive
rule no longer applies.
• If A: age of juvenile is under 13 years and B: age of juvenile is
under 15 years.
Events and Probability
• The two events can occur simultaneously –consider a juvenile
aged 12 years, there is some area where the two events will
overlap.
• Therefore, the probability that either of the events occur is the
sum of their individual probabilities minus the probability of their
intersection.
• P(A ∪ B) = P(A) + P(B) –P(A∩B).
Events and Probability
• Let A represent the event that a particular individual is exposed to
high levels of violence and B is the event that he / she is exposed
to high levels of stress.
1. What is the event AUB?
2. What is the event A∩B?
3. What is the complement of A?
4. Are the events A and B mutually exclusive?
Conditional Probability
• There is often an interest in determining the probability that an event
B will occur given that we already know the outcome of another
event A.
• Does the prior occurrence of A cause the probability of B to change?
• For example, given that a person has already lived till the age of 60,
we might want to know what the probability is that the person
survives till the age of 65.
• Here we are dealing with conditional probability.
• P(B|A) denotes the probability of B given that A has already occurred.
Conditional Probability
• The multiplicative rule of probability states that the probability that two
events A and B will both occur is equal to the probability of A times the
probability of B given that A has already occurred.
• P(A∩B)=P(A) P(B|A). (1)
• Since it is arbitrary which event we call A and which we call B,
• P(A∩B)=P(B) P(A|B). (2)
• Dividing both sides of equation (1) by P(A), we get the formula for
conditional probability to be:
P(A∩B) P(A∩B)
• P(B|A)= , given P(A)≠0 and similarly, P(A|B)= ,
P(A) P(B)
• given P(B)≠0
Conditional Probability
• Let us review this concept with the example on page 130.
• When we are concerned with two events such that the outcome of one
event has no effect on the occurrence or non-occurrence of the other,
the events are said to be independent.
• In such a case,
• P(A|B) = P(A) and P(B|A) = P(B).
• In this special case, the multiplicative rule of probability may be written
as:
• P(A∩B) = P(A)P(B)
• It is important to note that the terms independent and mutually
exclusive do not mean the same thing.
Bayes’ Theorem
• Let us revisit the hearing impairment data.
• The 163,157 persons in the study were divided into three mutually
exclusive categories.
P(E1)P(H|E1)
• P(E1|H) =
P(E1)P(H|E1) + P(E2)P(H|E2) + P(E3)P(H|E3)