# Monotone likelihood ratio

$\ f(x)\$
$\ g(x)\$
The ratio of the density functions above is monotone in the parameter $\ x\ ,$ so $\ {\frac {\ f(x)\ }{g(x)}}\$ satisfies the monotone likelihood ratio property.
In statistics, the monotone likelihood ratio property is a property of the ratio of two probability density functions (PDFs). Formally, distributions $\ f(x)\$ and $\ g(x)\$ bear the property if
    $\ {\text{for every }}x_{2}>x_{1},\quad {\frac {f(x_{2})}{\ g(x_{2})\ }}\geq {\frac {f(x_{1})}{\ g(x_{1})\ }}\$
that is, if the ratio is nondecreasing in the argument $x$.
If the functions are first-differentiable, the property may sometimes be stated
    ${\frac {\ \partial }{\ \partial x}}\left({\frac {f(x)}{\ g(x)\ }}\right)\geq 0\$
For two distributions that satisfy the definition with respect to some argument $\ x\ ,$ we say they "have the MLRP in $\ x~.$" For a family of distributions that all satisfy the definition with respect to some statistic $\ T(X)\ ,$ we say they "have the MLR in $\ T(X)~.$"

## Intuition

The MLRP is used to represent a data-generating process that enjoys a straightforward relationship between the magnitude of some observed variable and the distribution it draws from. If $\ f(x)\$ satisfies the MLRP with respect to $\ g(x)\$, the higher the observed value $\ x\$, the more likely it was drawn from distribution $\ f\$ rather than $\ g~.$ As usual for monotonic relationships, the likelihood ratio's monotonicity comes in handy in statistics, particularly when using maximum-likelihood estimation. Also, distribution families with MLR have a number of well-behaved stochastic properties, such as first-order stochastic dominance and increasing hazard ratios. Unfortunately, as is also usual, the strength of this assumption comes at the price of realism. Many processes in the world do not exhibit a monotonic correspondence between input and output.

### Example: Working hard or slacking off

Suppose you are working on a project, and you can either work hard or slack off. Call your choice of effort $\ e\$ and the quality of the resulting project $\ q~.$ If the MLRP holds for the distribution of $\ q\$ conditional on your effort $\ e\$, the higher the quality the more likely you worked hard. Conversely, the lower the quality the more likely you slacked off.
    1: Choose effort $\ e\in \{H,L\}\$ where $\ H\$ means high effort, and $\ L\$ means low effort.
    2: Observe $\ q\$ drawn from $\ f(q\ |\ e)~.$ By Bayes' law with a uniform prior,
          $\ \operatorname {\mathbb {P} } {\bigl\ e=H\ {\big |}\ q\ {\bigr ]}={\frac {f(q\ |\ H)}{\ f(q\ |\ H)+f(q\ |\ L)\ }}\$
    3: Suppose $\ f(q\ |\ e)\$ satisfies the MLRP. Rearranging, the probability the worker worked hard is
          $\ {\frac {1}{\ 1+f(q\ |\ L)/f(q\ |\ H)\ }}\$
       which, thanks to the MLRP, is monotonically increasing in $\ q\$ (because $\ {\frac {f(q\ |\ L)}{\ f(q\ |\ H)\ }}\$ is decreasing in $\ q\$).
Hence if some employer is doing a "performance review" he can infer his employee's behavior from the merits of his work.

## Families of distributions satisfying MLR

Statistical models often assume that data are generated by a distribution from some family of distributions and seek to determine that distribution. This task is simplified if the family has the monotone likelihood ratio property (MLRP).
A family of density functions $\ {\bigl \\ f_{\theta }(x)\ {\big |}\ \theta \in \Theta \ {\bigr \}}\$ indexed by a parameter $\ \theta \$ taking values in an ordered set $\ \Theta \$ is said to have a monotone likelihood ratio (MLR) in the statistic $\ T(X)\$ if for any $\ \theta _{1}<\theta _{2}\ ,$
    $\ {\frac {f_{\theta _{2}}(X=x_{1},\ x_{2},\ x_{3},\ \ldots \ )}{\ f_{\theta _{1}}(X=x_{1},\ x_{2},\ x_{3},\ \ldots \ )\ }}\$ is a non-decreasing function of $\ T(X)~.$
