Lably
Skip to content

Repeated median regression

  • 1 min read
  • 1 chapter

Explore on Lably

ToursExplore Lably’s 3D tours

Method

The repeated median method estimates the slope of the regression line y=A+Bx for a set of points (Xi,Yi) as

B^=medianimedianj≠islope⁡(i,j)

where slope⁡(i,j) is defined as (Yj−Yi)/(Xj−Xi).

The estimated Y-axis intercept is defined as

A^=medianimedianj≠iintercept⁡(i,j)

where intercept⁡(i,j) is defined as (XjYi−XiYj)/(Xj−Xi).

A simpler and faster alternative to estimate the intercept A^ is to use the value B^ just estimated, thus:

A^=mediani(yi−B^xi)

Note: The direct and hierarchical methods of estimating A^ give slightly different values, with the hierarchical method normally being the best estimate. This latter hierarchical approach is identical to the method of estimating A^ in Theil–Sen estimator regression.

More in Statistics