Likelihood ratio test là gì

The Likelihood Ratio (LR) is the likelihood that a given test result would be expected in a patient with the target disorder compared to the likelihood that that same result would be expected in a patient without the target disorder. For example, you hav e a patient with anaemia and a serum ferritin of 60mmol/l and you find in an article that 90 per cent of patients with iron deficiency anaemia have serum ferritins in the same range as your patient (= sensitivity) and that 15 per cent of patients with oth er causes for anaemia have serum ferritins in the same range as your patient (1 – specificity). This means that your patient’s result would be six times as likely (90/15) to be seen in someone with, as opposed to someone without, iron deficiency anaemia, and this is called the LR for a positive test result.

Application

The LR is used to assess how good a diagnostic test is and to help in selecting an appropriate diagnostic test(s) or sequence of tests. They have advantages over sensitivity and specificity because they are less likely to change with the prevalence of the disorder, they can be calculated for several levels of the symptom/sign or test, they can be used to combine the results of multiple diagnostic test and the can be used to calculate po st-test probability for a target disorder. For example, if you thought your patient’s chance of iron deficiency anaemia prior to doing the ferritin was 50-50, this pre-test probability of 50 per cent translates as pre-test odds of 1:1, and the post test odds can be calculated as follows:

Post-test odds = pre-test odds * LR = 1*6 = 6
Post-test probability = post test odds / (post test odds + 1)
= 6 / (6 + 1) = 86 per cent

After the serum ferritin test is done and your patient is found to have a result of 60 mmol/l, the post-test probability of your patient having iron deficiency anaemia is therefore increased to 86 per cent, and this suggests that the serum ferritin is a worthwhile diagnostic test.

Switching back and forth between probability and odds can be done simply using a nomogram (you can click here to view a PDF of the nomogram on its own for easy printing):

 

 

Likelihood ratio test là gì

 

A LR greater than 1 produces a post-test probability which is higher than the pre-test probability. An LR less than 1 produces a post-test probability which is lower than the pre-test probability. When the pre-test probability lies between 30 and 70 per cent, test results with a very high LR (say, above 10) rule in disease. An LR below 1 produces a post-test probability les than the pre-test probability. A very low LR (say, below 0.1) virtually rules out the chance that the patient has the disease.

Calculation

We can assume that there are four possible groups of patients:

  • group a, who are disease positive and test positive;
  • group b, who are disease negative but test positive;
  • group c, who are disease positive but test negative;
  • group d, who are disease negative and test negative.

Then:

LR+ = sensitivity / (1-specificity) = (a/(a+c)) / (b/(b+d))
LR- = (1-sensitivity) / specificity = (c/(a+c)) / (d/(b+d))
Post-test odds = pre-test odds * LR
Pre-test odds = pre-test probability / (1-pre-test probability)
Post-test probability = post-test odds / (post test odds+1) 

Example

 

This example is taken from the results of a systematic review of serum ferritin as a diagnostic test for iron deficiency anaemia:

This article is about Likelihood-Ratio Tests used in probability and mathematical Statistics. If you’re looking for information about the ratio used to assess diagnostic tests in medicine, see this other article: What is a Likelihood Ratio?

What is a Likelihood-Ratio Test?

The Likelihood-Ratio test (sometimes called the likelihood-ratio chi-squared test) is a hypothesis test that helps you choose the “best” model between two . “Nested models” means that one is a special case of the other. For example, you might want to find out which of the following models is the best fit:


  • Model One has four predictor variables (height, weight, age, sex),
  • Model Two has two predictor variables (age,sex). It is “nested” within model one because it has just two of the predictor variables (age, sex).

This theory cam also be applied to matrices. For example, a scaled identity matrix is nested within a more complex compound symmetry matrix.


The best model is the one that makes the data most likely, or maximizes the likelihood function“>likelihood function, fn(X – 1, … , Xn|Θ).
Although the concept is relatively easy to grasp (i.e. the likelihood function is highest nearer the true value for Θ), the calculations to find the inputs for the procedure are not.

Likelihood-ratio tests use log-likelihood functions, which are difficult and lengthy to calculate by hand. Most statistical software packages have built in functions to handle them; On the other hand, log-likelihood functions pose other serious challenges, like the difficulty of calculating global maximums. These often involve hefty computations with complicated, multi-dimensional integrals.

Running the Test

Basically, the test compares the fit of two models. The null hypothesis is that the smaller model is the “best” model; It is rejected when the test statistic is large. In other words, if the null hypothesis is rejected, then the larger model is a significant improvement over the smaller one.

If you know the log-likelihood functions for the two models, the test statistic is relatively easy to calculate as the ratio between the log-likelihood of the simpler model (s) to the model with more parameters (g):

Likelihood ratio test là gì



You might also see this equation with “s” written as the likelihood for the null model and “g” written as the likelihood for the alternative model.

The test statistic approximates a chi-squared random variable. Degrees of freedom for the test equal the difference in the number of parameters for the two models.