ArticleslgStudy

science

Quantile regression

Quantile regression is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Quantile regression rather than just read about it. In short: Quantile regression is a type of regression analysis used in statistics and econometrics. Whereas the method of least squares estimates the conditional mean of the response variable across values of the predictor variables, quantile regression estimates the conditional median (or other quantiles) of the response variable.

Quantile regression — main illustration
Quantile regression — illustration

Key takeaways

  • Quantile regression belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Quantile regression to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Quantile regression from memory before moving on to harder problems.

Reference excerpt

Quantile regression is a type of regression analysis used in statistics and econometrics. Whereas the method of least squares estimates the conditional mean of the response variable across values of the predictor variables, quantile regression estimates the conditional median (or other quantiles) of the response variable. There is also a method for predicting the conditional geometric mean of the response variable,. Quantile regression is an extension of linear regression used when the conditions of linear regression are not met. It was introduced by Roger Koenker in 1978. As a complementary and extended approach to the least squares method, quantile regression addresses the limitations of least squares method in the presence of heteroscedasticity and ensures the robustness of quantile regression through its robustness to outliers, which compensates for the weakness of least squares method in dealing with outlier data.

Advantages and applications One advantage of quantile regression relative to ordinary least squares regression is that the quantile regression estimates are more robust against outliers in the response measurements. However, the main attraction of quantile regression goes beyond this and is advantageous when conditional quantile functions are of interest. Different measures of central tendency and statistical dispersion can be used to more comprehensively analyze the relationship between variables. In ecology, quantile regression has been proposed and used as a way to discover more useful predictive relationships between variables in cases where there is no relationship or only a weak relationship between the means of such variables. The need for and success of quantile regression in ecology has been attributed to the complexity of interactions between different factors leading to data with unequal variation of one variable for different ranges of another variable. Another application of quantile regression is in the areas of growth charts, where percentile curves are commonly used to screen for abnormal growth.

History The idea of estimating a median regression slope, a major theorem about minimizing sum of the absolute deviances and a geometrical algorithm for constructing median regression was proposed in 1760 by Ruđer Josip Bošković, a Jesuit Catholic priest from Dubrovnik. He was interested in the ellipticity of the earth, building on Isaac Newton's suggestion that its rotation could cause it to bulge at the equator with a corresponding flattening at the poles. He finally produced the first geometric procedure for determining the equator of a rotating planet from three observations of a surface feature. More importantly for quantile regression, he was able to develop the first evidence of the least absolute criterion and preceded the least squares introduced by Legendre in 1805 by fifty years. Other thinkers began building upon Bošković's idea such as Pierre-Simon Laplace, who developed the so-called "methode de situation." This led to Francis Edgeworth's plural median - a geometric approach to median regression - and is recognized as the precursor of the simplex method. The works of Bošković, Laplace, and Edgeworth were recognized as a prelude to Roger Koenker's contributions to quantile regression. Median regression computations for larger data sets are quite tedious compared to the least squares method, for which reason it has historically generated a lack of popularity among statisticians, until the widespread adoption of computers in the latter part of the 20th century.

Background: quantiles Quantile regression expresses the conditional quantiles of a dependent variable as a linear function of the explanatory variables. Crucial to the practicality of quantile regression is that the quantiles can be expressed as the solution of a minimization problem, as we will show in this section before discussing conditional quantiles in the next section.

Quantile of a random variable

Let Y {\displaystyle Y} be a real-valued random variable with cumulative distribution function F Y ( y ) = P ( Y ≤ y ) {\displaystyle F_{Y}(y)=P(Y\leq y)} . The τ {\displaystyle \tau } th quantile of Y is defined as

q Y ( τ ) := F Y − 1 ( τ ) := inf { y : F Y ( y ) ≥ τ } , {\displaystyle q_{Y}(\tau ):=F_{Y}^{-1}(\tau ):=\inf \left\{y:F_{Y}(y)\geq \tau \right\},}

where 0 < τ < 1 {\displaystyle 0<\tau <1} . Define the loss function as

… excerpt ends here. Continue reading the full article.

Illustrations

Quantile regression: Example for quantile regression
Example for quantile regression
Quantile regression: Depiction of two Kaplan–Meier estimators for the survival probabilities 
  
    
      
        S
        (
        t
        )
        =
        1
        −
        F
        (
        t
        )
      
    
    {\displaystyle S(t)=1-F(t)}
  
 of two patient groups as a function of time 
  
    
      
        t
      
    
    {\displaystyle t}
  
, where 
  
    
      
        F
        (
        t
        )
      
    
    {\displaystyle F(t)}
  
 is the distribution function of the deaths. The 
  
    
      
        τ
      
    
    {\displaystyle \tau }
  
 quantile of the deaths is 
  
    
      
        
          t
          
            τ
          
        
        =
        
          F
          
            −
            1
          
        
        (
        τ
        )
      
    
    {\displaystyle t_{\tau }=F^{-1}(\tau )}
  
, where 
  
    
      
        
          F
          
            −
            1
          
        
      
    
    {\displaystyle F^{-1}}
  
 is the quantile function of the deaths. Censored quantile regression can be used to estimate these conditional quantiles individually, while survival analysis estimates the (conditional) survival function.
Depiction of two Kaplan–Meier estimators for the survival probabilities S ( t ) = 1 − F ( t ) {\displaystyle S(t)=1-F(t)} of two patient groups as a function of time t {\displaystyle t} , where F ( t ) {\displaystyle F(t)} is the distribution function of the deaths. The τ {\displaystyle \tau } quantile of the deaths is t τ = F − 1 ( τ ) {\displaystyle t_{\tau }=F^{-1}(\tau )} , where F − 1 {\displaystyle F^{-1}} is the quantile function of the deaths. Censored quantile regression can be used to estimate these conditional quantiles individually, while survival analysis estimates the (conditional) survival function.

Worked examples

Example 1 — a first encounter with Quantile regression

Start with the simplest possible case. Write down what Quantile regression claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Quantile regression before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Quantile regression ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Quantile regression

In research
Quantile regression appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Quantile regression in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Quantile regression is common in secondary-school and first-year university syllabi. It links to neighbouring topics Regression analysis, so understanding it makes those chapters shorter.
In everyday life
Look for Quantile regression outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Quantile regression in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Quantile regression means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Quantile regression out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Quantile regression in simple terms?

Quantile regression is a type of regression analysis used in statistics and econometrics. Whereas the method of least squares estimates the conditional mean of the response variable across values of the predictor variables, quantile regression estimates the conditional median (or other quantiles) o…

Why does Quantile regression matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Quantile regression?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Quantile regression.

Tags

  • Regression analysis

Keep exploring