PLoS ONE
Home A new regression model for bounded response variable: An alternative to the beta and unit-Lindley regression models
A new regression model for bounded response variable: An alternative to the beta and unit-Lindley regression models
A new regression model for bounded response variable: An alternative to the beta and unit-Lindley regression models

Competing Interests: The authors have declared that no competing interests exist.

Article Type: Research Article Article History
  • Altmetric
Abstract

A new distribution defined on (0,1) interval is introduced. Its probability density and cumulative distribution functions have simple forms. Thanks to its simple forms, the moments, incomplete moments and quantile function of the proposed distribution are derived and obtained in explicit forms. Four parameter estimation methods are used to estimate the unknown parameter of the distribution. Besides, simulation study is implemented to compare the efficiencies of these parameter estimation methods. More importantly, owing to the proposed distribution, we provide an alternative regression model for the bounded response variable. The proposed regression model is compared with the beta and unit-Lindley regression models based on two real data sets.

Altun,El-Morshedy,Eliwa,and Chen: A new regression model for bounded response variable: An alternative to the beta and unit-Lindley regression models

1 Introduction

In the last decade, modeling of the bounded data sets is increased its popularity. These kinds of data sets appear in many fields such as finance, actuarial and medical sciences. The statistics literature has very limited distributions defined on (0,1). The best known distributions defined on (0,1) are beta, Topp-Leone by Topp and Leone [1] and Kumaraswamy by Kumaraswamy [2] distributions. To increase the modeling accuracy of the data sets on (0,1), several distributions have been proposed by researchers. For instance, the unit-Lindley by Mazucheli et al. [3], unit-inverse Gaussian by Ghitany et al. [4], unit-Birnbaum-Saunders by Mazucheli et al. [5], exponentiated Topp-Leone by Pourdarvish et al. [6], transmuted Kumaraswamy by Khan et al. [7], log-xgamma by Altun and Hamedani [8], log-weighted exponential by Altun [9] and unit-improved second-degree Lindley by Altun and Cordeiro [10].

Although the beta distribution is widely used to model data sets on bounded interval, it has deficiency to model extremely left-skewed and leptokurtic data sets. The moments of the Topp-Leone distribution are not in explicit forms which is important to make appropriate parametrization on the density function for regression modeling. Additionally, even if the moments of the Kumaraswamy distribution are in explicit forms, they contains gamma function which destroys the re-parametrization of the density function. We aim to introduce a new distribution on (0,1) interval to remove the deficiencies of the existing distributions for modeling the extremely skewed data sets. The Bilal distribution introduced by Abd-Elrahman [11] is used to generate a new distribution employing the appropriate transformation. The resulting distribution is called as log-Bilal distribution since we use Y = exp(−X) transformation. After obtaining the log-Bilal distribution, we obtain its statistical properties such as moments, incomplete moments and quantile function. The important question is that do we need this distribution? To answer this question, we summarize the importance of the log-Bilal distribution: (i) the log-Bilal distribution has simple and closed-form expressions for its statistical functions (ii) the properties of the log-Bilal distribution are derived in explicit forms without any special mathematical functions, (iii) the proposed distribution provides more flexibility than existing distributions for the shapes of hazard rate function, (iv) thanks to its simple mathematical functions, we introduce a new regression model based on the log-Bilal density to model the extremely skewed dependent variables with associated covariates.

We summarize the concepts of the remaining sections: the moments, incomplete moments, quantile function, and exponential family property of the log-Bilal distribution are obtained in the next section. Section 3 is devoted to the parameter estimation methods. The efficiencies of these methods are compared in Section 4. The log-Bilal regression model is introduced in Section 5. Section 6 contains the results of the data analysis. The paper is ended with concluding remarks in Section 7.

2 The log-Bilal distribution

Let random variable (rv) X represents the Bilal distribution which has the following probability density function (pdf)

where θ > 0 is the scale parameter. The cumulative distribution function (cdf) of X is

Following the idea of Altun and Hamedani [8] and Altun [9] and using the Y = exp(−X) transformation on the Bilal distribution, the pdf of the log-Bilal distribution is

