Ratio estimator

From HandWiki

The ratio estimator is a statistical estimator for the ratio of means of two random variables. Ratio estimates are biased and corrections must be made when they are used in experimental or survey work. The ratio estimates are asymmetrical and symmetrical tests such as the t test should not be used to generate confidence intervals. The bias is of the order O(1/n) (see big O notation) so as the sample size (n) increases, the bias will asymptotically approach 0. Therefore, the estimator is approximately unbiased for large sample sizes.

Definition

Assume there are two characteristics – x and y – that can be observed for each sampled element in the data set. The ratio R is

[math]\displaystyle{ R = \bar{\mu}_y / \bar{\mu}_x }[/math]

The ratio estimate of a value of the y variate (θy) is

[math]\displaystyle{ \theta_y = R \theta_x }[/math]

where θx is the corresponding value of the x variate. θy is known to be asymptotically normally distributed.[1]

Statistical properties

The sample ratio (r) is estimated from the sample

[math]\displaystyle{ r = \frac{ \bar{ y } }{ \bar{ x } } = \frac{ \sum_{ i = 1 }^n y }{ \sum_{ i = 1 }^n x } }[/math]

That the ratio is biased can be shown with Jensen's inequality as follows (assuming independence between x and y):

[math]\displaystyle{ E\left( \frac{ y }{ x } \right) = E\left( y \frac{ 1 }{ x } \right) = E( y )E\left( \frac{ 1 }{ x } \right) \ge E(y)\frac{ 1 }{ E( x ) } = \frac{ E( y )}{ E( x ) } }[/math]

Under simple random sampling the bias is of the order O( n−1 ). An upper bound on the relative bias of the estimate is provided by the coefficient of variation (the ratio of the standard deviation to the mean).[2] Under simple random sampling the relative bias is O( n−1/2 ).

Correction of the mean's bias

The correction methods, depending on the distributions of the x and y variates, differ in their efficiency making it difficult to recommend an overall best method. Because the estimates of r are biased a corrected version should be used in all subsequent calculations.

A correction of the bias accurate to the first order is[citation needed]

[math]\displaystyle{ r_\mathrm{ corr } = r - \frac{ s_{ x y } }{ m_x } }[/math]

where mx is the mean of the variate x and sxy is the covariance between x and y.

To simplify the notation sxy will be used subsequently to denote the covariance between the variates x and y.

Another estimator based on the Taylor expansion is[3]

[math]\displaystyle{ r_\mathrm{ corr } = r - ( 1 - \frac{ n - 1 }{ N - 1 } ) \frac{ r s_x^2 - s_{ x y } }{ n m_x^2 } }[/math]

where n is the sample size, N is the population size, mx is the mean of the x variate and sx2 and sy2 are the sample variances of the x and y variates respectively.

A computationally simpler but slightly less accurate version of this estimator is

[math]\displaystyle{ r_\mathrm{ corr } = r - \frac{ N - n }{ N } \frac{ r s_x^2 - s_{ x y } }{ n m_x^2 } }[/math]

where N is the population size, n is the sample size, mx is the mean of the x variate and sx2 and sy2 are the sample variances of the x and y variates respectively. These versions differ only in the factor in the denominator (N - 1). For a large N the difference is negligible.

If x and y are unitless counts with Poisson distribution a second-order correction is[4]

[math]\displaystyle{ r_\mathrm{ corr } = r \left[ 1 + \frac{ 1 }{ n } \left( \frac{ 1 }{ m_x } - \frac{ s_{ xy } }{ m_x m_y } \right) + \frac{ 1 }{ n^2 } \left( \frac{ 2 }{ m_x^2 } - \frac{ s_{ xy } }{ m_x m_y } \left[ 2 + \frac{ 3 }{ m_x } \right] + \frac{ s_{ x^2 y } }{ m_x^2 m_y } \right) \right] }[/math]

Other methods of bias correction have also been proposed. To simplify the notation the following variables will be used

[math]\displaystyle{ \theta = \frac{ 1 }{ n } - \frac{ 1 }{ N } }[/math]
[math]\displaystyle{ c_x^2 = \frac{ s_x^2 }{ m_x^2 } }[/math]
[math]\displaystyle{ c_{ xy } = \frac{ s_{xy} }{ m_x m_y } }[/math]

