Method of Moments and Maximum Likelihood Estimation
Basic Idea of the Method of Moments
Idea: the method of moments estimates parameters on the principle that the sample moments equal the population moments. Its core idea is to use the sample moments to estimate the population moments, and then to estimate the parameters through the relation between the population moments and the parameters.
Theoretical Basis of the Method of Moments
Theoretical basis: by the law of large numbers, when the sample size is sufficiently large the sample moments converge in probability to the population moments, that is:
Steps of the Method of Moments
Steps:
- Determine the number of parameters: suppose the population distribution has unknown parameters
- Compute the population moments: compute the first through the -th population moments, expressed in terms of the parameters
- Compute the sample moments: compute the first through the -th sample moments
- Establish the equations: equate the sample moments to the population moments to establish equations
- Solve the equations: solve these equations to obtain the estimators of the parameters
Advantages and Disadvantages of the Method of Moments
Advantages:
- Simple to compute and easy to understand
- Does not require knowing the specific form of the population distribution
- Applicable to all kinds of distributions
Disadvantages:
- May not yield the optimal estimator
- For some distributions the moment estimator may not exist
- The computation of high-order moments may be unstable
Example of the Method of Moments
Example 1: Parameter Estimation for the Normal Distribution
Population:
Steps:
- First population moment:
- Second population moment:
- First sample moment:
- Second sample moment:
- Establish the equations:
- Solving gives:
Example 2: Parameter Estimation for the Poisson Distribution
Population:
Steps:
- First population moment:
- First sample moment:
- Establish the equation:
- Solving gives:
Example 3: Parameter Estimation for the Exponential Distribution
Population:
Steps:
- First population moment:
- First sample moment:
- Establish the equation:
- Solving gives:
Example 4: Parameter Estimation for the Uniform Distribution
Population:
Steps:
- First population moment:
- Second population moment:
- First sample moment:
- Second sample moment:
- Establish the equations:
- Solving gives:
Basic Idea of Maximum Likelihood Estimation
Idea: maximum likelihood estimation is based on the thought that “the parameter value most likely to have produced the observed sample is the true value”. It chooses as the estimator the parameter value that makes the observed sample values most likely to occur.
Likelihood Function
Definition
A definition is a precise description of what a concept, a term, or an object means. Understanding definitions is the foundation of learning any field, and every concept has its own exact meaning.
Let the probability density function of the population be and the sample be . Then the likelihood function is defined as:
Discrete case: if is a discrete random variable with probability function , then:
Steps of Maximum Likelihood Estimation
Steps:
- Construct the likelihood function:
- Take the logarithm:
- Differentiate:
- Solve the equation: solve the equation above to obtain the maximum likelihood estimator
Properties of Maximum Likelihood Estimation
Property 1: invariance If is the maximum likelihood estimator of and is a function of , then is the maximum likelihood estimator of .
Property 2: asymptotic properties Under regularity conditions, the maximum likelihood estimator has:
- Consistency:
- Asymptotic normality:
- Asymptotic efficiency: its variance attains the Cramér-Rao lower bound
Examples of Maximum Likelihood Estimation
Example 1: Parameter Estimation for the Normal Distribution
Population:
Steps:
- Likelihood function:
- Log-likelihood function:
- Differentiate with respect to :
- Solving gives:
- Differentiate with respect to :
- Solving gives:
Example 2: Parameter Estimation for the Poisson Distribution
Population:
Steps:
- Likelihood function:
- Log-likelihood function:
- Differentiate:
- Solving gives:
Example 3: Parameter Estimation for the Exponential Distribution
Population:
Steps:
- Likelihood function:
- Log-likelihood function:
- Differentiate:
- Solving gives:
Example 4: Parameter Estimation for the Bernoulli Distribution
Population:
Steps:
- Likelihood function:
- Log-likelihood function:
- Differentiate:
- Solving gives:
Computational Complexity
Method of moments: simple to compute, only the sample moments need to be computed Maximum likelihood estimation: relatively more complex to compute, requiring differentiation and solving equations
Estimation Performance
Method of moments: may not yield the optimal estimator Maximum likelihood estimation: yields the optimal estimator under regularity conditions
Applicability
Method of moments: applicable to all kinds of distributions, without needing to know the specific form Maximum likelihood estimation: requires knowing the specific form of the distribution
Asymptotic Properties
Method of moments: has consistency, but does not necessarily have asymptotic efficiency Maximum likelihood estimation: has consistency, asymptotic normality, and asymptotic efficiency
Exercise 1
Estimate the parameter by the method of moments: given that the sample comes from .
Approach: Use the method of moments, equating the sample moments to the population moments.
Steps:
- First population moment:
- First sample moment:
- Set
- Solving gives:
Answer:
Exercise 2
Estimate the parameters by maximum likelihood estimation: given that the sample comes from .
Approach: Use maximum likelihood estimation: construct the likelihood function and differentiate.
Steps:
- Likelihood function:
- Log-likelihood function:
- Differentiate with respect to :
- Solving gives:
- Differentiate with respect to :
- Solving gives:
Answer: ,
Exercise 3
Let be a sample from the population . Estimate the parameter by the method of moments.
Approach: Use the method of moments, equating the sample moments to the population moments.
Steps:
- First population moment:
- First sample moment:
- Set
- Solving gives:
Answer:
Exercise 4
Let be a sample from the population . Estimate the parameter by maximum likelihood estimation.
Approach: Use maximum likelihood estimation: construct the likelihood function and differentiate.
Steps:
- Likelihood function:
- Log-likelihood function:
- Differentiate:
- Solving gives:
Answer:
Exercise 5
Compare the advantages and disadvantages of the method of moments and maximum likelihood estimation.
Approach: Compare them in terms of computational complexity, estimation performance, applicability, and so on.
Steps:
-
Computational complexity:
- Method of moments: simple to compute, only the sample moments need to be computed
- Maximum likelihood estimation: relatively more complex to compute, requiring differentiation and solving equations
-
Estimation performance:
- Method of moments: may not yield the optimal estimator
- Maximum likelihood estimation: yields the optimal estimator under regularity conditions
-
Applicability:
- Method of moments: applicable to all kinds of distributions, without needing to know the specific form
- Maximum likelihood estimation: requires knowing the specific form of the distribution
-
Asymptotic properties:
- Method of moments: has consistency, but does not necessarily have asymptotic efficiency
- Maximum likelihood estimation: has consistency, asymptotic normality, and asymptotic efficiency
Answer: the method of moments is simple to compute but its performance may not be as good as maximum likelihood estimation, whereas maximum likelihood estimation is more complex to compute but performs better
Symbols Used in This Article
| Greek Letter | Pronunciation | Description |
|---|---|---|
| Lambda (lambda) | denotes the parameter of the Poisson and exponential distributions | |
| Mu (mu) | denotes the population mean | |
| Sigma (sigma) | denotes the population standard deviation |
