Docsity

Probability Theory: Sets, Operations, and Basic Probability Laws, Exercises of Law

Toggle sidebar
bg1
Topic 1: Basic probability
•Review of sets
•Sample space and probability measure
•Probability axioms
•Basic probability laws
•Conditional probability
•Bayes’ rules
•Independence
•Counting
ES150 – Harvard SEAS 1
Definition of Sets
•Aset Sis a collection of objects, which are the elements of the set.
–The number of elements in a set Scan be finite
S={x1, x2,...,xn}
or infinite but countable
S={x1, x2,...}
or uncountably infinite.
–Scan also contain elements with a certain property
S={x|xsatisfies P}
•Sis a subset of Tif every element of Salso belongs to T
S⊂Tor T⊃S
If S⊂Tand T⊂Sthen S=T.
•The universal set Ω is the set of all objects within a context. We then
consider all sets S⊂Ω.
ES150 – Harvard SEAS 2
pf3
pf4
pf5
pf8

Partial preview of the text

Download Probability Theory: Sets, Operations, and Basic Probability Laws and more Exercises Law in PDF only on Docsity!

Topic 1: Basic probability

  • Review of sets
  • Sample space and probability measure
  • Probability axioms
  • Basic probability laws
  • Conditional probability
  • Bayes’ rules
  • Independence
  • Counting

ES150 – Harvard SEAS 1

Definition of Sets

  • A set S is a collection of objects, which are the elements of the set.
    • The number of elements in a set S can be finite S = {x 1 , x 2 ,... , xn} or infinite but countable S = {x 1 , x 2 ,.. .} or uncountably infinite.
    • S can also contain elements with a certain property S = {x | x satisfies P }
  • S is a subset of T if every element of S also belongs to T S ⊂ T or T ⊃ S

If S ⊂ T and T ⊂ S then S = T.

  • The universal set Ω is the set of all objects within a context. We then consider all sets S ⊂ Ω.

Set Operations and Properties

  • Set operations
    • Complement Ac: set of all elements not in A
    • Union A ∩ B: set of all elements in A or B or both
    • Intersection A ∪ B: set of all elements common in both A and B
    • Difference A − B: set containing all elements in A but not in B.
  • Properties of set operations
    • Commutative: A ∩ B = B ∩ A and A ∪ B = B ∪ A. (But A − B 6 = B − A).
    • Associative: (A ∩ B) ∩ C = A ∩ (B ∩ C) = A ∩ B ∩ C. (also for ∪)
    • Distributive: A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C) A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)
    • DeMorgan’s laws: (A ∩ B)c^ = Ac^ ∪ Bc

ES150 – Harvard SEAS (A^ ∪^ B)c^ =^ Ac^ ∩^ Bc 3

Elements of probability theory

A probabilistic model includes

  • The sample space Ω of an experiment
    • set of all possible outcomes
    • finite or infinite
    • discrete or continuous
    • possibly multi-dimensional
  • An event A is a set of outcomes
    • a subset of the sample space, A ⊂ Ω.
    • special events: certain event: A = Ω , null event: A = ∅ The set of events F is the set of all possible subsets (events A) of Ω.
  • A probability law P (A) that defines the likelihood of an event A. Formally, a probability space is the triplet {Ω, F, P (A)}.

Continuous Probability Space

  • The sample space Ω is continuous if it is uncountable infinite.
  • Examples:
    • Call arrival time: Ω = (0, ∞)
    • Random dot in a unit-square image: Ω = (0, 1)^2
  • For continuous Ω, the probability measure P (A) cannot be defined by assigning a probability to each outcome. - For any outcome s ∈ Ω, P (s) = 0 Note: A zero-probability event does not imply that the event cannot occur, rather it occurs very infrequently, given that the set of possible outcomes is infinite. - But we can assign the probability to an interval. For example, to define the uniform probability measure over (0, 1), assign P ((a, b)) = b − a to all intervals with 0 < a, b < 1.

ES150 – Harvard SEAS 7

