HNHacker News
TopNewBestAskShowJobs

dewarrn1

390 karma · joined March 19, 2011

I'm a cognitive neuroscientist with a PhD in psychology.

david-e-warren.me

[ my public key: https://keybase.io/dewarren; my proof: https://keybase.io/dewarren/sigs/GlgzYFgXKgB60f8D9R19UZsu_JQQwZCOQyW9aQyAv7g ]

submissionscomments
dewarrn1··on How the R-project is taking over statistical analysis software
I've had some success with output from lattice using Cairo's SVG option, although you're right that it's never easy. Self-citing, the plots in these pubs were generated as above (JoCN may be behind a paywall):

http://www.frontiersin.org/human_neuroscience/10.3389/fnhum.... http://www.mitpressjournals.org/doi/abs/10.1162/jocn_a_00089

I'll need to give Stata a look, too.

dewarrn1··on How the R-project is taking over statistical analysis software
I use R as my primary data-analysis tool for almost all of my work, with occasional recourse to SAS for certain specialized models (e.g., PROC GLIMMIX for generalized mixed models).

My only complaint is the awful default IDE, which can be mitigated to a large extent by scripting elsewhere and source()ing the script, and some odd edge behaviors including the mystifying row names of dataframes, the difficulty of dropping unused factor levels from aggregated or sliced data (another dataframe issue), and the perhaps unnecessary obscurity of some of the plotting functions (although holding R responsible for the lattice library is unfair).

All that said, for a free tool, it's extraordinary, and the authors of the base language and the many packages that I use have my gratitude.

dewarrn1··on The Best Science Fiction Books (According to Reddit)
Lots of great suggestions have already been made (I'm particularly intrigued by The Quantum Thief), but I believe that Startide Rising has gone unmentioned so far, and that's a shame. The rest of the Uplift Trilogy is also great fun.
dewarrn1··on Does Anne Hathaway News Drive Berkshire Hathaway's Stock?
Well, correlation certainly isn't causation, but being a data-nerd, I had to take a look. I grabbed Anne Hathaway's web presence from Google Trends, and Berkshire-Hathaway's performance from Google Finance. After a little massaging, I dumped the numbers in to R, and there is indeed a reliable correlation between Anne's (per-week) web presence and B-H's weekly average close (or closest preceding close).

data: hath$AnneTrend and hath$BerkClose t = 4.6739, df = 373, p-value = 4.135e-06 alternative hypothesis: true correlation is not equal to 0 95 percent confidence interval: 0.1372140 0.3286587 sample estimates: cor 0.2352165

It's an R^2 of 0.23, which isn't much, but it's not completely spurious; Scarlett Johansson doesn't show the same pattern (there's a weak correlation, but not reliable at p < 0.05).

Pearson's product-moment correlation

data: hath$ScarlettTrend and hath$BerkClose t = 1.7687, df = 373, p-value = 0.07775 alternative hypothesis: true correlation is not equal to 0 95 percent confidence interval: -0.01016440 0.19071018 sample estimates: cor 0.09120053

However, Scarlett's career hasn't mirrored Anne's all that well. What about someone a little closer to Anne, say, her Oscar co-host, James Franco? Note that apart from that, the two haven't really done anything together (http://imdb.to/g6vwbp), although I'd say they've both come to fame recently.

data: hath$JamesTrend and hath$BerkClose t = 4.5991, df = 372, p-value = 5.826e-06 alternative hypothesis: true correlation is not equal to 0 95 percent confidence interval: 0.1336854 0.3256934 sample estimates: cor 0.2319475

And that might be the clincher. James's little ups and downs shouldn't match Anne's, and yet his recent rise to prominence seems to share the same, slight relationship to B-K's stock value. Thanks for reading!

(edit: Ugh, awful formatting! Apologies.)

← PreviousPage 6 of 6