Professional Documents
Culture Documents
Counting events:
|A B| = |A| + |B| |A B|
|A B C| = |A| + |B| + |C| |B C| |A C| |A B| + |A B C|
Conditional probability:
P (A|B) =
P (A|B) =
P (B|A)P (A)
P (B|A)P (A)
=
P (B)
P (B|A)P (A) + P (B|A)P (A)
V ar(X) = np(1 p)
Poisson Distribution: numer of events that occur in a unit of time, if those
events occur independently, at an average rate per unit of time
Example: # of cars at traffic light in 1 minute, # of deaths in 1 year by car
Parameters:
Properties:
k
e
P (X = k) =
k!
E[X] =
V ar(X) =
Geometric Distribution: number of independent Bernoulli trials with parameter p until and including first success
Example: # of coins flipped until first head
Parameters: p
Properties:
P (X = k) = (1 p)k1 p
E[X] =
1
when |x| < 1
1x
E[X] =
x P (x)
xX
E[f (X)] =
f (x) P (x)
xX
Linearity of Expectation:
1
p
E[aX + b] = aE[X] + b
xi =
Expectation
1p
V ar(X) =
p2
P (X = k) =
P (A B)
P (B)
N K
nk
N
n
K
N
K(N K)(N n)
V ar(X) = n
N 2 (N 1)
E[X] = n
n
X
n k nk
x y
k
k=0
= 2n
Standard Deviation
=
p
V ar(X)
L(x1 , x2 , . . . , xn |) =
ln L(x1 , x2 , . . . , xn |) =
1.
1
2
2.
=
An estimator of is unbiased iff E[]
Bernoulli: p =
Normal:
=
=
Poisson:
1
n
Pn
i=1
1
n
Pn
xi
1
n
Pn
xi
Geometric: p =
x f (x) dx
CDF: F (a) = P (X a) =
f (x) dx
Z
P (a X b) = P (a < X < b) = F (b) F (a) =
f (x) dx
a
d
F (x)
dx
P a X a+
=F a+
F a
f (a)
2
2
2
2
f (x) =
E[X]
xi
i=1
i=1
Pnn
i=1
n
or
n
1X
2
Mn =
)
Xi N (,
n i=1
n
or P (X k E[X])
1
k
ln L(x1 , x2 , . . . , xn |)
= 0 =?
ln L(x1 , x2 , . . . , xn |)
Then take the derivative again to verify it is a max:
Pnn
i=1
E[X] =
ln f (xi |)
3.
=
Exponential:
E[X] =
n
X
2
ln L(x1 , x2 , . . . , xn |) < 0 ?
2
f (xi |)
i=1
V ar(X) =
n
Y
Approach:
(b a)2
V ar(X) =
12
Exponential Distribution: time until next event in Poisson process (cont.
analog to Geometric, cont. reciprocal analog to Poisson)
Example: how long until the next soldier is killed by horse kick?
Parameters: , the average number of events per unit time
Properties:
pdf: f (x) = ex for x 0
V ar(X) =
i=1
a+b
E[X] =
2
E[X] =
1 2
2. P (X (1 )) e 2
2
2
xi
xi
2 =
1
n
Pn
i=1 (xi
x)2 (biased)