Then we say the family of distributions "has MLR in $\ T(X)\$".

### List of families

| Family | $\ T(X)\$ in which $\ f_{\theta }(X)\$ has the MLR |
| Exponential$[\lambda ]\$ | $\ \sum x_{i}\$ observations |
| Binomial$[n,p]\$ | $\ \sum x_{i}\$ observations |
| Poisson$[\lambda ]\$ | $\ \sum x_{i}\$ observations |
| Normal$[\mu ,\sigma ]\$ | if $\ \sigma \$ known, $\ \sum x_{i}\$ observations |

### Hypothesis testing

If the family of random variables has the MLRP in $\ T(X)\ ,$ a uniformly most powerful test can easily be determined for the hypothesis $\ H_{0}\ :\ \theta \leq \theta _{0}\$ versus $\ H_{1}\ :\ \theta >\theta _{0}~.$

### Example: Effort and output

Example: Let $\ e\$ be an input into a stochastic technology – worker's effort, for instance – and $\ y\$ its output, the likelihood of which is described by a probability density function $\ f(y;e)~.$ Then the monotone likelihood ratio property (MLRP) of the family $\ f\$ is expressed as follows: For any $\ e_{1},e_{2}\ ,$ the fact that $e_{2}>e_{1}$ implies that the ratio $\ {\frac {\ f(y;e_{2})\ }{f(y;e_{1})}}\$ is increasing in $\ y~.$

## Relation to other statistical properties

Monotone likelihoods are used in several areas of statistical theory, including point estimation and hypothesis testing, as well as in probability models.

### Exponential families

One-parameter exponential families have monotone likelihood-functions. In particular, the one-dimensional exponential family of probability density functions or probability mass functions with
    $\ f_{\theta }(x)=c(\theta )\ h(x)\ \exp {\Bigl\ \pi \left(\theta \right)\ T\left(x\right)\ {\Bigr )}\$
has a monotone non-decreasing likelihood ratio in the sufficient statistic $\ T(x)\ ,$ provided that $\ \pi (\theta )\$ is non-decreasing.

### Uniformly most powerful tests: The Karlin–Rubin theorem

Monotone likelihood functions are used to construct uniformly most powerful tests, according to the Karlin–Rubin theorem. Consider a scalar measurement having a probability density function parameterized by a scalar parameter $\ \theta \ ,$ and define the likelihood ratio $\ \ell (x)={\frac {f_{\theta _{1}}(x)}{\ f_{\theta _{0}}(x)\ }}~.$ If $\ \ell (x)\$ is monotone non-decreasing, in $\ x\ ,$ for any pair $\ \theta _{1}\geq \theta _{0}\$ (meaning that the greater $\ x\$ is, the more likely $\ H_{1}\$ is), then the threshold test:
    $\ \varphi (x)={\begin{cases}1&{\text{if }}x>x_{0}\\0&{\text{if }}x<x_{0}\end{cases}}\$
    where $\ x_{0}\$ is chosen so that $\ \operatorname {\mathbb {E} } {\bigl \\ \varphi (X)\ {\big |}\ \theta _{0}\ {\bigr \}}=\alpha \$
is the UMP test of size $\ \alpha \$ for testing $\ H_{0}\ :\ \theta \leq \theta _{0}~~$ vs. $~~H_{1}:\theta >\theta _{0}~.$
Note that exactly the same test is also UMP for testing $\ H_{0}\ :\ \theta =\theta _{0}~~$ vs. $~~H_{1}:\theta >\theta _{0}~.$

### Median unbiased estimation

