Biology, images, analysis, design...
Use/Abuse Principles How To Related
"It has long been an axiom of mine that the little things are infinitely the most important" (Sherlock Holmes)

Search this site




Sen's estimator of slope

For linear trend, the slope is usually estimated by computing the least squares estimate using linear regression. However it is only valid when there is no serial correlation, and the method is very sensitive to outliers. A more robust method was developed by Sen (1968).

Multiple estimates (N') are made of the slope using:

Algebraically speaking -

Q   =   Yi ' − Yi
i' − i
  • Q is a slope estimate.
  • Yi ' are Yi the values at times i' and i, where i' is greater than i,
  • N' is all data pairs for which i' is greater than i.

Sen's estimator of slope is the median of the N' values of Q. The same procedure is followed whether there are one or multiple observations per time period.

Sen (1968) gives a nonparametric method to obtain a confidence interval for this slope, although a simple normal approximation method is more commonly used. For this we need the standard deviation of the Mann-Kendall Statistic, S.

S is the numerator of the expression used to obtain the Kendall rank correlation coefficient:

vs = 1/18(n*(n-1)*(2n+5)-Σ(tp(tp-1)(2tp+5))

These are summed for all tied groups.

  • vs is the variance of S,
  • n is the number of observations,
  • tp is the number of observations in the pall>th group.

The procedure is as follows:

  1. For a 95% interval, Cα is computed as 1.96 x SD (S).
  2. Compute M1 = (N'- Cα)/2 and M2 = (N'+ Cα)/2.
  3. The lower and upper limits of the CI are the M1th largest and the (M2+1)th largest of the N' ordered slope estimates.