Download presentation
Presentation is loading. Please wait.
Published byChad Dean Modified over 9 years ago
1
Maximum Likelihood See Davison Ch. 4 for background and a more thorough discussion. Sometimes
2
Maximum Likelihood Sometimes
3
Close your eyes and differentiate?
4
Simulate Some Data: True α=2, β=3 Alternatives for getting the data into D might be D = scan(“Gamma.data”) -- Can put entire URL D = c(20.87, 13.74, …, 10.94)
5
Log Likelihood
6
R function for the minus log likelihood
7
Where should the numerical search start? How about Method of Moments estimates? E(X) = αβ, Var(X) = αβ 2 Replace population moments by sample moments and put a ~ above the parameters.
10
If the second derivatives are continuous, H is symmetric. If the gradient is zero at a point and |H|≠0, If H is positive definite, local minimum If H is negative definite, local maximum If H has both positive and negative eigenvalues, saddle point
11
A slicker way to define the minus log likelihood function
12
Likelihood Ratio Tests Under H 0, G 2 has an approximate chi-square distribution for large N. Degrees of freedom = number of (non-redundant, linear) equalities specified by H 0. Reject when G 2 is large.
13
Example: Multinomial with 3 categories Parameter space is 2-dimensional Unrestricted MLE is (P 1, P 2 ): Sample proportions. H 0 : θ 1 = 2θ 2
14
Parameter space and restricted parameter space
15
R code for the record
16
Degrees of Freedom Express H 0 as a set of linear combinations of the parameters, set equal to constants (usually zeros). Degrees of freedom = number of non-redundant linear combinations (meaning linearly independent). df=3 (count the = signs)
17
Can write Null Hypothesis in Matrix Form as H 0 : Lθ = h
18
Gamma Example: H 0 : α = β
19
Make a wrapper function
21
It's probably okay, but plot -LL
22
Test H 0 : α = β
23
The actual Theorem (Wilks, 1934) There are r+p parameters Null hypothesis says that the first r parameters equal specified constants. Then under some regularity conditions, G 2 converges in distribution to chi- squared with r df if H 0 is true. Can justify tests of linear null hypotheses by a re-parameterization using the invariance principle.
24
How it works The invariance principle of maximum likelihood estimation says that the MLE of a function is that function of the MLE. Like Meaning is particularly clear when the function is one-to-one. Write H 0 : Lθ = h, where L is r x (r+p) and rows of L are linearly independent. Can always find an additional p vectors that, together with the rows of L, span R r+p This defines a (linear) 1-to-1 re-parameterization, and Wilks' theorem applies directly.
25
Gamma Example H 0 : α = β
26
Can Work for Non-linear Null Hypotheses Too
27
Copyright Information This slide show was prepared by Jerry Brunner, Department of Statistics, University of Toronto. It is licensed under a Creative Commons Attribution - ShareAlike 3.0 Unported License. Use any part of it as you like and share the result freely. These Powerpoint slides will be available from the course website: http://www.utstat.toronto.edu/~brunner/oldclass/appliedf14
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.