Monotone likelihood-functions are used to construct median-unbiased estimators, using methods specified by Johann Pfanzagl and others. One such procedure is an analogue of the Rao–Blackwell procedure for mean-unbiased estimators: The procedure holds for a smaller class of probability distributions than does the Rao–Blackwell procedure for mean-unbiased estimation but for a larger class of loss functions.$^{:713}$

### Lifetime analysis: Survival analysis and reliability

If a family of distributions $\ f_{\theta }(x)\$ has the monotone likelihood ratio property in $\ T(X)\ ,$
* the family has monotone decreasing hazard rates in $\ \theta \$ (but not necessarily in $\ T(X)\$)
* the family exhibits the first-order (and hence second-order) stochastic dominance in $\ x\ ,$ and the best Bayesian update of $\ \theta \$ is increasing in $T(X)$.
But not conversely: neither monotone hazard rates nor stochastic dominance imply the MLRP.

#### Proofs

Let distribution family $\ f_{\theta }\$ satisfy MLR in $\ x\ ,$ so that for $\ \theta _{1}>\theta _{0}\$ and $\ x_{1}>x_{0}\ :$
    $\ {\frac {f_{\theta _{1}}(x_{1})}{\ f_{\theta _{0}}(x_{1})\ }}\geq {\frac {\ f_{\theta _{1}}(x_{0})\ }{f_{\theta _{0}}(x_{0})}}\ ,$
or equivalently:
    $\ f_{\theta _{1}}(x_{1})\ f_{\theta _{0}}(x_{0})\geq f_{\theta _{1}}(x_{0})\ f_{\theta _{0}}(x_{1})~.$
Integrating this expression twice, we obtain:
| 1. To $\ x_{1}\$ with respect to $\ x_{0}\$ ${\begin{aligned}&\int _{\min X}^{x_{1}}\ f_{\theta _{1}}(x_{1})\ f_{\theta _{0}}(x_{0})\ \mathrm {d} x_{0}\\[6pt]\geq&\int _{\min X}^{x_{1}}\ f_{\theta _{1}}(x_{0})\ f_{\theta _{0}}(x_{1})\ \mathrm {d} x_{0}\end{aligned}}$ integrate and rearrange to obtain ${\frac {f_{\theta _{1}}(x)}{\ f_{\theta _{0}}(x)\ }}\geq {\frac {F_{\theta _{1}}(x)}{\ F_{\theta _{0}}(x)\ }}\$ | 2. From $x_{0}$ with respect to $\ x_{1}\$ ${\begin{aligned}&\int _{x_{0}}^{\max X}\ f_{\theta _{1}}(x_{1})\ f_{\theta _{0}}(x_{0})\ \mathrm {d} x_{1}\\[6pt]\geq&\int _{x_{0}}^{\max X}\ f_{\theta _{1}}(x_{0})\ f_{\theta _{0}}(x_{1})\ \mathrm {d} x_{1}\end{aligned}}$ integrate and rearrange to obtain ${\frac {1-F_{\theta _{1}}(x)}{\ 1-F_{\theta _{0}}(x)\ }}\geq {\frac {f_{\theta _{1}}(x)}{\ f_{\theta _{0}}(x)\ }}\$ |

#### First-order stochastic dominance

Combine the two inequalities above to get first-order dominance:
    $F_{\theta _{1}}(x)\leq F_{\theta _{0}}(x)~\forall x\$

#### Monotone hazard rate

Use only the second inequality above to get a monotone hazard rate:
    $\ {\frac {f_{\theta _{1}}(x)}{\ 1-F_{\theta _{1}}(x)\ }}\leq {\frac {f_{\theta _{0}}(x)}{\ 1-F_{\theta _{0}}(x)\ }}~\forall x\$

## Uses
### Economics

The MLR is an important condition on the type distribution of agents in mechanism design and economics of information, where Paul Milgrom defined "favorableness" of signals (in terms of stochastic dominance) as a consequence of MLR. Most solutions to mechanism design models assume type distributions that satisfy the MLR to take advantage of solution methods that may be easier to apply and interpret.