4 ms·
R is for people who lean maths and stats from mathematicians and statisticians. Its scripting is quite well aligned to the way its taught in those disciplines.
by ggm 8y ago
R is for people who lean maths and stats from mathematicians and statisticians. Its scripting is quite well aligned to the way its taught in those disciplines. Computer Scientists dislike its huge inefficiency, but for its problem space its a good fit.
Python/Numpy/Pandas is where I think R should be, but I get there are two models here. I use both. Python+plotly gets you to print ready SVG output really quickly. I like Jupyter. I also like Shiny/R.
I tend to think Haskell is a quant thing in data science. You think a lot about the model. You type the royal french bejesus out of the inputs. You adopt strong formalisms about moments of exchange between types, and compositions over types because when you stand up and say "this $32b dollar play has about a 15% upside, if the model holds" you really want to know the model holds, not a pile of bugs I didn't consider holds.
- droidist2 8y agoWould Haskell's type system really prevent statistical biases like data snooping, etc?
- claytonjy 8y agomy suspicion is "no", but I'd love to be proven wrong; backtest validity ensured by dependent time-aware types would be a heck of a tool!
- ggm 8y agoIt would prevent mashing distinct data types without conscious effort. So, if you type the financial data to plus and minus sides, as distinct types, you cannot cross combine them without an explicit moment to do it in the way you understand (that is, if they are what in C you'd call both integers plus and minus, but logistically could not be simply combined without some context, they typing moment here would make it far less likely you did that except in known ways) and, the flow of change over compositions of functions in types, you really have to have done the hard yards, dealt with 'maybe this doesn't exist' situations. continuations. I don't think it would stop you mis-applying a construct as a method on something, so misuse a statistical model, no. But nothing can prevent acts of ignorance (as I know to my own shame, I tried to apply the K-S test to disparate samples, and the moment of 'you cannot compare area under a curve for a nail and a gaussian distribution' completely passed me by. Five minutes with a competent statistician cleared it out)