Professional Documents
Culture Documents
Statistics
Introduction to Basic Probability
Ling-Chieh Kung
I Quality control: For all LED lamps of brand IM, we are interested in
µ, the average number of hours of luminance.
I Let’s select a random sample of 40 lamps. A test shows that the
sample average is x̄ = 28000 hours.
I What’s the probability that µ = x̄?
I What’s the probability that µ ∈ [27000, 29000]?
I What’s the probability that µ ∈ [26000, 30000]?
I To assess these probabilities, we need to study Probability.
Probability
Road map
I Basic terminology.
I Probability types and laws.
I Independent events.
I Bayes’ theorem.
Elementary events
Sample spaces
Complements
I The rule:
I Suppose experiment 1 has m outcomes and experiment 2 has n outcomes.
I Suppose the realization of an outcome in experiment 1 does not affect
the realization of outcomes of experiment 2.
I Then the total number of outcomes of the two experiments, in order, is
mn.
I Do the mn counting rule applies to the following examples?
I Rolling a dice twice.
I First asking one’s sex and then her/his marital status.
I First asking one’s marital status and then her/his years of marriage.
possibilities.
I Lottery: sampling six numbers from 42 numbers.
I Note that
N! n
→ N n as → 0.
n!(N − n)! N
What does this imply?
I When n N , sampling without replacement can be approximated
by sampling with replacement.
I When we randomly sample 1000 consumers from the whole Taiwan,
which formula should we use?
Road map
I Basic terminology.
I Probability types and laws.
I Independent events.
I Bayes’ theorem.
Marginal probabilities
Joint probabilities
I Mathematically:
I Use I for the event “Important” and U for “unimportant.”
I Use S for the event “Switch” and N for “Don’t switch.”
I Marginal probabilities: Pr(I) = 0.51, Pr(S) = 0.57, etc.
Joint probabilities
Conditional probabilities
Conditional probability
Conditional probability
I Among those who say discounts are important, 90% would try another
cleaner if a discount were offered.
I Y : Discounts are important. X: Would switch for a discount.
I Among Y , 90% are X ∩ Y : Pr(X ∩ Y ) = 0.9 Pr(Y ).
I This 90% is defined as the conditional probability Pr(X|Y ).
Law of multiplication
Union probabilities
Law of addition
Law of addition
Summary
Road map
I Basic terminology.
I Probability types and laws.
I Independent events.
I Bayes’ theorem.
Independent events
I Two events are independent if whether one occurs does not affect
the probability for the other one to occur.
I Two events are dependent if they are not independent.
I Two experiments are independent if they produce independent events.
I A set of events are independent if all pairs of events are independent.
Independent events
Independent events
I In other words, knowing that one has occurred does not help me
modify my belief on whether the other will occur.
Belief updating
Road map
I Basic terminology.
I Probability types and laws.
I Independent events.
I Bayes’ theorem.
Proof. Homework!
Belief updating
I Now, we observe one consumer goes away (event G). Given this, what
is the posterior belief that the product is indeed popular (event P )?
I This is the conditional probability Pr(P |G).
Pr(P ∩ G) 0.28
I Pr(P |G) = = ≈ 0.54.
Pr(G) 0.52
Bayes’ theorem
Pr(P ∩ G)
I Recall that we have done this: Pr(P |G) = .
Pr(G)
I Combining this with the law of total probability, we establish
Bayes’ theorem:
Pr(Yj ) Pr(X|Yj )
Pr(Yj |X) = Pk ∀j = 1, 2, ..., k.
i=1 Pr(Yi ) Pr(X|Yi )
Bayes’ theorem
Pr(P ) Pr(G|P )
Pr(P |G) =
Pr(P ) Pr(G|P ) + Pr(U ) Pr(G|U )
0.7 × 0.4
= = 0.54.
0.7 × 0.4 + 0.3 × 0.8
Some remarks