basic probability Flashcards
probability
logically self contained
few rules, answers follow from rules
computations can be tricky
statistics
apply probability to draw conclusions from data
can be messy
involves art and science
probability example
you have a fair coin. you will toss it 100 times. What is the probability of 60 or more heads?
- random process fully known ( p(heads) = 0.5)
- outcome is unknown
statistics example
you have a coin of unknown provenance. to investigate its fairness, you toss it 100 times. Suppose you count 60 heads.
- multiple ways to do this
- different statisticians may draw different conclusions
- outcome is known (60 heads)
- need to illuminate random process
what are the schools of statistics
frequentists and bayesian
frequentists
probability measures frequency of various outcomes of an experiment
fair coin has 50% chance of heads means if we toss it many times we expect to see that percentage of heads
bayesians
probability is an abstract concept measuring the state of knowledge or degree of belief in given proposition
consider a range of values each with its own probability of being true
principle of equally likely outcomes
suppose there are n possible outcomes for an experiment and each is equally probable
if there are k desirable outcomes, then the probability of a desirable outcome is k/n
set S
collection of elements
element
π₯ β S to mean element x is in set S
subset
π΄ β π
π΄ is a subset of π if all of its elements are in S
complement
The complement of π΄ in π is the set of elements of π that are not in π΄.
We write this as
π΄π or π β π΄.
union
The union of π΄ and π΅ is the set of all elements in π΄ or π΅ (or both). We write this as π΄ βͺ π΅.
intersection
The intersection of π΄ and π΅ is the set of all elements in both π΄ and π΅. We
write this as π΄ β© π΅.
empty set
The empty set is the set with no elements. We denote it β .
disjoint
π΄ and π΅ are disjoint if they have no common elements. That is, if π΄ β© π΅ = β
difference
The difference of π΄ and π΅ is the set of elements in π΄ that are not in π΅. We
write this as π΄ β π΅.
deMorganβs laws
(π΄ βͺ π΅)π = π΄π β© π΅π
(π΄ β© π΅)π = π΄π βͺ π΅π
the first law says everything not in (π΄ or π΅) is the same set as everything thatβs (not in π΄) and (not in π΅).
The second law is similar.
venn diagrams
visualize set operations
s
L
R