CS 70 Final Review

Countability

Definition

Bijections

Screen Shot 2021-12-14 at 4.32.36 PM

Cardinality

Ways to Prove Countability

Uncountable Sets

Power Sets

Computability

Self-Replicating Programs

Screen Shot 2021-12-14 at 5.39.59 PM

Recursion Theorem

The Halting Problem

def Turing(P)
	if TestHalt(P,P) = yes then loop forever
	else halt

Intersection of Events

Union of Events

Screen Shot 2021-12-07 at 10.22.54 PM

Random Variables

Random variables are defined by two things:

  1. the set of values it can take
  2. the probability with which it takes on the values

\(E[X] =\) mean/expectation of the distribution

\[Var(X) = E[X^2] - E[X]^2\]

Bernoulli Distribution

Screen Shot 2021-12-07 at 10.37.44 PM

Binomial Distribution

Screen Shot 2021-12-07 at 8.20.01 PM

Hypergeometric Distribution

Geometric Distribution

Poisson Distribution

Exponential Distribution

Screen Shot 2021-12-14 at 2.21.03 PM

continuous version of the geometric distribution

Normal Distribution (Gaussian Distribution)

Multiple Random Variables and Independence

Joint Distribution

Expectation

Linearity of Expectation

For any two random variables X and Y on the same probability space:

For any constant c

Quick Facts

Picking k items

exact number with replacement

exact number without replacement

at least one value is observed more than once

Vocab

to add