Likelihood-ratio test
From Wikipedia, the free encyclopedia
This article or section may contain too much repetition. Please help improve this article, or discuss the issue on its talk page. Editing help is available. (January 2008) |
The likelihood ratio, often denoted by Λ (the capital Greek letter lambda), is the ratio of the maximum probability of a result under two different hypotheses. A likelihood-ratio test is a statistical test for making a decision between two hypotheses based on the value of this ratio.
Contents |
[edit] Definition
A statistical model is often a parametrized family of probability density functions or probability mass functions fθ(x). A null hypothesis is often stated by saying the parameter θ is in a specified subset Θ0 of the parameter space Θ. The likelihood function is L(θ) = L(θ | x) = p(x | θ) = fθ(x) is a function of the parameter θ with x held fixed at the value that was actually observed, i.e., the data. The likelihood ratio is
Many common test statistics such as the Z-test, the F-test, Pearson's chi-square test and the G-test can be phrased as log-likelihood ratios or approximations thereof.
[edit] Interpretation
Being a function of the data x, the LR is therefore a statistic. The likelihood-ratio test rejects the null hypothesis if the value of this statistic is too small, and is justified by the Neyman-Pearson lemma. How small is too small depends on the significance level of the test, i.e., on what probability of Type I error is considered tolerable ("Type I" errors consist of the rejection of a null hypothesis that is true).
The numerator corresponds to the maximum probability of an observed result under the null hypothesis. The denominator corresponds to the maximum probability of an observed result under the alternative hypothesis. Under certain regularity conditions, the numerator of this ratio is less than the denominator. The likelihood ratio under those conditions is between 0 and 1. Lower values of the likelihood ratio mean that the observed result was less likely to occur under the null hypothesis. Higher values mean that the observed result was more likely to occur under the null hypothesis.
[edit] Approximation
If the distribution of the likelihood ratio corresponding to a particular null and alternative hypothesis can be explicitly determined then it can directly be used to form decision regions (to accept/reject the null hypothesis). In most cases, however, the exact distribution of the likelihood ratio corresponding to specific hypotheses is very difficult to determine. A convenient result, though, says that as the sample size n approaches , the test statistic − 2log(Λ) will be asymptotically χ2 distributed with degrees of freedom equal to the difference in dimensionality of Θ and Θ0. This means that for a great variety of hypotheses, a practitioner can take the likelihood ratio Λ, algebraically manipulate Λ into − 2log(Λ), compare the value of − 2log(Λ) given a particular result to the chi squared value corresponding to a desired statistical significance, and create a reasonable decision based on that comparison.
[edit] Examples
[edit] Medical
One example of a likelihood ratio would be the likelihood that a given test result would be expected in a patient with a certain disorder compared to the likelihood that same result would occur in a patient without the target disorder.
As another example, imagine that you are trying to figure out if you're in line for tickets to a football game or to the opera (Assume you can't ask people which line you're in, you don't see any signs, etcetera). The only thing you're allowed to do is ask other people in line whether or not they like football. You estimate that 90% of people in the line for a football game like football, while 10% of people in the line for the opera like football. Then the likelihood ratio is computed as:
(Probability of liking football given that someone is in line for football game)/(Probability of liking football given that someone's in line for the opera) = .9/.1 = 9
The larger your likelihood ratio, the higher the chance you'll be able to correctly infer whether you're at the football game or at the opera given the people's responses. In other words, if your LR is large, you can be more confident in your decision as to whether you're in line for football tickets or not given that you only asked a limited number of people whether or not you liked football. For an infinite likelihood ratio, you'd be 100% sure that you're in line for the football game after only asking one person, who said "yes."
[edit] Coin tossing
An example, in the case of Pearson's test, we might try to compare two coins to determine whether they have the same probability of coming up heads. Our observation can be put into a contingency table with rows corresponding to the coin and columns corresponding to heads or tails. The elements of the contingency table will be the number of times the coin for that row came up heads or tails. The contents of this table are our observation X.
Heads | Tails | |
Coin 1 | k1H | k1T |
Coin 2 | k2H | k2T |
Here Θ consists of the parameters p1H, p1T, p2H, and p2T, which are the probability that coin 1 (2) comes up heads (tails). The hypothesis space H is defined by the usual constraints on a distribution, , , and piH + piT = 1. The null hypothesis H0 is the sub-space where p1j = p2j. In all of these constraints, i = 1,2 and j = H,T.
Writing nij for the best values for pij under the hypothesis H, maximum likelihood is achieved with
- .
Writing mij for the best values for pij under the null hypothesis H0, maximum likelihood is achieved with
- ,
which does not depend on the coin i.
The hypothesis and null hypothesis can be rewritten slightly so that they satisfy the constraints for the logarithm of the likelihood ratio to have the desired nice distribution. Since the constraint causes the two-dimensional H to be reduced to the one-dimensional H0, the asymptotic distribution for the test will be χ2(1), the χ2 distribution with one degree of freedom.
For the general contingency table, we can write the log-likelihood ratio statistic as
- .
[edit] Criticism
[edit] Theoretical
Bayesian criticisms of classical likelihood ratio tests focus on two issues:
- the supremum function in the calculation of the likelihood ratio, saying that this takes no account of the uncertainty about θ and that using maximum likelihood estimates in this way can promote complicated alternative hypotheses with an excessive number of free parameters;
- testing the probability that the sample would produce a result as extreme or more extreme under the null hypothesis, saying that this bases the test on the probability of extreme events that did not happen.
Instead they put forward methods such as Bayes factors, which explicitly take uncertainty about the parameters into account, and which are based on the evidence that did occur.
[edit] Practical
In medicine, the use of likelihood ratio tests has been promoted to assist in interpreting diagnostic tests[1]. A large likelihood ratio, for example a value more than 10, helps rule in disease. A small likelihood ratio, for example a value less than 0.1, helps rule out disease[2]. However, physicians rarely make these calculations[3] and sometimes make errors when they do attempt calculations.[4] A randomized controlled trial compared how well physicians interpreted diagnostic tests that were presented as either sensitivity and specificity, a likelihood ratio, or an inexact graphic of the likelihood ratio, found no difference in ability to interpret test results.[5]
[edit] References
- ^ Jaeschke R, Guyatt GH, Sackett DL (1994). "Users' guides to the medical literature. III. How to use an article about a diagnostic test. B. What are the results and will they help me in caring for my patients? The Evidence-Based Medicine Working Group". JAMA 271 (9): 703-7. PMID 8309035.
- ^ McGee S (2002). "Simplifying likelihood ratios". Journal of general internal medicine : official journal of the Society for Research and Education in Primary Care Internal Medicine 17 (8): 646-9. PMID 12213147.
- ^ Reid MC, Lane DA, Feinstein AR (1998). "Academic calculations versus clinical judgments: practicing physicians' use of quantitative measures of test accuracy". Am. J. Med. 104 (4): 374-80. doi: . PMID 9576412.
- ^ Steurer J, Fischer JE, Bachmann LM, Koller M, ter Riet G (2002). "Communicating accuracy of tests to general practitioners: a controlled study". BMJ 324 (7341): 824-6. doi: . PMID 11934776.
- ^ Puhan MA, Steurer J, Bachmann LM, ter Riet G (2005). "A randomized trial of ways to describe test accuracy: the effect on physicians' post-test probability estimates". Ann. Intern. Med. 143 (3): 184-9. PMID 16061916.