News for hackers. Stuff that matters.

agentq

I researched & prototyped (in R), and ultimately put into production (C++) a core set of spectral risk analysis analytics that replaced outdated VaR and vol forecasts for an extremely large asset management firm and left immediately afterwards. Technically speaking, guided risk mgmt/investment decisions at the trillion-dollar scale, ran as-is for 8-10 years before being recently re-implemented in some other language.
Re:Street View of 1940s New York on Friday August 14, 2020 @08:51AM (#24157200)
80s.nyc has a somewhat similar street view using archival images from the 80s
Re:Ask HN: What is the status of FPGA usage in Financial world? on Wednesday January 02, 2013 @08:18PM (#5000501)
Monte Carlo simulation is the most oft-cited example. This tends to be most relevant to quickly American pricing options, or anything that isn't easily done in closed-form.
Re:Scheme vs Common Lisp: war stories on Wednesday January 02, 2013 @04:27PM (#4999420)
-- closed 2011 Nov 28.
Re:The Fast Fourier Transform on Monday December 17, 2012 @01:45PM (#4933624)
For anyone who doesn't want to roll their own FFT, take a look at this excellent pure C implementation: http://www.fftw.org/
Re:Try R — A new online course, for free on Wednesday December 05, 2012 @09:23PM (#4879933)
I actually find base R excellent for data munging and manipulation, even without using additional packages. Here is a reproducible example that very easily accomplishes what you were trying to do (first two lines just set up a sample data frame)

  set.seed(123)
  dfrm <- data.frame(height=runif(20),
                     name=paste(sample(LETTERS[1:5],20,replace=TRUE),letters[1:20]))
  subset(dfrm, grepl('^D',name), sel=height)
Basic R functions like subset, transform, with(in), reshape, aggregate, (a,ma,ta,sa,va}pply, match, grep(l), by, split, table, etc. allow you to accomplish just about any data frame munging you might want. Add on the plyr, reshape2, data.table, xts/zoo packages and you're ready to tackle just about anything.

I'm not a big fan of sqldf because imo R is not supposed to act like SQL. Using sqldf in practice would require a lot of query string manipulation and takes away from the nice functional features of R.

Nevertheless, it is very easy to write incomprehensible R code. The best way to avoid this is to take one of the existing style guides (Google, Hadley Wickham's) and adopt it seriously.

Re:Is zero an even number? on Sunday December 02, 2012 @02:58PM (#4862290)
I tried to convince the croupier that zero was an even number, but alas ...
this is pretty neat! one quick thing -- 40th and 8th ave -> grand central: suggests S grand central -> 53rd and park: suggests 6 40th and 8th -> 53rd and park: some crazy sequence of bus routes.

http://sandytransit.alastair.is/opentripplanner-webapp/index... Nov 01 2012 21:26:37 GMT-0400 (Eastern Daylight Time)&arriveBy=false&itinID=1&wheelchair=false&preferredRoutes=&unpreferredRoutes=

Re:Matlab, R, and Julia: Languages for data analysis on Tuesday October 16, 2012 @05:56PM (#4662090)
no love for J?
Re:What can I do for Mozilla? on Wednesday October 10, 2012 @08:23PM (#4638816)
they don't mention NSPR. is it dead? http://www.mozilla.org/projects/nspr/
Re:Principle Component Analysis on Friday August 17, 2012 @06:05PM (#4399043)
In financial practice, asset-level PCA isn't as common, especially in systems where covariance estimation is fraught with misspecification errors. Instead, individual securities first condensed to factors (e.g., for equity some examples are book/price, momentum, large vs. small cap, etc.).
Re:Generating random text on Monday June 13, 2011 @01:44PM (#2649915)
http://www.jwz.org/dadadodo/ DadaDodo is a fairly old implementation that may be of interest.
Re:Woman Sells First Spot in iPad 2 Line For $900 on Friday March 11, 2011 @01:49PM (#2314398)
"He’s not alone in paying for the cache of being among the first to purchase apple products."

cache? sigh

Re:Ask HN: Sorting massive text files? on Saturday August 14, 2010 @12:10PM (#1603485)
The first thing I'd recommend doing is find the unique entries THEN sort. Unless uniq has vastly better performance on sorted files...
Re:Ask HN: Typical Startup or Abuse? on Sunday June 20, 2010 @03:07PM (#1446987)
To further goad the OP to immediately leave his current job: between junior and senior year of college, I made a bit more than the OP's yearly pay in a 12wk internship.

Please, for your wife and kid(s), get out of this horrible situation.

Re:Why R Doesn't Suck on Saturday June 19, 2010 @09:46PM (#1445677)
Thanks, I'll check it out!
Re:Why R Doesn't Suck on Saturday June 19, 2010 @04:02PM (#1445246)
My programming background is fairly extensive in non-functional languages. I work in finance, and the company I joined uses R for a considerable amount of model prototyping.

I'd really like to switch to Python+numpy/scipy, but I haven't been able to find an equivalent of a data.frame, or some numeric+string data structure that allows for easy slicing on both.

Does anybody have any suggestions?

Re:Work, Salary and Motiviation on Thursday June 17, 2010 @03:33PM (#1440107)
s/ia/a/
I am a quantitative analyst at a large asset management firm -- I focus on risk models and alpha-generating strategies. Though we have separate developer teams, my job requires considerable hacking.
Re:New Finance Website based on Arc / HN on Monday May 17, 2010 @11:23AM (#1354535)
Re:Betting on the Blind Side on Monday May 03, 2010 @03:55PM (#1315892)
Understood. The specific aspect of Digg that I am comparing recent trends to is that of submission of duplicate articles, and the inevitable notification thereof by other users.

A small example: http://www.google.com/search?hl=en&q=site:http://news.yc...

Re:Betting on the Blind Side on Monday May 03, 2010 @01:45PM (#1315421)
HN is starting to feel like Digg. http://news.ycombinator.com/item?id=1160552
Re:Gmail vs Pine on Wednesday April 28, 2010 @12:19PM (#1301907)
Even better, just hit Shift+I ...
Re:10 Google Chrome Extensions for Boosting Your Productivity on Saturday April 03, 2010 @10:59PM (#1239607)
Glad you like it!

Splitting in Smooth Gestures means taking the current tab and those to the right and moving them to a separate window. Merging takes the current window's tabs and appends them to the last focused window.

Re:10 Google Chrome Extensions for Boosting Your Productivity on Saturday April 03, 2010 @09:48PM (#1239521)
I'd also suggest "Smooth Gestures"

https://chrome.google.com/extensions/detail/lfkgmnnajiljnolc...

Some of the functionality is pretty cool (i.e., haven't seen it in All-in-One Gestures for Firefox), like merging and splitting tabs.

Re:Law Enforcement Appliance Subverts SSL on Wednesday March 24, 2010 @05:48PM (#1216985)
What will end up happening to the 'real bad guys' http://xkcd.com/538/
Re:The Top 50 Websites by Traffic in 1998 on Tuesday March 23, 2010 @01:55PM (#1213556)
It's good to see that the public's relative need for weather(.com) forecasts has not changed in the last twelve years.
Re:Exploiting hard filtered SQL Injections on Sunday March 21, 2010 @10:00PM (#1209077)
In the particular case of integer ids, however, can't you just make sure what's being passed is an integer? Similarly, for a 'simple' username, check against "^[a-zA-Z0-9]+$"?
Re:Over half your daily news is spin on Tuesday March 16, 2010 @11:36AM (#1195910)
If anyone is interested in a more academic (i.e., behavioral economics / information theory-based) discussion of "spin" or "slanting," I'd recommend this paper by Mullainathan and Shleifer:

The Market for News

http://www.economics.harvard.edu/faculty/shleifer/files/mark...

Older »