Pascual's estimator:[5]

[math]\displaystyle{ r_\mathrm{ corr } = r + \frac{ N - 1 }{ N } \frac{ m_y - r m_x }{ n - 1 } }[/math]

Beale's estimator:[6]

[math]\displaystyle{ r_\mathrm{ corr } = r \frac{ 1 + \theta c_{ xy } }{ 1 + \theta c_x^2 } }[/math]

Tin's estimator:[7]

[math]\displaystyle{ r_\mathrm{ corr } = r \left( 1 + \theta \left( c_{ xy } - c_x^2 \right) \right) }[/math]

Sahoo's estimator:[8]

[math]\displaystyle{ r_\mathrm{ corr } = \frac{ r }{ 1 + \theta ( c_x^2 - c_{ xy } ) } }[/math]

Sahoo has also proposed a number of additional estimators:[9]

[math]\displaystyle{ r_\mathrm{ corr } = r ( 1 + \theta c_{ xy } ) ( 1 - \theta c_x^2 ) }[/math]
[math]\displaystyle{ r_\mathrm{ corr } = \frac{ r ( 1 - \theta c_x^2 ) }{ 1 - \theta c_{ xy } } }[/math]
[math]\displaystyle{ r_\mathrm{ corr } = \frac{ r }{ ( 1 + \theta c_{ xy } )( 1 + \theta c_x^2 ) } }[/math]

If x and y are unitless counts with Poisson distribution and mx and my are both greater than 10, then the following approximation is correct to order O( n−3 ).[4]

[math]\displaystyle{ r_\mathrm{corr} = r \left[ 1 - \frac{ 2 }{ n^2 m_x } \left( \frac{ 1 }{ m_x } - \frac{ s_{ xy } }{ m_x m_y } \right) \left( 1 + \frac{ 13 }{ 2n } + \frac{ 8 }{ n m_x } \right) \right] }[/math]

An asymptotically correct estimator is[3]

[math]\displaystyle{ r_\mathrm{ corr } = r + c_x^2 \frac{ m_y }{ m_x } - \frac{ s_{ xy } }{ m_x^2 } }[/math]

Jackknife estimation

A jackknife estimate of the ratio is less biased than the naive form. A jackknife estimator of the ratio is

[math]\displaystyle{ r_\mathrm{corr} = nr - \frac{ n - 1 }{ n } \sum_{ i \ne j = 1 }^n r_i }[/math]

where n is the size of the sample and the ri are estimated with the omission of one pair of variates at a time.[10]

An alternative method is to divide the sample into g groups each of size p with n = pg.[11] Let ri be the estimate of the ith group. Then the estimator

[math]\displaystyle{ r_\mathrm{corr} = gr - \frac{ g - 1 }{ g } \sum_{ i = 1 }^g r_i = g \left(r - \bar{ r } \right) + \bar{ r } }[/math]

where [math]\displaystyle{ \bar{ r } }[/math] is the mean of the ratios rg of the g groups, has a bias of at most O( n−2 ).

Other estimators based on the division of the sample into g groups are:[12]

[math]\displaystyle{ r_\mathrm{ corr } = \frac{ g }{ g + 1 } r - \frac{ 1 }{ g ( g - 1 ) } \sum_{ i = 1 }^g r_i }[/math]
[math]\displaystyle{ r_\mathrm{ corr } = \bar{ r } +\frac{ n }{ n - 1 } \frac{ m_y - \bar{ r } m_x }{ m_x } }[/math]
[math]\displaystyle{ r_\mathrm{ corr } = \bar{ r_g } + \frac{ g ( m_y - \bar{ r_g } m_x ) }{ m_x } }[/math]

where [math]\displaystyle{ \bar{ r } }[/math] is the mean of the ratios rg of the g groups and