Basic probability laws

  • If A ⊂ B then P (A) ≤ P (B)
  • Complement P (Ac) = 1 − P (A)
  • Joint probability P (A ∩ B) = P (A) + P (B) − P (A ∪ B)
  • Union P (A ∪ B) = P (A) + P (B) − P (A ∩ B)
  • Union of event bound

P

( N

i=

Ai

∑^ N

i=

P (Ai)

  • Total probability law: Let S 1 , S 2 ,... be events that partition Ω, that is, Si ∩ Sj = ∅ and

i Si^ = Ω. Then for any event^ A P (A) =

i

P (A ∩ Si)

Conditional Probability

  • Conditional probability is the probability of an event A, given partial information in the form of an event B. It is defined as

P (A|B) =

P (A ∩ B)

P (B) ,^ with^ P^ (B)^ >^0

  • Conditional probability P (.|B) can be viewed as a probability law on the new universe B.
  • P (.|B) satisfies all the axioms of probability.

P (Ω|B) = 1 P (A 1 ∪ A 2 |B) = P (A 1 |B) + P (A 2 |B) for A 1 ∩ A 2 = ∅

  • The conditional probability of A given B – the a posteriori probability of A – is related to the unconditional probability of A – the a priori probability – as P (A|B) = P P^ (B (B|A) )P (A)

ES150 – Harvard SEAS 9

  • Chain rules:

P (A ∩ B) = P (B)P (A|B) = P (A)P (B|A)

P (∩ni=1Ai) = P (A 1 )P (A 2 |A 1 )P (A 3 |A 1 ∩ A 2 )... P

An| ∩n i=1−^1 Ai

  • Examples: Radar detection, the false positive puzzle.

expressions all hold: P (A ∩ B ∩ C) = P (A)P (B)P (C) P (A ∩ B) = P (A)P (B) P (B ∩ C) = P (B)P (C) P (A ∩ C) = P (A)P (C)

  • Note: It is possible to construct sets of 3 events where the last three equations hold but the first one does not. Example: Let Ω = { 1 , 2 , 3 , 4 , 5 , 6 , 7 } where

P (1) = P (2) = P (3) = P (4) = P (5) = P (6) =^18 , P (7) =^14 Now let A = { 1 , 2 , 7 }, B = { 3 , 4 , 7 }, and C = { 5 , 6 , 7 }. What are the probabilities of these events and their intersections?

  • It is also possible for the first equation to hold while the last three do not.
  • Pair-wise independence: If every pair (Ai, Aj ) (i 6 = j) are independent, we say Ak are pair-wise independent.
  • Independence implies pair-wise independence, but not the reverse. ES150 – Harvard SEAS 13
  • Independent experiments: The most common application of the independence concept is to assume separate experiments are independent.
  • Example: A message of 3 bits is transmitted over a noisy line. Each bit is received with a probability of error 0 ≤ p ≤ 12 , independent of all other bits. What is the probability of the receiving at least two bits correctly?
  • Conditional independence: A and B are independent given C if P (A ∩ B|C) = P (A|C)P (B|C)
  • Independence does not imply conditional independence. Example: Consider 2 independent coin tosses, each with equally likely outcome of H and T. Define A = { 1st toss is H } B = { 2nd toss is H } C = { Two tosses have different results }
  • Vice-versa, conditional independence does not imply independence.

Counting

  • In many experiments with finite sample spaces, the outcomes are equally likely.
  • Then computing the probability of an event reduces to counting the number of outcomes in the event.
  • Assume that there are n distinct objects. We want to count the number of sets A with k elements, denoted as Nk. - Counting is similar to sampling from a population. - The count Nk depends on ∗ If the order of objects matters within the set A. ∗ If repetition of objects is allowed within the set A (replacement within the population).
  • The sampling problem
    • Ordered sampling with replacement: Nk = nk
    • Ordered sampling without replacement:

Nk = n(n − 1)... (n − k + 1) =

n! (n − k)! ES150 – Harvard SEAS 15

Permutations: n! = n(n − 1)... 1 (when k = n)

  • Unordered sampling without replacement:

Nk =

n k

= (^) k!(nn −! k)!

  • Unordered sampling with replacement:

Nk =

(n + k − 1 k