2 Basics of Probability and Statistics
2 Basics of Probability and Statistics
2.1
1. Random Experiment: A random experiment is a process leading to at least two possible outcomes with uncertainty as to which will occur. E.G. toss a coin, throw a dice,
pull the lever of a slot machine etc.
2. Sample Space (S): A sample space is the set of all possible outcomes of an experiment.
Toss a coin: S = {H, T } .
Toss two coins: S = {HH, HT, T H, T T } .
NY Mets play a doubleheader: S = {W W, W L, LW, LL} .
Each element of the sample space is called a sample point.
3. Events: An event is a subset of the sample space. For example, list all the subsets of
S = {H, T } : , {H} , {T } , {H, T } . These are the four possible events from tossing a
coin, where is called null event (it is there for mathematical completeness), it means
that nothing happens. {H} is the event of head; {T } is the event of tail; {H, T } is
the event of anything happens.
Exercise: In the toss two coins example, express the event one head and one
tail. {HT, T H} .
Exercise: In the toss two coins example, express the event the first coin is a
head.
4. The collection of all the events is called the -algebra, denoted by S. Example, the
-algebra for toss a coin example is S = {, {H} , {T } , {H, T }} . The -algebra for
toss two coins example is
exclusive.
7. If A, B are any events, they are said to be statistically independent events if the
probability of their occurring together is equal to the product of their individual
probabilities, that is,
P (A B) P (AB) = P (A) P (B) .
Example: toss two fair coins. What is the probability of obtaining a head
on the first coin and a head on the second coin? Event A is the event of head
on the first coin {HH, HT }; event B is the event of head on the second coin
{HH, T H} . The event AB is {HH} . Common sense that A and B are statisti-
9. Conditional probability: This concept answers the following question: what is the
probability that event A occurs, knowing that event B has occurred (this implies that
P (B) > 0). This is called the conditional probability of event A, conditional on event
B occurring, and it is denoted by P (A|B) , The formula is:
P (A|B) =
P (AB)
P (B)
where the numerator P (AB) is called the joint probability of events A and B and the
denominator is called the marginal probability of event B.
Example 1: I randomly draw a card from a deck of cards. Suppose that I tell you
the card drawn is a queen, what is the probability that card is a heart? Event
B : the card is a queen; event A : the card is a heart. The probability is
P (A|B) =
P (AB)
1/52
=
= 1/4.
P (B)
4/52
Example 2: In Economics 101 there are a total of 500 students, of which 300 are
males, 200 are females. We know that 100 males and 60 females plan to major
P (AB)
100/500
=
= 5/8.
P (B)
160/500
10. Law of Total Probability: Let the sample space S be partitioned into k mutually exclusive and exhaustive events C1 , ..., Ck such that P (Ci ) > 0 for all i. Let C be another
event such that P (C) > 0. We have
C = C S = C (C1 C2 ... Ck )
= (C C1 ) (C C2 ) ... (C Ck )
8
hence
P (C) = P (C C1 ) + ... + P (C Ck )
= P (C1 ) P (C|C1 ) + ... + P (Ck ) P (C|Ck )
k
X
P (Ci ) P (C|Ci ) .
=
i=1
P (C Cj )
P (C)
P (C|Cj ) P (Cj )
Pk
i=1 P (Ci ) P (C|Ci )
where Ci , i = 1, ..., k are mutually exclusive and exhausive events of the sample space
S. P (Ci ) are called prior probabilities of event Ci and P (Ci |C) are known as the
posterior probabilities of event Ci after it is known that event C occured.