Message Boards Message Boards

[LiVE] Quantile Regression Workflows (WL Live-Stream Series)

Posted 5 years ago
11 Replies

Just uploaded the notebook from the final, 5th live-coding session.

POSTED BY: Anton Antonov

Great work, Anton. Having the ResourceFunction available should help a lot of people.

POSTED BY: Seth Chandler

Thank you, Seth! WFR is a great way to introduce new, user derived functions in the way, say, CRAN does for R.

POSTED BY: Anton Antonov

A few days ago the Wolfram Function Repository entry QuantileRegression was approved. The resource description page has many of the topics discussed in the live-coding sessions on Quantile regression.

Here is the code result of the neat examples section:

SeedRandom[20];
distData = Table[{x, Exp[-x^2] + RandomVariate[NormalDistribution[0, .15 \[Sqrt](Abs[1.5 - x]/1.5)]]}, {x, -3, 3, .01}];
Grid[Table[
  Block[{tempData = RandomSample[distData, 100], data, probs}, 
   data = Join[tempData, {#[[1]], -#[[2]]} & /@ tempData];
   data = SortBy[Transpose[Rescale /@ Transpose[data]], #[[1]] &];
   probs = {0.02, 0.48, 0.52, 0.98};
   qFuncs = 
    ResourceFunction["QuantileRegression"][data, 5, probs, Method -> {LinearProgramming, Method -> "InteriorPoint",Tolerance -> 10^(-2)}]; 
   ListPlot[Prepend[(Transpose[{data[[All, 1]], #1 /@ data[[All, 1]]}] &) /@ qFuncs, data], 
   Joined -> Prepend[Table[True, Length[probs]], False], 
    Filling -> Prepend[Table[(i + 1) -> {i + 2}, {i, Length[probs] - 1}], 1 -> None], Frame -> True, FrameTicks -> False, Axes -> False, 
    ImageSize -> Small, AspectRatio -> 1]], 3, 3]]

enter image description here

POSTED BY: Anton Antonov

Join us for the 4th session on Tuesday Oct. 22nd, 2pm PT (https://www.twitch.tv/wolfram) 4th session: Quantile Regression workflow: additional topics. - Predictions for today from yesterday’s data. - Conversational agent generated workflows. - Application of NLP techniques to time series processed with QRMon.

POSTED BY: Mads Bahrami

Just uploaded the notebook from the 4th live-coding session.

POSTED BY: Anton Antonov

Join for the 3rd session now: https://www.twitch.tv/wolfram

POSTED BY: Mads Bahrami

Just added/attached the notebook of the 3rd live-coding session.

POSTED BY: Anton Antonov

Just attached/uploaded the "live" notebook of the second session.

POSTED BY: Anton Antonov

Great job Anton! Looking forward to your future live-streams (next one will be today Sep 13 at 1:30pm PT, Wolfram TwitchTV channel)

POSTED BY: Mads Bahrami
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract