21,186 karma · joined Oct 12, 2010 (16y ago) · 6,050 submissions
Personal site: http://www.adityamukerjee.net/
My email is pretty easy to guess from my username.
comment 14y ago · link · parent
Neglecting the 100- and 400-year problems with leap years, that seems to be a good frequentist estimate.
But if you look at it from a Bayesian perspective the question is how much you're interested in incorporating into the model. And there's quite a lot of
(Also, the problem as originally stated in 140 chars isn't really well-defined - though if you want to get cheeky with an answer of 100%, let's think about the probability for an unspecified NYC startup, rather than foursquare!)
5882.
The Leap-Day Birthday Problem: A Bayesian Twist
1 points · by chimeracoder · 14y ago · 2 comments
comment 14y ago · link · parent
The Rat Park experiment is often conveniently ignored because it essentially debunks a lot of common 'wisdom' regarding drugs. It's hard to villainize certain drugs as 'bad' and evil' while endorsing others in light of the Rat Park experiment, which shows that 'bad' drugs aren't chemically 'bad' - they're just taken in a 'bad' setting.
Fortunately, the theory is now becoming harder to ignore, because that's the basis of a lot of effective modern drug treatment, which tries to identify the underlying cause of drug addiction (the environmental/behavioral problems that cause an individual to abuse drugs), rather than focusing on the drug use itself. That's not saying that drugs don't have a physical impact - they do - but if drugs are being used as an outlet to compensate for environmental factors, then removing access to those substances will just cause the underying problems to manifest in other (potentially worse) ways.
It's the difference between treating the symptom of a disease and treating the disease itself. Yes, you might want to take cough medicine if you have lung cancer, since it'll help with your symptoms, but you'd be a fool to think that that's going to cure the tumor that causes you to cough.
This theory is very powerful, because it means that you can use the same techniques to treat drug addiction and other psychological ailments like PTSD, anorexia and self-mutilation, which are themselves often best thought of as psychophysiological responses to environmental factors.
Interestingly, if you really want to use physiological symptoms as the basis for determining whether a drug is addictive or not, then alcohol is probably the most addictive substance known to man. If you ever want to give yourself a scare, look up some of the symptoms of acute alcohol withdrawal (which can actually kill you, after a long and painful bout of delirium tremens and worse).
TL;DR: Addiction is best thought of as a mental response to environmental factors. So, in a sense, it really is 'all in the mind'. Or alternatively, not at all in the mind, and all in the environment. Whichever way you prefer to think of it.
comment 14y ago · link · parent
Well, right now it's as if we didn't teach English (or, rather, any foreign language) in schools and then somehow 'magically' expected people to pick up the single most important foreign language for communicating in modern life.
No, it's not easy, but the basics are really not hard to learn if started early and kept up consistently. Just like any other skill that we teach in schools.
comment 14y ago · link · parent
As a result, most people have no concept of how a computer really works. With just the tiniest bit of this knowledge, the command-line would seem much less arcane, and the 'I'm too dumb, this is for you computer people' argument wouldn't really apply.
It's shocking how computing is quite literally the technological advance of the millennium, both for industry and for individuals, and yet we somehow think it's acceptable to leave it up to people to learn about it all on their own, and even then only if they care to.
comment 14y ago · link · parent
Would be interesting to see, though - let me know if you do it.
comment 14y ago · link · parent
> https://github.com/MrMEEE/bumblebee/commit/a047be85247755cdb...
comment 14y ago · link · parent
Unfortunately, you apparently can't do it on OS X without bringing up a menu and/or changing your keyboard layout: http://en.wikipedia.org/wiki/Unicode_input#Hexadecimal_code_...
comment 14y ago · link · parent
Second, the hashtags (as well as the @replies) both grew organically out of the userbase. They adopted them because the users had already adopted the hashtags. In fact, if I remember correctly, they were initially resistant to the idea until they saw how much people took to them and used them even without any official support.
The new tab seems like a glorified search - they use a hashtag for an icon, but it seems like the system itself would work pretty well for any single-word search. And with a data firehose as fast as Twitter's, you don't really want to have to do search over multiple words if you can avoid it.
comment 14y ago · link · parent
Vim user here. I use mutt for email (which opens vim for editing emails), Vimium for Chromium, and I've set vim to be my default editor, my shell accepts vim commands, and my tiling window manager uses vim-style keybindings.
So, I almost never have to do anything in an environment where I don't have access to all of the power of Vim... and yet my text editor remains simply that - a text editor.
No problems with multitasking, because I've never needed to do more than one thing at a time in Vim, and I can't imagine ever needing to. All of those things that you're thinking of as separate processes in Emacs are things that I delegate to dedicated programs that specialize in doing those things. But I can get all of that modularity without sacrificing any of the vim key integration.
Not trying to sell you on using Vim, but just trying to explain the different reasoning.
comment 14y ago · link · parent
Really? Just think of the class as a surname and the id as a social security number - many people can have the same surname, and those that have the same one have something in common. Only one person can have a given SSN.
What's hard about it? Okay, one is denoted by '.' and the other by '#', but I'm not sure how something like that gets more complicated.
CSS and Javascript can be a pain overall, but in the end, if you need to know much more than the above, you should really just be learning to use the entire toolbox, not picking and choosing the tools that you think you want (which are oftentimes not the ones you really need).
comment 14y ago · link · parent
Your efficiency per unit resource may increase, but your total resources are still finite. Therefore, unless your efficiency increases asymptotically fast enough that the integral diverges (ie, infinite area), your total end product will still be finite. And I have a hard time believing that efficiency would increase that quickly.
Okay, I'll stop being pedantic now.
comment 14y ago · link · parent
But in general, that's still awkward, and enough of a (mental) hassle that I probably won't bother if it's just someone who wants me to check their site out. So my advice to any web designers would be to make sure your site is functional even without the flashy add-ons, the same way you would make sure your site is functional on all browsers/operating systems.
comment 14y ago · link · parent
I don't mind having that as the default, but at least give people an option to select files the old-fashioned way, and make it easy to find within ~5 or ~10 seconds of looking at the page...
Imgur does this well, if you ask me - support for drag & drop, menu, and copy/pasting URL.
comment 14y ago · link · parent
Unless I'm misreading what you're saying, I think you have Bayes's rule confused in that statement. If 75% of positive results are false, that's actually right in line with what you might want for a first screening.
Of course, you want to know not just P(X|Y), but also P(Y|X) -- you really need the joint distribution to determine how useful the test is.
For a rapid screening, you generally want a low false negative, and you're willing to compromise by having a high false positive rate as a result. The real thing you care about is P(test positive | have MDD), not P(have MDD | test positive). You don't care about the latter (within reason - obviously you could just have everyone test positive, but you're also trying to maximize the former probability subject to some constraint - usually time/money).
Psychiatric conditions are notoriously difficult to test/evaluate/treat because they are oftentimes heterogeneous, so I don't know what kind of numbers we should be looking for in this case, but I just wanted to clarify that having a majority of people who test positive ending up being healthy actually doesn't necessarily rule a test out as being a useful rapid-response screening, in the general case.
comment 14y ago · link · parent
It's unclear what stage you're at right now from your question, but being in a tech hub isn't always as important as you think. If you grow beyond a certain size (hard to quantify; there's no hard-and-fast rule here), you'd be foolish not to have at least an office in/near one of the large hubs, but that's not necessarily the biggest consideration at the beginning.
By the way, this is one area in which tech isn't really any different than any other industry - you'd be surprised how many companies in the financial sector have headquarters elsewhere and simply have a (rather large) office in New York (though not usually on Wall St. - that's more of a metonymy than the actual center of business these days).