- •Distribution Overview
- •Discrete Distributions
- •Continuous Distributions
- •Probability Theory
- •Random Variables
- •Transformations
- •Expectation
- •Variance
- •Inequalities
- •Distribution Relationships
- •Probability and Moment Generating Functions
- •Multivariate Distributions
- •Standard Bivariate Normal
- •Bivariate Normal
- •Multivariate Normal
- •Convergence
- •Statistical Inference
- •Point Estimation
- •Empirical distribution
- •Statistical Functionals
- •Parametric Inference
- •Method of Moments
- •Maximum Likelihood
- •Delta Method
- •Multiparameter Models
- •Multiparameter delta method
- •Parametric Bootstrap
- •Hypothesis Testing
- •Bayesian Inference
- •Credible Intervals
- •Function of parameters
- •Priors
- •Conjugate Priors
- •Bayesian Testing
- •Exponential Family
- •Sampling Methods
- •The Bootstrap
- •Rejection Sampling
- •Importance Sampling
- •Decision Theory
- •Risk
- •Admissibility
- •Bayes Rule
- •Minimax Rules
- •Linear Regression
- •Simple Linear Regression
- •Prediction
- •Multiple Regression
- •Model Selection
- •Non-parametric Function Estimation
- •Density Estimation
- •Histograms
- •Kernel Density Estimator (KDE)
- •Smoothing Using Orthogonal Functions
- •Stochastic Processes
- •Markov Chains
- •Poisson Processes
- •Time Series
- •Stationary Time Series
- •Estimation of Correlation
- •Detrending
- •ARIMA models
- •Causality and Invertibility
- •Spectral Analysis
- •Math
- •Gamma Function
- •Beta Function
- •Series
- •Combinatorics
|
k |
|
D |
Xi |
|
(X) = 2 log T (X) ! r2 q |
where Zi2 k2 and Z1 |
; : : : ; Zk |
|
=1 |
|
p-value = P 0 [ (X) > (x)] P r2 q > (x) |
|
Multinomial LRT
mle: pbn = Xn1 ; : : : ; Xnk
T (X) = |
Ln(p0) |
|
k |
p0j |
Xj |
|
= j=1 |
|
|||||
|
n(pn) |
Y |
pj |
|
|
|
|
L k b |
|
b |
! k2 1 |
||
(X) = 2 j=1 Xj log p0j |
||||||
|
X |
|
|
pj |
D |
|
|
|
|
b |
|
|
The approximate size LRT rejects H0 when (X) 2k 1;
Pearson Chi-square Test
|
T = |
k |
(Xj E [Xj])2 |
where |
[X ] = np |
|
under H |
|
|
|
|
|
|||||
|
Xj |
|
|
|||||
|
|
|
E j |
0j |
|
0 |
||
|
=1 |
E [Xj] |
|
|
||||
|
|
|
|
|
|
|
|
D2
T ! k 1
p-value = P 2k 1 > T (x)
D2
Faster ! Xk 1 than LRT, hence preferable for small n
Independence testing
I rows, J columns, X multinomial sample of size n = I J
mles unconstrained: pij = |
Xij |
|
|
|
|
|
|
|
|
||||||||
n |
|
|
|
|
|
|
|
||||||||||
mles under H0 |
: p0ij |
b |
i |
j |
|
|
|
|
n |
|
|
n |
|
||||
|
|
|
|
|
= p |
p |
|
|
= |
Xi |
|
X j |
|
||||
|
|
i=1b |
j=1 b b |
|
|
|
|
|
[Xij])2 |
||||||||
|
J |
|
|
Xi X j |
|||||||||||||
|
P |
I |
P |
J |
I |
|
|
|
(Xij |
|
|||||||
|
LRT: = 2 |
|
Xij log |
|
|
nXij |
|
||||||||||
PearsonChiSq: T = |
Pi=1 Pj=1 |
|
|
|
|
||||||||||||
|
|
|
E[Xij] |
D2
LRT and Pearson ! k , where = (I 1)(J 1)
iid
N (0; 1)
14 Bayesian Inference
Bayes' Theorem
f( |
|
x) = |
f(x j )f( ) |
= |
f(x j )f( ) |
|
( )f( ) |
|
j |
f(xn) |
R f(x j )f( ) d |
/ Ln |
|||||
|
|
|
|
De nitions
Xn = (X1; : : : ; Xn)
xn = (x1; : : : ; xn)
Prior density f( )
Likelihood f(xn j ): joint density of the data
n
Y
In particular, Xn iid =) f(xn j ) = f(xi j ) = Ln( )
i=1
Posterior density f( j xn)
Normalizing constant cn = f(xn) = R f(x j )f( ) d
Kernel: part of a density that depends on
|
|
R |
f( j x |
n |
|
R |
Ln( )f( ) |
|
Posterior mean n = |
|
) d = |
L |
n( )f( ) d |
||||
|
|
|
|
|
R |
|
14.1Credible Intervals
Posterior interval
Z b
P [ 2 (a; b) j xn] = f(
a
Equal-tail credible interval
Z a Z 1
f( j xn) d = f( j xn) d = =2
1 b
Highest posterior density (HPD) region Rn
1.P [ 2 Rn] = 1
2.Rn = f : f( j xn) > kg for some k
Rn is unimodal =) Rn is an interval
14.2Function of parameters
Let = '( ) and A = f : '( ) g.
Posterior CDF for
Z
H(r j xn) = P ['( ) j xn] = f( j xn) d
A
Posterior density
h( j xn) = H0( j xn)
Bayesian delta method
j Xn N '(b); seb '0(b)
14