smooth(r: ranvar) 🡒 ranvar, pure function

Returns a smooth variant of the original ranvar to mitigate the overfitting issue.


table T = with // observation
  [| as Obs |]
  [| 1 |]
  [| 0 |]
  [| 0 |]
  [| 2 |]

show scalar "ranvar(T.Obs)" a1c3 with ranvar(T.Obs)
show scalar "smooth(ranvar(T.Obs))" a4c6 with smooth(ranvar(T.Obs))

This function is typically intended to smooth ranvars produced through the ranvar aggregators over a handfew observations, and mitigate the most obvious artefacts caused by the limited set of observations.