where θ > 0. Here, the parameter θ behaves like a shape parameter by contrast with the Bilal distribution. From now on, the rv Y having density (3) is stated as Y ∼ log- Bilal(θ). The cdf of Y (for 0 ≤ y ≤ 1) is

Some possible pdf shapes of the log-Bilal distribution are displayed in Fig 1. From these figures, it is clear that the proposed distribution can be used to model the different types of the data sets defined on the unit-interval such as right and left skewed as well as nearly symmetric data sets.

The pdf shapes of the log-Bilal distribution.
Fig 1

The pdf shapes of the log-Bilal distribution.

The survival function (sf) and hazard rate function (hrf) of Y are, respectively,

Fig 2 displays hrf shapes of the log-Bilal distribution. As seen from these plots, the hrf shapes of the log-Bilal distribution can be increasing and bathtub. The right side of Fig 2 gives information about the hrf regions of the log-Bilal regression according to the different values of the parameter θ.

The hrf plots (left) and hrf regions (right) of log-Bilal distribution for selected parameter values.
Fig 2

The hrf plots (left) and hrf regions (right) of log-Bilal distribution for selected parameter values.

The quantile function of Y is given by

where 0 < u < 1. Using (7), we have the following algorithm to generate random variables from the log-Bilal distribution.

Algorithm 1 Generating random variables from log- Bilal(θ) distribution

1. Set the parameter θ,

2. Generate uiU(0, 1),

3. Calculate Xi=2θ(1+(1+2ui2-ui-2ui)1/3+1(1+2ui2-ui-2ui)1/3)θ

4. Repeat steps 2 and 3 n times.

2.1 Moments

The kth raw moment of Y is

Using (8), the first and second raw moments of Y are given, respectively, by

The variance of Y is obtained from the its first and second raw moments as

It is easy to conclude that the mean and variance of the log-Bilal distribution decreases when the parameter θ increases.

2.2 Incomplete moments

The rth incomplete moment of Y is

The incomplete moments of random variables are important tools to measure the inequalities like Gini measure (see, Butler and McDonald [12] for details).

2.3 Exponential family

The pdf of any distribution should be expressed in the following form to be a member of exponential family.

The pdf of the the log-Bilal distribution can be expressed as follows

where Q(θ) = (2/θ − 1), T(y) = log (y), S(y) = log (1 − y1/θ) and D(θ) = log(6/θ). Therefore, the log-Bilal distribution is a member of exponential family. Here, T(y)=i=1nlog(yi) is the sufficient statistic for the parameter θ.

3 Estimation

We use four estimation methods to discuss the parameter estimation process of the log-Bilal distributions. These estimation methods are maximum likelihood estimation (MLE), method of moments (MM), least squares estimation (LSE) and weighted least squares estimation (WLSE). Detailed pieces of information on these estimation methods are given in the rest of this section.

3.1 Maximum likelihood

Let y1, …, yn be a random sample from the log- Bilal distribution. The log-likelihood function of the log-Bilal distribution is

where y¯=i=1nyi/i=1nyinn. By differentiating (10) with respect to θ gives

The MLE of θ, say, θ^, is the solution of (11) for zero. There is no explicit form solution for (11). Therefore, it should be solved iteratively or direct maximization of (10) can be viewed as the other choice. Here, the direct maximization of (10) is preferred by using the optim function of R software.

3.2 Method of moments

The MM estimation method is a popular method when the raw moments of the distribution have simple forms. The MM estimator of θ can be easily obtained by equating the first theoretical moment of the log-Bilal distribution to the sample mean, which gives

where y¯=i=1nyi/i=1nyinn.

3.3 Least squares

Assume that the y(1), …, y(n) be ordered sample of y1, …, yn following the log-Bilal distribution. The LSE of θ is obtained by minimizing

where F(y(i);θ) is in (4). Then, we have

3.4 Weighted least squares

The minimization of the below function gives the WLSE of the parameter θ.

4 Simulation

We compare the efficiencies of the MLE, MM, LSE and WLSE methods in estimating the parameter of the log-Bilal distribution. The algorithm given in Section 2 is used to generate random variables from the log-Bilal distribution. The simulation results are interpreted based on the following quantities.

