Probability Flashcards
(S,P)
The sample space S of all elementary events x E S ; also called outcomes of experiment
A probability distribution P assigns a real number P(x) to every elementary event x E S such that ; Should all add up to one AND should not exceed one or go below zero
Event
Event is a subset of the sample space S -> probability is sum of the probabilities of each one.
Probability Distribution - uniform
A probability distribution is uniform if all outcomes are equally likely -> P(x) = 1/|S| to represent this (cardinality).
Heads and Tails:
S = {H, T}
P(H) = P(T) = 1/2
S = {HH, HT, TH, TT}
P(HH) = P(HT) = P(TH) = P(TT) = 1/4
Dice: (roll n amount of times)
S = {1,2,3,4,5,6}
P(S) = for every x in S : P(x) = 1/6
S = {1,…,6} -> {1,…,6}^n
P(x) = 1/(6^2), since S has 6^n elements
P(E) (dice):
Number of sequences containing 6 / 6^3 if E was rolling at least one 6 in three turns.
¬E = P without E
Then P(¬E) = 1 = P(E)
Probability that at least one bit in a randomly generated sequence of 10 bits is 0.
If x exists in S, P(x) = (1/2)^10 = 1/(2^10) then
P(E) = 1 - 1/(2^10)
P(R u C)
= P(R) + P(C) - P(R n C)
= 8/30 + 9/30 - 2/30 = 1/2
P(A u B u C)
-> P(A) + P(B) + P(C)
- P(A n B) - P(A n C) - P(B n C)
+ P(A n B n C)
S’ is a subset of S
S contains BB, GB, BG and GG, but let’s say it contains only 3 values, BB, GB, and BG
GG is not in S’
Then to find out the probability of BB, you do the probability of BB / probability of S’
Probability that it is red considering it is circular
-> P(R|C)
P(R|C) -> P(R n C) / P(C) = 2/30 divided by 9/30 = 2/30 * 30/9 = 2/9
P = {Red | Red, Green}
Not independent because it is certified that red exists (red = 1) because of both.
Conditional Probability
The probability of an event occurring considering another event has already occurred.
P(A|B) for example.
You can then write P(A|B) = P(A n B) / P(B) since we do not need to include B due to it already happening.
Rewrite P(A|B) = P(A n B) / P(B)
P(A n B) = P(A|B) * P(B)
P(B) = P(A n B) / P(A|B)