[math]\displaystyle{ \bar{ r_g } = \sum \frac{ r_i' }{ g } }[/math]

where ri' is the value of the sample ratio with the ith group omitted.

Other methods of estimation

Other methods of estimating a ratio estimator include maximum likelihood and bootstrapping.[10]

Estimate of total

The estimated total of the y variate ( τy ) is

[math]\displaystyle{ \tau_y = r \tau_x }[/math]

where ( τx ) is the total of the x variate.

Variance estimates

The variance of the sample ratio is approximately:

[math]\displaystyle{ \operatorname{ var }( r ) = \frac{ 1 }{ s_x^2 + m_x^2 } \left[ ( s_y^2 - s_{ x^2 [ y^2 / x^2 ] } ) - ( s_{ x [ y / x ] } )^2 +2 m_y s_{ x[ y / x ] } - \frac{ s_x^2 }{ m_x^2 }( m_y - s_{ x[ y / x ] }^2) \right] }[/math]

where sx2 and sy2 are the variances of the x and y variates respectively, mx and my are the means of the x and y variates respectively and sxy is the covariance of x and y.

Although the approximate variance estimator of the ratio given below is biased, if the sample size is large, the bias in this estimator is negligible.

[math]\displaystyle{ \operatorname{ var }( r ) = \frac{1}{n} \frac{ N - n }{ N } \frac{ 1 }{ m_x^2 } \frac{ \sum_{ i = 1 }^n( y_i - rx_i ) ^2}{ n - 1 } }[/math]

where N is the population size, n is the sample size and mx is the mean of the x variate.

Another estimator of the variance based on the Taylor expansion is

[math]\displaystyle{ \operatorname{ var }( r ) = \frac{ 1 }{ n } ( 1 - \frac{ n - 1 }{ N - 1 } ) \frac{ r^2 s_x^2 + s_y^2 - 2 r s_{ xy } }{ m_x^2 } }[/math]

where n is the sample size and N is the population size and sxy is the covariance of x and y.

An estimate accurate to O( n−2 ) is[3]

[math]\displaystyle{ \operatorname{ var }( r ) = \frac{ 1 }{ n }\left[ \frac{ s_y^2 }{ m_x^2 } + \frac{ m_y^2 s_x^2 }{ m_x^4 } - \frac{ 2m_y s_{ xy } }{ m_x^3 } \right] }[/math]

If the probability distribution is Poissonian, an estimator accurate to O( n−3 ) is[4]

[math]\displaystyle{ \operatorname{ var }( r ) = r^2 \left[ \frac{ 1 }{ n } \left( \frac{ 1 }{ m_x } + \frac{ 1 }{ m_y } - \frac{ 2 s_{ xy } }{ m_x m_y } \right) + \frac{ 1 }{ n^2 } \left( \frac{ 6 }{ m_x^2 } + \frac{ 3 }{ m_x m_y } + s_{ xy }\left[ \frac{ 4 }{ m_y^2 } - \frac{ 8 }{ m_x m_y } - \frac{ 16 }{ m_x^2 m_y } + \frac{ 5 s_{ xy } }{ m_x^2 m_y^2 } \right] + \frac{ 4 s_{ x^2 y } }{ m_x^2 m_y } - \frac{ 2 s_{ x y^2 }}{ m_x m_y^2 } \right) \right] }[/math]

A jackknife estimator of the variance is

[math]\displaystyle{ \operatorname{ var }( r ) = \frac{ (n-1) }{ n } \sum_{ i = 1 }^n ( r_i - r_J )^2 }[/math]

where ri is the ratio with the ith pair of variates omitted and rJ is the jackknife estimate of the ratio.[10]

Variance of total

The variance of the estimated total is

[math]\displaystyle{ \operatorname{ var }( \tau_y ) = \tau_y^2 \operatorname{ var }( r ) }[/math]

Variance of mean

The variance of the estimated mean of the y variate is

[math]\displaystyle{ \operatorname{ var }( \bar{ y } ) = m_x^2 \operatorname{ var }( r ) = \frac{ N - n }{ N } \frac{ \sum_{ i = 1 }^n( y_i - rx_i )^2 }{ n - 1 } = \frac{ N - n }{ N } \frac{ ( s_y^2 +r^2 s_x^2 - 2r s_{ xy } ) }{ n } }[/math]

where mx is the mean of the x variate, sx2 and sy2 are the sample variances of the x and y variates respectively and sxy is the covariance of x and y.

Skewness

The skewness and the kurtosis of the ratio depend on the distributions of the x and y variates. Estimates have been made of these parameters for normally distributed x and y variates but for other distributions no expressions have yet been derived. It has been found that in general ratio variables are skewed to the right, are leptokurtic and their nonnormality is increased when magnitude of the denominator's coefficient of variation is increased.

For normally distributed x and y variates the skewness of the ratio is approximately[7]

[math]\displaystyle{ \gamma = \left( \frac{ m_y \omega }{ \sqrt{ n m_x m_y \omega^2 + m_x^2 m_y } } \right)\left( 6 + \frac{ 1 }{ n m_x } \left[ 44 + \frac{ 1 }{ 1 + \omega^2 m_y / m_x } \right] \right) }[/math]

where

[math]\displaystyle{ \omega = 1 - m_x \operatorname{cov}( x, y ) }[/math]

Effect on confidence intervals

Because the ratio estimate is generally skewed confidence intervals created with the variance and symmetrical tests such as the t test are incorrect.[10] These confidence intervals tend to overestimate the size of the left confidence interval and underestimate the size of the right.

If the ratio estimator is unimodal (which is frequently the case) then a conservative estimate of the 95% confidence intervals can be made with the Vysochanskiï–Petunin inequality.

Alternative methods of bias reduction

An alternative method of reducing or eliminating the bias in the ratio estimator is to alter the method of sampling. The variance of the ratio using these methods differs from the estimates given previously. Note that while many applications such as those discussion in Lohr[13] are intended to be restricted to positive integers only, such as sizes of sample groups, the Midzuno-Sen method works for any sequence of positive numbers, integral or not. It's not clear what it means that Lahiri's method works since it returns a biased result.

Lahiri's method

The first of these sampling schemes is a double use of a sampling method introduced by Lahiri in 1951.[14] The algorithm here is based upon the description by Lohr.[13]

  1. Choose a number M = max( x1, ..., xN) where N is the population size.
  2. Choose i at random from a uniform distribution on [1,N].
  3. Choose k at random from a uniform distribution on [1,M].
  4. If kxi, then xi is retained in the sample. If not then it is rejected.
  5. Repeat this process from step 2 until the desired sample size is obtained.

The same procedure for the same desired sample size is carried out with the y variate.

Lahiri's scheme as described by Lohr is biased high and, so, is interesting only for historical reasons. The Midzuno-Sen technique described below is recommended instead.

Midzuno-Sen's method

In 1952 Midzuno and Sen independently described a sampling scheme that provides an unbiased estimator of the ratio.[15][16]

The first sample is chosen with probability proportional to the size of the x variate. The remaining n - 1 samples are chosen at random without replacement from the remaining N - 1 members in the population. The probability of selection under this scheme is

[math]\displaystyle{ P = \frac{ \sum x_i } { { N - 1 \choose n - 1 } X } }[/math]

where X is the sum of the N x variates and the xi are the n members of the sample. Then the ratio of the sum of the y variates and the sum of the x variates chosen in this fashion is an unbiased estimate of the ratio estimator.

In symbols we have

[math]\displaystyle{ r = \frac { \sum y_i }{ \sum x_i } }[/math]

where xi and yi are chosen according to the scheme described above.

The ratio estimator given by this scheme is unbiased.

Särndal, Swensson, and Wretman credit Lahiri, Midzuno and Sen for the insights leading to this method[17] but Lahiri's technique is biased high.


Other ratio estimators

Tin (1965)[18] described and compared ratio estimators proposed by Beale (1962)[19] and Quenouille (1956)[20] and proposed a modified approach (now referred to as Tin's method). These ratio estimators are commonly used to calculate pollutant loads from sampling of waterways, particularly where flow is measured more frequently than water quality. For example see Quilbe et al., (2006)[21]


Ordinary least squares regression

If a linear relationship between the x and y variates exists and the regression equation passes through the origin then the estimated variance of the regression equation is always less than that of the ratio estimator[citation needed]. The precise relationship between the variances depends on the linearity of the relationship between the x and y variates: when the relationship is other than linear the ratio estimate may have a lower variance than that estimated by regression.

Uses

Although the ratio estimator may be of use in a number of settings it is of particular use in two cases:

  • when the variates x and y are highly correlated through the origin.
  • In survey methodology when estimating a weighted average in which the denominator indicates the sum of weights that reflect the total population size, but the total population size is unknown.

History

The first known use of the ratio estimator was by John Graunt in England who in 1662 was the first to estimate the ratio y/x where y represented the total population and x the known total number of registered births in the same areas during the preceding year.

Later Messance (~1765) and Moheau (1778) published very carefully prepared estimates for France based on enumeration of population in certain districts and on the count of births, deaths and marriages as reported for the whole country. The districts from which the ratio of inhabitants to birth was determined only constituted a sample.

In 1802, Laplace wished to estimate the population of France. No population census had been carried out and Laplace lacked the resources to count every individual. Instead he sampled 30 parishes whose total number of inhabitants was 2,037,615. The parish baptismal registrations were considered to be reliable estimates of the number of live births so he used the total number of births over a three-year period. The sample estimate was 71,866.333 baptisms per year over this period giving a ratio of one registered baptism for every 28.35 persons. The total number of baptismal registrations for France was also available to him and he assumed that the ratio of live births to population was constant. He then used the ratio from his sample to estimate the population of France.

Karl Pearson said in 1897 that the ratio estimates are biased and cautioned against their use.[22]

See also

References

  1. Scott AJ, Wu CFJ (1981) On the asymptotic distribution of ratio and regression estimators. JASA 76: 98–102
  2. Cochran WG (1977) Sampling techniques. New York: John Wiley & Sons
  3. 3.0 3.1 3.2 van Kempen GMP, van Vliet LJ (2000) Mean and variance of ratio estimators used in fluorescence ratio imaging. Cytometry 39:300–305
  4. 4.0 4.1 4.2 Ogliore RC, Huss GR, Nagashima K (2011) Ratio estimation in SIMS analysis. Nuclear Instruments and Methods in Physics Research Section B: Beam Interactions with Materials and Atoms 269 (17) 1910–1918
  5. Pascual JN (1961) Unbiased ratio estimators in stratified sampling. JASA 56(293):70–87
  6. Beale EML (1962) Some use of computers in operational research. Industrielle Organization 31: 27-28
  7. 7.0 7.1 Tin M (1965) Comparison of some ratio estimators. JASA 60: 294–307
  8. Sahoo LN (1983). On a method of bias reduction in ratio estimation. J Statist Res 17:1—6
  9. Sahoo LN (1987) On a class of almost unbiased estimators for population ratio. Statistics 18: 119-121
  10. 10.0 10.1 10.2 10.3 Choquet D, L'ecuyer P, Léger C (1999) Bootstrap confidence intervals for ratios of expectations. ACM Transactions on Modeling and Computer Simulation - TOMACS 9 (4) 326-348 doi:10.1145/352222.352224
  11. Durbin J (1959) A note on the application of Quenouille's method of bias reduction to estimation of ratios. Biometrika 46: 477-480
  12. Mickey MR (1959) Some finite population unbiased ratio and regression estimators. JASA 54: 596–612
  13. 13.0 13.1 Lohr S (2010) Sampling - Design and Analysis (2nd edition)
  14. Lahiri DB (1951) A method of sample selection providing unbiased ratio estimates. Bull Int Stat Inst 33: 133–140
  15. Midzuno H (1952) On the sampling system with probability proportional to the sum of the sizes. Ann Inst Stat Math 3: 99-107
  16. Sen AR (1952) Present status of probability sampling and its use in the estimation of a characteristic. Econometrika 20-103
  17. Särndal, C-E, B Swensson J Wretman (1992) Model assisted survey sampling. Springer, §7.3.1 (iii)
  18. Tin M (1965). Comparison of Some Ratio Estimators. Journal of the American Statistical Association, 60(309), 294–307. https://doi.org/10.1080/01621459.1965.10480792
  19. Beale EML (1965) Some use of computers in operational research. Industrielle organisation 31:27-8
  20. Quenouille R Rousseau AN Duchemin M Poulin A Gangbazo G Villeneuve J-P (2006) Selecting a calculation method to estimate sediment and nutrient loads in streams: application to the Beaurivage River (Quebec, Canada). Journal of Hydrology 326:295-310
  21. Quilbé, R., Rousseau, A. N., Duchemin, M., Poulin, A., Gangbazo, G., & Villeneuve, J. P. (2006). Selecting a calculation method to estimate sediment and nutrient loads in streams: Application to the Beaurivage River (Québec, Canada). Journal of Hydrology, 326(1–4), 295–310. https://doi.org/10.1016/j.jhydrol.2005.11.008
  22. Pearson K (1897) On a form of spurious correlation that may arise when indices are used for the measurement of organs. Proc Roy Soc Lond 60: 498