These kind of statistical measures such as means square erros (MSEs) and mean relative errors (MREs) are used to compare the different approaches deciding the best model under pre-determined scenarios (see, Zeng et al., [13, 14]). The statistical software R is used to obtain numerical results for the simulation study. We choose the parameter value θ = 1.7, the simulation replication is N = 10, 000 and the sample size is n = 20, 25, 30, …, 300. If the estimation methods yield an asymptotically unbiased estimation of θ, we expect to see that MSEs and biases approach the zero. On the other hand, MREs should be near the one. The simulation results are displayed in Fig 3. As seen from these figures, MLE method approaches the desired values of biases, MSEs and MREs faster than other estimation methods. Therefore, MLE method is more appropriate than other methods for estimating the parameter of the log-Bilal distribution.

The simulation results of the log-Bilal distribution.
Fig 3

The simulation results of the log-Bilal distribution.

5 The log-Bilal regression model

Now, we introduce a new regression model for bounded response variable as an alternative to the beta and unit-Lindley regression models. Let θ = 2−1({μ/(μ + 24)}−1/2 − 5), then the pdf of log-Bilal distribution takes the form

where 0 < y < 1, 0 < μ < 1 and E(Y|μ) = μ. The logit link function is used to link the covariates to the mean of response variable, as follows,
where xiT=(xi1,xi2,,xip) is the vector of covariates and β = (β0, β1, β2, …, βk)T is the vector of unknown regression coefficients. Substituting μi in (13) with (14), the log-likelihood function of the log-Bilal regression model is
where μi is given by (14). The unknown vector of regression parameters, β, is estimated by minimizing the negative value of (15) which is equivalent to the maximization of (15). The standard errors of the estimated parameters are obtained by means of observed information matrix whose elements can be calculated numerically with fdHess function of R software.

5.1 Residuals analysis

To check the model accuracy of the fitted log-Bilal regression model, the randomized quantile residuals introduced by Dunn and Smyth [15] is used. The randomized quantile residuals are given by

where u^i=F(yi;β^) and Φ−1(z) is the inverse of the standard normal cdf. When the fitted model is valid for the used data set, ri is normally distributed with zero mean and unit variance.

6 Empirical studies

In this section, the log-Bilal distribution and log-Bilal regression model are compared with existing models. Two real data set are analyzed to prove the usefulness of proposed distribution in modeling the real data sets.

6.1 Dwellings without basic facilities

Better Life Index (BLI) is calculated for the OECD countries as well as Brazil, Russia and South Africa to compare the countries based on 12 indicators which effect the quality of the life. Here, we use one of the variable of BLI measured in the year of 2017, dwellings without basic facilities which is defined as a percentage of the population living in a dwelling without indoor flushing toilet. The data set is available at https://stats.oecd.org/index.aspx?DataSetCode=BLI. This data set is used to compare the real data modeling performance of the log-Bilal distribution with the following competitive models: beta, Kumaraswamy, Topp-Leone and unit-Lindley.

The competitive distributions as well as the log-Bilal distribution are fitted to the data used by means of R software. After fitting the distribution to data, the MLEs of the parameters of the fitted distributions with their standard errors (SEs) are obtained. Besides, the formal goodness-of-fit tests such as Kolmogorov-Smirnov (K-S), Cramér-von Mises (W*) and Anderson-Darling (A*) are applied to decide the suitability of the distributions on the data used. Akaike Information Criteria (AIC) and Bayesian Information Criteria (BIC) are widely used criteria to choose the best statistical model. These statistics are used for comparison of the fitted models and selection of the best model (see, Chen et al., [16, 17]).

Table 1 shows the MLEs of the parameters for the fitted models to the dwellings without basic facilities data, corresponding SEs, and goodness-of-fit statistics as well as AIC and BIC values. As seen from the results of K-S tests with corresponding p-values, the all fitted distributions, except the unit-Lindley, provide adequate fits. However, the log-Bilal distribution has the lowest values of the AIC, BIC, A* and W* statistics which indicate that the proposed distribution is the best choice for the data used.

Table 1
The estimated parameters of the fitted models (SEs are on the second line).
ModelsParameter estimationsAICBICA*W*K-Sp-value
Beta(α, β)0.28471.4017-114.1408-110.86571.88180.25460.20320.0868
0.05180.3917
Kumaraswamy(α, β)0.33671.6076-117.0740-113.79881.74230.23170.16100.2785
0.05990.3519
Topp-Leone(θ)0.3069-112.9418-111.30422.20260.30740.18670.1414
0.0498
unit-Lindley(λ)0.0732492.8384494.47607.97001.48920.9699<0.001
0.0084
log-Bilal(λ)4.7063-118.9374-117.29981.70320.22540.15040.3567
0.5491

Fig 4 displays the estimated densities of the models on the histogram of data and estimated functions of the log-Bilal distribution. The right panel of Fig 4 plays an important role to convince the readers in favor of log-Bilal distribution.

The estimated pdfs of the fitted distribution (left-panel) and some fitted functions of the log-Bilal distribution (right-panel).
Fig 4

The estimated pdfs of the fitted distribution (left-panel) and some fitted functions of the log-Bilal distribution (right-panel).

6.2 Education attainment

Here, the performance of the log-Bilal regression model is compared with the beta and unit-Lindley regression models. The used data set comes from the BLI of OECD countries, measured in the year of 2017. The data source is https://stats.oecd.org/index.aspx?DataSetCode=BLI.

The educational attainment values of the OECD countries (y) is considered as response (dependent) variable The goal is to explore the effects of following covariates on the conditional mean of the response variable: homicide rate (HR), dwellings without basic facilities (DWBF), and labor market insecurity (LMI). The logit link function which ensures that the estimated mean lies between 0 and 1, is used for all fitted regression models. The fitted regression model is

Table 2 lists the MLEs, SEs, and corresponding p-values, AIC and BIC for the beta, unit-Lindley, and log-Bilal regression models. The parameter φ represents the dispersion parameter of the beta regression model. Based on the figures in Table 2, all estimated regression parameters are found statistically significant for beta and log-Bilal regression models. Based on the estimated regression parameters of the log-Bilal regression model, it is concluded that when the homicide rate and labor market insecurity increase, the educational attainment decreases in the OECD countries. On the other hand, when the dwellings without basic facilities increases, the educational attainment increases in the OECD countries.

Table 2
MLEs, SEs, corresponding p-values, AIC and BIC values for the fitted models.
ParametersBetaunit-Lindleylog-Bilal
EstimateS.E.p-valueEstimateS.E.p-valueEstimateS.E.p-value
β01.92080.1570<0.00011.62630.1887<0.00012.11360.2122<0.0001
β1-0.06740.0173<0.0001-0.05430.03040.0739-0.07050.02700.0089
β20.04340.01820.01720.05210.02630.04770.07240.03400.0334
β3-10.96882.1804<0.0001-10.86072.6421<0.0001-14.81824.45540.0009
φ15.61203.5320<0.0001------
AIC-63.2794-61.7153-64.5549
BIC-55.0915-55.1649-58.0045

The information criteria, AIC and BIC statistics, are used to select the best model for the data used. Since the lowest values of the AIC and BIC statistics are belong to the log-Bilal regression model, we conclude that it is best by comparison with the beta and unit-Lindley regression models. Additionally, the residual analysis is done to evaluate the suitability of the fitted models for the data used. Fig 5 displays the quantile-quantile plots of the randomized quantile residuals. As seen from these figures, all fitted regression models provide adequate fits, but, the plotted points for the log-Bilal regression model are more closer the diagonal line than the beta and unit-Lindley regression models.

The quantile-quantile plots of the randomized quantile residuals: Beta (left), unit-Lindley (middle) and log-Bilal (right).
Fig 5

The quantile-quantile plots of the randomized quantile residuals: Beta (left), unit-Lindley (middle) and log-Bilal (right).

7 Conclusion

For the first time, a new one-parameter unit distribution is introduced for modeling the extremely left-skewed data sets measured in unit-interval. The new model provides a reasonably better fit than the other one and two-parameter unit distributions such as Topp-Leone, unit-Lindley, Kumaraswamy, and beta distributions when the data sets are extremely skewed to left (right). The newly defined regression model is compared with the famous beta regression model as well as the recently proposed unit-Lindley regression model. The results of the data analysis show that the proposed models work better than other existing models. As a future work of the presented study, we plan to introduce the quantile regression model based on the log-Bilal distribution. Additionally, we extend our model for modeling the longitudinal data sets as an alternative to the longitudinal beta regression model.

Appendix

    Beta distribution:

    Kumaraswamy distribution:

    Topp-Leone distribution:

    Unit-Lindley distribution:

References

C. W.Topp and F. CLeone. (1955). A family of J–shaped frequency functions. Journal of the American Statistical Association, 50, 209219. 10.1080/01621459.1955.10501259

PKumaraswamy. (1980). A generalized probability density function for double-bounded random processes. Journal of Hydrology, 46, 7988. 10.1016/0022-1694(80)90036-0

J.Mazucheli, A. F. B.Menezes and SChakraborty. (2019). On the one parameter unit-Lindley distribution and its associated regression model for proportion data. Journal of Applied Statistics, 46, 700714. 10.1080/02664763.2018.1511774

M. E.Ghitany, J.Mazucheli, A. F. B.Menezes and FAlqallaf. (2018). The unit-inverse Gaussian distribution: A new alternative to two-parameter distributions on the unit interval. Communications in Statistics-Theory and Methods, 119.

J.Mazucheli, A. F.Menezes and SDey. (2018). The unit-Birnbaum-Saunders distribution with applications. Chilean Journal of Statistics (ChJS), 9, 4757.

A.Pourdarvish, S. M. T. K.Mirmostafaee and KNaderi. (2015). The exponentiated Topp-Leone distribution: Properties and application. Journal of Applied Environmental and Biological Sciences, 5, 2516.

M. S.Khan, R.King and I. LHudson. (2016). Transmuted kumaraswamy distribution. Statistics in Transition new series, 17, 183210. 10.21307/stattrans-2016-013

E.Altun and G. GHamedani. (2018). The log-xgamma distribution with inference and application. Journal de la Société Française de Statistique, 159, 4055.

Altun, E. (2019). The log-weighted exponential regression model: alternative to the beta regression model. Communications in Statistics-Theory and Methods. Forthcoming.

10 

E.Altun and G. MCordeiro. (2020). The unit-improved second-degree Lindley distribution: inference and regression modeling. Computational Statistics, 35(1), 259279. 10.1007/s00180-019-00921-y

11 

A. MAbd-Elrahman. (2013). Utilizing ordered statistics in lifetime distributions production: a new lifetime distribution and applications. Journal of Probability and Statistical Science, 11, 153164.

12 

R. J.Butler and J. BMcDonald. (1989). Using incomplete moments to measure inequality. Journal of Econometrics, 42, 109119. 10.1016/0304-4076(89)90079-1

13 

Q.Zeng, H.Wen, H.Huang, X.Pei and S. CWong. (2017). A multivariate random-parameters Tobit model for analyzing highway crash rates by injury severity. Accident Analysis & Prevention, 99, 184191. 10.1016/j.aap.2016.11.018

14 

Q.Zeng, H.Wen, S. C.Wong, H.Huang, Q.Guo and XPei. (2020). Spatial joint analysis for zonal daytime and nighttime crash frequencies using a Bayesian bivariate conditional autoregressive model. Journal of Transportation Safety & Security, 12(4), 566585. 10.4271/2016-01-1439

15 

P. K.Dunn and G. KSmyth. (1996). Randomized quantile residuals. Journal of Computational and Graphical Statistics, 5, 236244. 10.1080/10618600.1996.10474708

16 

F.Chen, S.Chen and XMa. (2018). Analysis of hourly crash likelihood using unbalanced panel data mixed logit model and real-time driving environmental big data. Journal of safety research, 65, 153159. 10.1016/j.jsr.2018.02.010

17 

F.Chen, S.Chen and XMa. (2016). Crash frequency modeling using real-time environmental and traffic data and unbalanced panel data models. International journal of Environmental Research and Public Health, 13(6), 609 10.3390/ijerph13060609